1855750 Members
1279 Online
104103 Solutions
New Discussion

Re: Shrink VG00

 
Nicky_5
Regular Advisor

Shrink VG00

Hi All,
Can some one tell me the process of shrinking the rootvg (vg00).
I currently have vg00 on 2 disks, and want to move it over to 1.

I have verified that the total used space of vg00 is less than the total capacity of the smaller disk.
5 REPLIES 5
Rick Garland
Honored Contributor

Re: Shrink VG00

The way to go for this is using Ignite.

I am making the assumption that the 2 disks in use are NOT mirrored, in which case use Ignite.

Once you get an Ignite image, you can interact with the bootup process and do a new filesystem layout.

Robert-Jan Goossens
Honored Contributor

Re: Shrink VG00

Hi Nicky,

Check this pvmove document.

Document description: Moving data within a Volume Group
Document id: LVMKBRC00005086

Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065140700

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065140700

Regards,
Robert-Jan
Mel Burslan
Honored Contributor

Re: Shrink VG00

It depends how your logical volumes are spread out over these two disk devices.

If you have another disk big enough to temporarily accomodate your volumes, it would be best to use that space while you are re-arranging the internal disks

Your final destination disk will be the one which currently hosts / and /stand as you can not move them short of re-installing or re-igniting your server. So, look at this disk and decide which other lvols have foothold on the same device. Create lvols as big as the original ones on another disk device.

Then go down to single user mode as you will be moving /usr and /var which are critical to multiuser operation of the system.

Copy data from internal root disks onto temporary lvols. Scratch your internal disk volumes other than / and /stand. Re-create them with new desired sizes. Copy your data from temporary storage into the original place.

Unfortunately, without knowing how your lvols have been laid out, there is no certain command sequence that one can suggest.

Another method is creating an BBT (bootable backup tape, a.k.a. Ignite image on tape) then booting of this media and re-arranging the lvol sizes and location once you get to the ignite install gui. By this method, you can resize your / and /stand if the need be.

Hope this helps.
________________________________
UNIX because I majored in cryptology...
Binu_2
Advisor

Re: Shrink VG00

Hi

Using Ignite will be easiest way

If 2 disks in use are NOT mirrored, then Once you get an Ignite image, you can interact with the bootup process and do a new filesystem layout.

Thanks
Binu
Devender Khatana
Honored Contributor

Re: Shrink VG00

Hi,

There is no need to ignite backup if your disk which you want to retain is the one currently having root,boot & Swap file systems. Just see from the output of "vgdisplay -v /dev/vg00" how many LE's are allocated to the disk you want to remove and which LV's own that from "lvdisplay -v /dev/vg00/lvol*".

Once done reduce the LV's extended to second disk to the first disk itself. And then reduce the VG from the second disk.

Normally any application related file systems are clreated to second disk and all other resides on first itself. Attach output of bdf & "lvdisplay -v /dev/vg00/lvol*" for more guidance if required.

HTH,
Devender

HTH,
Devender
Impossible itself mentions "I m possible"