- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to removing inactive volume groups
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
08-02-2001 10:15 AM
08-02-2001 10:15 AM
thanks in advance - I'm a bit of a rookie at this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2001 10:26 AM
08-02-2001 10:26 AM
Solutionvgexport /dev/vgxx will remove the /dev/vgxx directory, the group file, the /dev/vgxx/lvol entries and the entries in /etc/lvmtab without
removing data on the disk itself.
You can also use -p to preview the command and do nothing else. Man vgexport for details.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2001 10:30 AM
08-02-2001 10:30 AM
Re: How to removing inactive volume groups
You could have 'vgexport'ed and 'vgimport'ed your disks and saved the trouble of recreating everything. Take a look (for the next time) at the man pages for both, there's some good explanation and examples there.
Now. One way to cleanup is to remove the volume group definitions (e.g. /dev/vgXX/) and recreate /etc/lvmtab with 'vgscan'.
PLEASE READ CAREFULLY the man pages on 'vgscan' regarding alternate links and preserve your existing file for general principals:
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a -v
This should clean things up.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2001 11:17 AM
08-02-2001 11:17 AM
Re: How to removing inactive volume groups
jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2001 11:27 PM
08-02-2001 11:27 PM
Re: How to removing inactive volume groups
This is exactly why. The HW Path changed and therefore the device files changed.
vgexport which is normally the method to do before changing the hardware will do the trick.. put it back the way it was, vgexport all vgs that'll change, then change h/w and vgimport the vg back in.
Now at the moment, if you mv /etc/lvmtab /etc/lvmtab.donotdelete
and then issue a vgscan you will be able to recreate your lvm configuration and scan in the configuration of the lost/changed vg... without loosing data.
BUT, vgscan will sort things in numerical order based on the device file, and your lvmtab may need some reworking after vgscan recreates it... vgreduce/vgextend.. this is only valid if you have alternate links and had them configured according to a particular failover design.
In eithercase, read the manuals first and take care in reading on screen prompts.
Later,
Bill
PS, I repost this because the question was moved right when I replied!