- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Decommission VG
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 04:53 AM
тАО09-23-2009 04:53 AM
Decommission VG
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 04:57 AM
тАО09-23-2009 04:57 AM
Re: Decommission VG
DO:
# vgchange -a n vgpkgdb
# vgexport vgpkgdb
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:04 AM
тАО09-23-2009 05:04 AM
Re: Decommission VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:18 AM
тАО09-23-2009 05:18 AM
Re: Decommission VG
> 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:20 AM
тАО09-23-2009 05:20 AM
Re: Decommission VG
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:26 AM
тАО09-23-2009 05:26 AM
Re: Decommission VG
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:37 AM
тАО09-23-2009 05:37 AM
Re: Decommission VG
> 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:51 AM
тАО09-23-2009 05:51 AM
Re: Decommission VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:52 AM
тАО09-23-2009 05:52 AM
Re: Decommission VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2009 05:53 AM
тАО09-23-2009 05:53 AM
Re: Decommission VG
If you are satisfied with the answers you have received, please read:
http://forums13.itrc.hp.com/service/forums/helptips.do?#28
...JRF...