1832296 Members
1806 Online
110041 Solutions
New Discussion

Change Volume Group

 
Fabian Crea
Occasional Advisor

Change Volume Group

Hi, pls samebody help me.
I have a Volume Group named "vg00" this vg has 3 disc, this vg has SO and a file system named PRDu01, the command vgdisplay is:

# vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 4384
VGDA 6
PE Size (Mbytes) 32
Total PE 8748
Alloc PE 3096
Free PE 5652
Total PVG 0
Total Spare PVs 1
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 320
Current LE 10
Allocated PE 20
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 256
Current LE 8
Allocated PE 16
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 64
Allocated PE 128
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 64
Allocated PE 128
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 3424
Current LE 107
Allocated PE 214
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 2496
Current LE 78
Allocated PE 156
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4608
Current LE 144
Allocated PE 288
Used PV 2

LV Name /dev/vg00/lvu11
LV Status available/syncd
LV Size (Mbytes) 30016
Current LE 938
Allocated PE 1876
Used PV 2

LV Name /dev/vg00/lvsql
LV Status available/syncd
LV Size (Mbytes) 224
Current LE 7
Allocated PE 14
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 2826
Autoswitch On

PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 4374
Free PE 2826
Autoswitch On

PV Name /dev/dsk/c3t2d0
PV Status available/standby spare
Total PE 4374
Free PE 4374
Autoswitch On


------------
I want to do 2 (two) vg, "vg00" and "vg01" and after put the file system "PRDu01" on vg01, I can do break the spare ? how to do all ?
Thanks.
2 REPLIES 2
Sandman!
Honored Contributor

Re: Change Volume Group

Unsparing operation on the PV can be done as follows:

# pvchange -z n /dev/dsk/c3t2d0

this makes /dev/dsk/c3t2d0 a regular PV which can be vgreduce'ed out of vg00. To move PRDu01 onto vg01 create a large enough lvol on vg01; backup and unmount PRDu01; restore PRDu01 data from backup onto the vg01 lvol.
Fabian Crea
Occasional Advisor

Re: Change Volume Group

Ok, Thanks in advance, but I thinks that first I reduce the logical volum, and other thing, I need the action plan, because I don't know unix, please, thanks for all.
FC