- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: decomissioning a 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
тАО03-10-2009 10:53 AM
тАО03-10-2009 10:53 AM
decomissioning a vg
clean up all related to vg instance like fs-s, lvols, release disks, remove vg related UID-s ,... but we have have to capture disks assigned and remove device files...
Now this is what i got... I can get rid of lvols by lvremove but what about UIDS associated with the VG. How do i go about getting rid of that...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 10:55 AM
тАО03-10-2009 10:55 AM
Re: decomissioning a vg
# vgchange -a n /dev/vgxx
# vgexport /dev/vgxx
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 11:13 AM
тАО03-10-2009 11:13 AM
Re: decomissioning a vg
> but what about UIDS associated with the VG
Do you mean the LVM VGID and PVID on the disk? If so, you can do:
# pvremove /dev/rdsk/cXtYdZ
...for 11.23 or later; or:
# dd if=/dev/zero of=dev/rdsk/cXtYdZ bs=1024k count=100
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 11:15 AM
тАО03-10-2009 11:15 AM
Re: decomissioning a vg
...and I mean do the 'pvremove' or 'dd' AFTER you have 'vgexport'ed the volume group and have decided to destroy all LVM headers on the physical volume...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:02 PM
тАО03-10-2009 12:02 PM
Re: decomissioning a vg
1)umount all fs's
2) lvremove all lvols.
3)vgreduce all pvs
4) vgexport the volume group.
5) now what about the uid's related to this volume group am i missing something...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:12 PM
тАО03-10-2009 12:12 PM
Re: decomissioning a vg
1. Unmount the filesystems and edit '/etc/fstab' so they aren't there the next time you reboot.
2. vgchange -a n vgNN
3. vgexport vgNN
4. pvremove /dev/rdsk/cXtYdZ
Step-4 is optional, assuming my original comments; viz. that you never want to 'vgimport' this volume group again. Again, I am assuming the by "UID" you mean the LVM header information, not "user-IDs".
Regards!
...JRF...