1820160 Members
3172 Online
109620 Solutions
New Discussion юеВ

VGREMOVE

 
Arun Jain
Frequent Advisor

VGREMOVE

Hi All,

I have one server running HP-UX 11.11. Last one due to some testing purpose, one VG was created consisting 8 PV and 10 LV. total size of the VG is 1.7 TB.
now the testing is over and the same is to be removed. Post that one new VG and LV is to be created but this time the zie of the LV is 250 GB.
Please suggest, whether I should go for vgexport method or vgremove method.

In both the cases Plz provide the steps also.

Thanks & Regards :
Arun
speak less say more
6 REPLIES 6
Ramesh S
Esteemed Contributor

Re: VGREMOVE

Hi

It is better to run "vgexport" rather than removing all LV's,PV's and vgremove.

Do
#vgexport

Then,

CReate your new VG and LV

Best Regards,
Ramesh
Aashique
Honored Contributor

Re: VGREMOVE

Hi Arun,
you can remove the LV and or you can export the VG.

vgchange -a e /dev/vg-name
lvremove /dev/vg-name/lvname

or
vgexport /dev/vg-name


Thanks & Regards

Aashique
Prabhu Hosmani
Advisor

Re: VGREMOVE

Hi

Ramesh is telling right method

run vgexport rather than removing all LV's,PV's and vgremove

#vgexport
then ceate new VG and LV as per your equirement




Prabhu Hosmani
Advisor

Re: VGREMOVE

Hi

Ramesh is telling right method

run vgexport rather than removing all LV's,PV's and vgremove

#vgexport
then ceate new VG and LV as per your requirement




Rasheed Tamton
Honored Contributor

Re: VGREMOVE

Hi Arun,

vgexport will remove the volume group with one step but without modifying the logical volume information found on the physical volumes.

vgexport OLDVG

Create new VG:
mkdir /dev/VGNAME
mknod /dev/VGNAME/group c 64 0x0?0000 (be careful about the minor no)
pvcreate -f /dev/rdsk/c?t?d?
(remove the old vg info from the disks)

vgcreate VGNAME /dev/dsk/c?t?d?
(choose the correct values for the PE size, etc).

vgchange -ay VGNAME
lvcreate -L 256000 /dev/VGNAME/lvolname

Regards,
Rasheed Tamton.
Sajjad Sahir
Honored Contributor

Re: VGREMOVE

Dear Arun

# vgchange -a n volume group(for deactivating volume group)
# vgexport volume group name(for removig volume group)
it will remove u volume group

thanks and regards

Sajjad