You are on page 1of 7

, PVG, MIRROR.

, RAID ..
pvg pv group, pv ,,.
vg -g pvg,:
vgcreate -g bus0 /dev/vgdatabase /dev/dsk/c1t2d0
vgextend -g pvg:
vgextend -g bus0 /dev/vgdatabase /dev/dsk/c0t2d0
-g bus0 pvg ,.
lv ,:
lvcreate -L 120 -m 1 -s g /dev/vgdatabase
-m 1 -s g PVG

pvg .
,hpux lv ,.
btw,, lv , io .
:lvcreate -L 90 -i 3 -I 64 /dev/vgdatebase
-i 3 ,-I 64k.
2405 ,, PVG .
,,10 , 5 5 ,
,, PVG .
, 10 :C4TYD0(Y 0 9),:
#pvcreate -f /dev/rdsk/c4t0d0 (Y 0 9 )
........
#pvcreate -f /dev/rdsk/c4t9d0
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgcreate -g PVG1 vg01 /dev/dsk/c4t0d0 /dev/dsk/c4t2d0 /dev/dsk/c4t4d0 /dev/dsk/c4t6d0 /dev/dsk/c4t8d0
#vgextend -g PVG2 vg01 /dev/dsk/c4t1d0 /dev/dsk/c4t3d0 /dev/dsk/c4t5d0 /dev/dsk/c4t7d0 /dev/dsk/c4t9d0
#lvcreate -m 1 -s g -D y -n lv_name -L 10240 vg01
#newfs -F vxfs -o largefiles /dev/vg01/rlv_name
#mkdir /lv_name
#mount /dev/vg01/lv_name /lv_name
LVCREATE ,-D y,,,
, PVG ;-D y ,
,,,.
,...

1. ioscan -fnCdisk
2. pvcreate -f /dev/rdsk/c4t8d0
3. pvcreate -f /dev/rdsk/c4t9d0
4. pvcreate -f /dev/rdsk/c6t12d0
5. pvcreate -f /dev/rdsk/c6t13d0
6. mkdir /dev/vg01
7. mknod /dev/vg01/group c 64 0x010000
8. vgcreate -g PVG1 /dev/vg01 /dev/dsk/c4t8d0 /dev/dsk/c4t9d0
9. vgextend -g PVG2 /dev/vg01 /dev/dsk/c6t12d0 /dev/dsk/c6t13d0
10. lvcreate -m 1 -s g -L 512 /dev/vg01
11. lvcreate -m 1 -s g -L 10240 /dev/vg01
12. lvcreate -m 1 -s g -L 10240 /dev/vg01
13. lvcreate -m 1 -s g -L 512 /dev/vg01
14. lvcreate -m 1 -s g -L 3072 /dev/vg01
15. newfs /dev/vg01/rlvol1
16. newfs /dev/vg01/rlvol2
17. newfs /dev/vg01/rlvol3
18. newfs /dev/vg01/rlvol4
19. newfs /dev/vg01/rlvol5.

--- Volume groups --VG Name


VG Write Access
VG Status
Max LV
Cur LV
Open LV
Max PV
Cur PV
Act PV
Max PE per PV
VGDA
PE Size (Mbytes)
Total PE
Alloc PE
Free PE
Total PVG
Total Spare PVs
Total Spare PVs in use
--- Logical volumes --LV Name
LV Status
LV Size (Mbytes)

/dev/vgdb1
read/write
available
255
12
12
16
10
10
8683
20
4
47741
28000
19741
2
0
0

/dev/vgdb1/rootdbs1
available/syncd
2000

Current LE
Allocated PE
Used PV

500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/userdbs1
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/userdbs2
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/userdbs3
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/userdbs4
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/userdbs5
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/tempdbs1
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/phydbs1
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/logdbs1
available/syncd
2000
500
1000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/tmpe
available/syncd
8000
2000
4000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/userdbs6
available/stale
20000
5000
10000
10

LV Name
LV Status
LV Size (Mbytes)
Current LE
Allocated PE
Used PV

/dev/vgdb1/backup
available/syncd
20000
5000
5000
5

--- Physical volumes --PV Name


PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c5t8d0
available
4340
1040
On

PV Name
PV Status
Total PE

/dev/dsk/c5t9d0
available
8681

Free PE
Autoswitch

5381
On

PV Name
PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c5t10d0
available
4340
1040
On

PV Name
PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c5t11d0
available
4340
1040
On

PV Name
PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c7t8d0
available
4340
2040
On

PV Name
PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c7t9d0
available
4340
2040
On

PV Name
PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c7t10d0
available
4340
2040
On

PV Name
PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c7t11d0
available
4340
2040
On

PV Name
PV Status
Total PE
Free PE
Autoswitch

/dev/dsk/c5t12d0
available
4340
1040
On

PV Name

/dev/dsk/c7t12d0

PV Status
Total PE
Free PE
Autoswitch

available
4340
2040
On

--- Physical volume groups --PVG Name


PV Name
PV Name
PV Name
PV Name
PV Name

PVG1
/dev/dsk/c5t8d0
/dev/dsk/c5t9d0
/dev/dsk/c5t10d0
/dev/dsk/c5t11d0
/dev/dsk/c5t12d0

PVG Name
PV Name
PV Name
PV Name
PV Name
PV Name

PVG2
/dev/dsk/c7t8d0
/dev/dsk/c7t9d0
/dev/dsk/c7t10d0
/dev/dsk/c7t11d0
/dev/dsk/c7t12d0

smp1@root>lvdisplay -v /dev/vgdb1/userdbs6|grep stale


LV Status
available/stale
00021 /dev/dsk/c5t9d0
01304 current /dev/dsk/c7t9d0

01304 stale

lvreduce -m 0 /dev/vgdb1/userdbs6 /dev/dsk/c7t8d0 /dev/dsk/c7t9d0 /dev/dsk/c7t10d0 /dev/dsk/c7t11d0


/dev/dsk/c7t12d0

disk

21 0/2/1/1.5.0

sdisk
CLAIMED
DEVICE
/dev/dsk/c5t5d0 /dev/rdsk/c5t5d0

IPDB11 sent Event Monitor notification information:


/storage/events/disks/default/0_2_1_1.5.0 is >= 3.
Its current value is SERIOUS(4).

ioscan -fnCdisk
2. pvcreate f /dev/rdsk/c4t8d0
3. pvcreate f /dev/rdsk/c4t9d0
4. pvcreate f /dev/rdsk/c6t12d0

HP 36.4GMAU3036NC

5. pvcreate f /dev/rdsk/c6t13d0
6. mkdir /dev/vg01
7. mknod /dev/vg01/group c 64 0x010000
8. vgcreate g PVG1 /dev/vg01 /dev/dsk/c4t8d0 /dev/dsk/c4t9d0
9. vgextend g PVG2 /dev/vg01 /dev/dsk/c6t12d0 /dev/dsk/c6t13d0
10. lvcreate m 1 s g L 512 /dev/vg01
11. lvcreate m 1 s g L 10240 /dev/vg01
12. lvcreate m 1 s g L 10240 /dev/vg01
13. lvcreate m 1 s g L 512 /dev/vg01
14. lvcreate m 1 s g L 3072 /dev/vg01
15. newfs /dev/vg01/rlvol1
16. newfs /dev/vg01/rlvol2
17. newfs /dev/vg01/rlvol3
18. newfs /dev/vg01/rlvol4
19. newfs /dev/vg01/rlvol5

#vgcfgrestore n vg01 /dev/rdsk/c4t8d0


#vgchange a y /dev/vg01
#vgsync [/quote]

You might also like