- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Removing unused 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
Forums
Discussions
Discussions
Discussions
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
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
01-17-2005 06:14 PM
01-17-2005 06:14 PM
I would like to remove the unused VG. this VG is having one lv defined. Can anybody give me step by step commands to remove this Lv, VG and PV.
Thanks,
Madhu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 06:22 PM
01-17-2005 06:22 PM
Solution#vgdisplay -v
will display lvol's existing in it, check the existing lvol's and take a backup of data if needed.
#lvremove /dev/vgxx/rlvolxx
#vgremove /dev/vgxx < to remove vg>
#vgscan -v
once you remove the vg, Physical disk (PV) is free ( check using vgdisplay -v
which you can unplug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 06:45 PM
01-17-2005 06:45 PM
Re: Removing unused VG
I am able to remove LV and VG. I am able to add that disk to other VG also.
But only thing is that in /etc/lvmconf, still i'm able to see the configuration details of that old VG. even in /dev also, those old VG details are visible. how to remove all those entries. so that i can use the same VG number and minor numbers in the future.
i tried vgscna -v without any success.
Thanks,
Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 06:51 PM
01-17-2005 06:51 PM
Re: Removing unused VG
# vgexport
Be very sure of the VGname before executing the command.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 06:55 PM
01-17-2005 06:55 PM
Re: Removing unused VG
#mv /etc/lvmconf /etc/lvmconf.old
#vgscan -v
what's the content of /etc/lvmconf?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 07:06 PM
01-17-2005 07:06 PM
Re: Removing unused VG
/etc/lvmconf is a directory.Do you want me to move the whole directory?
vgxx.conf file in /etc/lvmconf is showing the disk device file.
when i ran vgscan -v it's giving the warning message "The Volume Group /dev/vgxx/group was not matched with any Physical Volumes.
Scan of Physical Volumes Complete."
I think problem is with /dev/vgxx/group file. Can i remove this file directly?
Thanks,
Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 07:48 PM
01-17-2005 07:48 PM
Re: Removing unused VG
/etc/lvmconf is a directory.
when you run vgscan, corresponding vgxx under /etc/lvmconf files will be updated,
The vgremove will remove the specified vg's minor number (0x010000 etc.
check whether the disk is claimed or not (ioscan -fnC disk)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 08:13 PM
01-17-2005 08:13 PM
Re: Removing unused VG
#vgexport vgname
is enought.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 08:29 PM
01-17-2005 08:29 PM
Re: Removing unused VG
disk is claimed only. I added this disk to other VG also.
i ran vgremove while removing the Vg. but the /dev/vgxx directory is still exists.
how can i remove this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 08:47 PM
01-17-2005 08:47 PM
Re: Removing unused VG
vgremove should be remove the entire instances (including directory) of the volume group. If still exist use rm -rf /dev/vgxx to remove it.
make sure you are removing the dir of that VG (vgxx) only, removing VG00 leads to system crash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2005 09:09 PM
01-17-2005 09:09 PM