请教,如何检查hp的存储是否做了条带

[复制链接]
查看11 | 回复9 | 2008-9-5 16:20:10 | 显示全部楼层 |阅读模式
主机:hpunix 11
存储:xp128
我想检查一下及其的存储是否做了条带,不知道用什么命令?
谢谢!
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
没人答,先顶一下吧,要不一会沉底了!
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
最初由 smartbaohua 发布
[B]主机:hpunix 11
存储:xp128
我想检查一下及其的存储是否做了条带,不知道用什么命令?
谢谢! [/B]

问题问的模糊。
单纯就阵列而言,如果你的raid级别不是带有raid 0的,那在阵列层面即是没有条带的。
随便摸一块pv做一下xpinfo就可以看到你的raid做的是哪一种
eg:
[php]
sd11#[root:/tmp/libin]xpinfo -f /dev/rdsk/c51t1d4
Device File : /dev/rdsk/c51t1d4
Model : XP512
ALPA : c7
Serial # : 00032581
Target : 15
Subsystem : 0004
LUN : 0c
CT Group : 1
Port : CL2F
CA Volume : PVOL
CU:LDev : 00:40
BC0 (MU#0) : SMPL
Type : OPEN-E
BC1 (MU#1) : SMPL
Size : 13893 MB
BC2 (MU#2) : SMPL
Code Rev : 0119
RAID Level : RAID5
Disk Mechs : R104 R114 R124 R134 RAID Group : 1-5
Port WWN : 500060e8027f4515
ACP Pair : 1 ;
[/php]
主机做vg后,划分lv也可以做stripe
以root用户随便选取卷组中的一个lv做lvdisplay
显示中会有Stripes,Stripe Size (Kbytes) 两项,非空说明你未做stripe。
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
最初由 hrb_qiuyb 发布
[B]
问题问的模糊。
单纯就阵列而言,如果你的raid级别不是带有raid 0的,那在阵列层面即是没有条带的。
随便摸一块pv做一下xpinfo就可以看到你的raid做的是哪一种
eg:
[php]
sd11#[root:/tmp/libin]xpinfo -f /dev/rdsk/c51t1d4
Device File : /dev/rdsk/c51t1d4
Model : XP512
ALPA : c7
Serial # : 00032581
Target : 15
Subsystem : 0004
LUN : 0c
CT Group : 1
Port : CL2F
CA Volume : PVOL
CU:LDev : 00:40
BC0 (MU#0) : SMPL
Type : OPEN-E
BC1 (MU#1) : SMPL
Size : 13893 MB
BC2 (MU#2) : SMPL
Code Rev : 0119
RAID Level : RAID5
Disk Mechs : R104 R114 R124 R134 RAID Group : 1-5
Port WWN : 500060e8027f4515
ACP Pair : 1 ;
[/php]
主机做vg后,划分lv也可以做stripe
以root用户随便选取卷组中的一个lv做lvdisplay
显示中会有Stripes,Stripe Size (Kbytes) 两项,非空说明你未做stripe。 [/B]


谢谢,可是我的机器好像不支持这个命令:
[root@yz-test2]>vgdisplay
--- Volume groups ---
VG Name
/dev/vg00
VG Write Access
read/write
VG Status
available

Max LV
255
Cur LV
8
Open LV
8
Max PV
16
Cur PV
1
Act PV
1
Max PE per PV
4384
VGDA
2
PE Size (Mbytes)
32

Total PE
4374
Alloc PE
3120
Free PE
1254
Total PVG
0
Total Spare PVs
0

Total Spare PVs in use0

VG Name
/dev/testvg02
VG Write Access
read/write
VG Status
available

Max LV
255
Cur LV
3
Open LV
3
Max PV
32
Cur PV
9
Act PV
9
Max PE per PV
3500
VGDA
18
PE Size (Mbytes)
8

Total PE
15624
Alloc PE
15012
Free PE
612
Total PVG
0
Total Spare PVs
0

Total Spare PVs in use0

VG Name
/dev/testvg03
VG Write Access
read/write
VG Status
available

Max LV
255
Cur LV
1
Open LV
1
Max PV
32
Cur PV
9
Act PV
9
Max PE per PV
3500
VGDA
18
PE Size (Mbytes)
8

Total PE
15624
Alloc PE
12132
Free PE
3492
Total PVG
0
Total Spare PVs
0

Total Spare PVs in use0

VG Name
/dev/vgora
VG Write Access
read/write
VG Status
available

Max LV
255
Cur LV
1
Open LV
1
Max PV
16
Cur PV
1
Act PV
1
Max PE per PV
4375
VGDA
2
PE Size (Mbytes)
32

Total PE
4374
Alloc PE
4374
Free PE
0
Total PVG
0
Total Spare PVs
0

Total Spare PVs in use0

VG Name
/dev/testvg01
VG Write Access
read/write
VG Status
available

Max LV
255
Cur LV
3
Open LV
3
Max PV
32
Cur PV
9
Act PV
9
Max PE per PV
3500
VGDA
18
PE Size (Mbytes)
8

Total PE
15624
Alloc PE
15012
Free PE
612
Total PVG
0
Total Spare PVs
0

Total Spare PVs in use0

[root@yz-test2]>xpinfo -f /dev/testvg01
sh: xpinfo:not found.
[root@yz-test2]>
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
最初由 hrb_qiuyb 发布
[B]
问题问的模糊。
单纯就阵列而言,如果你的raid级别不是带有raid 0的,那在阵列层面即是没有条带的。
显示中会有Stripes,Stripe Size (Kbytes) 两项,非空说明你未做stripe。 [/B]

1. 问题确实模糊
2. 做raid应该就会做stripe的吧。
做raid一般要根据应用选择stripe size大小,数据库的话4K-32k
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
学习,正需要这方面的东东。:)
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
最初由 sydjd 发布
[B]
1. 问题确实模糊
2. 做raid应该就会做stripe的吧。
做raid一般要根据应用选择stripe size大小,数据库的话4K-32k [/B]

xp这样的阵列,在主机所能看到的cXtXdX这样的盘是在阵列中每 4块物理盘做raid后再做open-E、open-V等后所生成的逻辑盘。
实际上,在做这样的划分时并未有设定stripe size的地方。
从raid的概念上讲,只有raid 0所标识的为条带的概念。
raid5是通过特定的算法把数据及检验信息分散到不同的盘上,保障程度要比Mirror低而磁盘空间利用率要比Mirror高。RAID 5具有和RAID 0相近似的数据读取速度,只是多了一个奇偶校验信息,写入数据的速度比对单个磁盘进行写入操作稍慢。
严格的说这不是真正的stripe。
不过对于xp这样级别的阵列我认为在做raid5之后所划的逻辑盘也应该是做stripe的。不过stripe size是多少不能人为设定,也不清楚该是多少。
你所说的4-32k我也不太清楚是不是eva当中存在的,还是在划lv时指定的?
xpinfo是hp的内部工具,很有用的,可以找hp工程师要一下。
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
最初由 hrb_qiuyb 发布
[B]
xp这样的阵列,在主机所能看到的cXtXdX这样的盘是在阵列中每 4块物理盘做raid后再做open-E、open-V等后所生成的逻辑盘。
实际上,在做这样的划分时并未有设定stripe size的地方。
从raid的概念上讲,只有raid 0所标识的为条带的概念。
不过对于xp这样级别的阵列我认为在做raid5之后所划的逻辑盘也应该是做stripe的。不过stripe size是多少不能人为设定,也不清楚该是多少。
你所说的4-32k我也不太清楚是不是eva当中存在的,还是在划lv时指定的?
xpinfo是hp的内部工具,很有用的,可以找hp工程师要一下。 [/B]

对楼主所说的阵列确实不清楚,没有使用过。
With RAID technology, data is striped across an array of physical drives. This data distribution scheme complements the way the operating system requests data. The stripe-units-size is a global setting on the controller and can be configured to 8k (default), 16k, 32k and 64k.
The granularity at which data is stored on one drive of the array before subsequent data is stored on the next drive of the array is called the stripe-unit size. You can set the stripe-unit size to 8 KB, 16 KB, 32 KB, or 64 KB. You can maximize the performance of your ServeRAID controller by setting the stripe-unit size to a value that is close to the size of the system I/O requests. For example, performance in transaction-based environments, which typically involve large blocks of data, might be optimal when the stripe-unit size is set to 32KB or 64KB. However, performance in file and print environments, which typically involve multiple small blocks of data, might be optimal when the stripe-unit size is set to 8KB or 16KB.
The collection of stripe units, from the first drive of the array to the last drive of the array, is called a stripe.
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
大致意思就是,如果做raid的话,如果你要向磁盘写入数据,数据是并行写入磁盘阵列,就是一个array, 假设有5块盘,那么数据存储肯定不是先写满第一块盘,然后写第二块,应该是同时往所有的盘上写,或者说disk1写头n个块,然后disk2写头n块,然后disk3写头n块, 这所有disk的头n块就组成了一个stripe, 每一个disk的头n块,叫做stripe size
回复

使用道具 举报

千问 | 2008-9-5 16:20:10 | 显示全部楼层
我已经找到了,其实是没有仔细看命令执行出来的结果
很简单用如下:
[root@yz-test2]>lvdisplay -v /dev/testvg02/testbillwork|more
--- Logical volumes ---
LV Name
/dev/testvg02/testbillwork
VG Name
/dev/testvg02
LV Permission
read/write
LV Status
available/syncd
Mirror copies
0

Consistency RecoveryMWC

Schedule
striped
LV Size (Mbytes)
30024
Current LE
3753
Allocated PE
3753
Stripes
9
Stripe Size (Kbytes)64

Bad block
on
Allocation
strict

IO Timeout (Seconds)default

--- Distribution of logical volume ---
PV Name
LE on PVPE on PV
/dev/dsk/c11t0d1 417 417
/dev/dsk/c11t1d1 417 417
/dev/dsk/c11t4d1 417 417
/dev/dsk/c11t5d1 417 417
/dev/dsk/c11t6d1 417 417
/dev/dsk/c11t7d1 417 417
/dev/dsk/c11t8d1 417 417
/dev/dsk/c11t9d1 417 417
/dev/dsk/c11t10d1417 417
--- Logical extents ---

另外还有个办法就是通过used PV 来检查,如果usedPV 和total PV一样那么说明在平均的使用,肯定是做了条带化。
谢谢大家!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行