- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgremove vs. vgreduce
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
тАО11-28-2001 11:20 AM
тАО11-28-2001 11:20 AM
vgremove vs. vgreduce
I want to eliminate a filesystem . It has a alternate path. Is this correct?
umount /j04a
lvremove /dev/vg**/lvol**
vgreduce /dev/vg**/c10t3d3 (alternate path)
vgreduce /dev/vg**/c12t3d3 (primary path)
vgremove /dev/vg**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 11:23 AM
тАО11-28-2001 11:23 AM
Re: vgremove vs. vgreduce
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 11:28 AM
тАО11-28-2001 11:28 AM
Re: vgremove vs. vgreduce
Remove all but one physical volume belonging to VG by using vgreduce and then get rid of VG with last PV using vgremove.
If you want to keep the VG name,group file and add other disks, you may reduce all PVs using vgreduce and then continue to extend VG on new PVs.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 11:28 AM
тАО11-28-2001 11:28 AM
Re: vgremove vs. vgreduce
'vgremove' removes the *last* physical volume of a volume group and all knowledge of it.
'vgreduce' removes a physical volume, *but* leaves the volume group intact. 'vgreduce' cannot be used to remove the *last* physical volume, as this is done with 'vgremove'.
One common use of 'vgreduce' is to swap alternate (pv) links. If you 'vgreduce' the primary link, then the alternate link becomes the primary one. If you then use 'vgextend' to add back the original primary (physical volume) it becomes the new alternate link, completing the swap.
The snippet of shell you have posted will remove (destroy) the filesystem, logical volume(s) AND the volume group represented by "**" -- BUT PLEASE don't use wildcards for that!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 11:29 AM
тАО11-28-2001 11:29 AM
Re: vgremove vs. vgreduce
If you want to remove the VG completely, just unmount all the filesystems of that VG, remove all entries for that Vg in /etc/fstab and do a "vgexport /dev/vg_name" . This will remove all the info for that VG from the system and you don't have to do a vgreduce and vgremove.
vgreduce is to reduve a disk / disk path from the VG configuration, vgremove is to remove the VG completely. Do a man "vgremove" and "vgreduce" for more info.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 11:30 AM
тАО11-28-2001 11:30 AM
Re: vgremove vs. vgreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 11:39 AM
тАО11-28-2001 11:39 AM
Re: vgremove vs. vgreduce
umount /j04a
lvremove /dev/vg21/lvol121
vgreduce /dev/vg21/c13t1d1 (alternate link)
vgremove /dev/vg24
eliminate the vgreduce /dev/vg21/c9t2d2 (primary path) statment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 11:43 AM
тАО11-28-2001 11:43 AM
Re: vgremove vs. vgreduce
If you want to remove the VG completely with all LV's in it,
Do this,
umount /j04a
vgexport /dev/vg24
Here /j04a is the only filesystem on this VG and you want to remove the primary as well as the secondary path to the VG. Remember there is no recovery from this.
Hope this helps.
Regds