1753774 Members
6796 Online
108799 Solutions
New Discussion юеВ

Decommission VG

 
Nanda M
Advisor

Decommission VG

Hi,

I am going to decommission the /dev/vgpkgdb,

4 lv is in this vg,

--- Physical volumes ---
PV Name /dev/dsk/c82t7d3
PV Name /dev/dsk/c86t13d5 Alternate Link
PV Name /dev/dsk/c80t7d3 Alternate Link
PV Name /dev/dsk/c79t13d5 Alternate Link
PV Name /dev/dsk/c81t14d4 Alternate Link
PV Name /dev/dsk/c83t7d0 Alternate Link
PV Name /dev/dsk/c84t14d4 Alternate Link
PV Name /dev/dsk/c85t7d0 Alternate Link
PV Status available
Total PE 1482
Free PE 106
Autoswitch On
Proactive Polling On

Need to free all this disk so could you give me steps and commands
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: Decommission VG

Hi:

DO:

# vgchange -a n vgpkgdb
# vgexport vgpkgdb

Regards!

...JRF...
Nanda M
Advisor

Re: Decommission VG

after exporting do i need to pvremove?
James R. Ferguson
Acclaimed Contributor

Re: Decommission VG

Hi (again):

> after exporting do i need to pvremove?

You can if you like. The 'pvremove' command obliterates the LVM header from the physical disk. It is one way of insuring that the disk cannot be 'vgimport'ed anywhere.

Regards!

...JRF...
RUET
Regular Advisor

Re: Decommission VG

complete operation should be:
first umount all the mounted logical volumes from thsi VG :
umount /dev/vgpkgdb/lvx ..
desactivate the vg
vgchange -a n /dev/vgpkgdb
remove vg definitions :
vgexport /dev/vgpkgdb
clean /etc/fstab with mounts from this VG

After this,
you have no more commands to do,
you just have the PV available for any new usage,
regards

Patrick
Nanda M
Advisor

Re: Decommission VG

Thanks for replay,

We are not going to use all this PV we have to return to SAN team so is there any more steps which i need to?

I need to delete all the data which is in the disk
James R. Ferguson
Acclaimed Contributor

Re: Decommission VG

Hi (again):

> We are not going to use all this PV we have to return to SAN team so is there any more steps which i need to? I need to delete all the data which is in the disk

If the physical disk is going to be reused by another server on the SAN that you (your company) owns/controls, I would not bother further, If it makes you feel better, write zeros to it:

# dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=1024k

Of course, with the right technology data can still be retrieved from the disk even after multiple passes of the above (or of /dev/urandom) :-)

Regards!

...JRF...
Nanda M
Advisor

Re: Decommission VG

Thanks for you all,
Nanda M
Advisor

Re: Decommission VG

I am happy with you commands
James R. Ferguson
Acclaimed Contributor

Re: Decommission VG

Hi:

If you are satisfied with the answers you have received, please read:

http://forums13.itrc.hp.com/service/forums/helptips.do?#28

...JRF...