- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Moving disks: What do I do with /etc/lvmpvg?
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-17-2005 09:45 AM
тАО03-17-2005 09:45 AM
Moving disks: What do I do with /etc/lvmpvg?
We're preparing vgexport -s /vgimport -s scritps, saving mapfiles and minor numbers, etc. We're going to vgexport on shutdown and vgimport on startup.
I just discovered that we have several servers with /etc/lvmpvg files, which I have never used before.
So what do we do?:
Shutdown:
1...vgexport volumes.
2...shutdown
Reboot in new location.
1...rediscover volumes.
2...verify new "cX" numbers.
3...create new /etc/lvmpvg with new "cX" numbers.
4...vgimport vgs.
Will that do it?
Is there some easier way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 10:11 AM
тАО03-17-2005 10:11 AM
Re: Moving disks: What do I do with /etc/lvmpvg?
Run the import first, then create the lvmpvg file.
You may want to find out what the PVGs are used for on your server, for example I only use this file when I have a disk array.
I create a PVG for each bank of drives to ensure that my lvols are mirrored over both controllers.
However, you will be able to import everything the way it was with or without this file, recreate it afterwards of course but it may not be important at all.
Unfortunately there is no easier way, the steps you have outlined are the only way to get across a change of disk device files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 10:27 AM
тАО03-17-2005 10:27 AM
Re: Moving disks: What do I do with /etc/lvmpvg?
1. You say run the vgimport first and then create the /etc/lvmpvg file.
..But the /etc/lvmpvg file already exists. Should I copy it aside, vgimport and then recreate it?
2. You say I should be able to vgimport even without the /etc/lvmpvg file.
..If I can do without it, why don't I just forget it completely? move it aside, vgimport it and then just forget about it?
What good does it do anyway?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2005 11:56 PM
тАО03-17-2005 11:56 PM
Re: Moving disks: What do I do with /etc/lvmpvg?
You should check what /etc/lvmpvg is used for.
Check
man lvmpvg
more /etc/lvmpvg
vgdisplay ...
lvdisplay ...
If lvmpvg is used vgexport will delete entries, so make a backup before. vgimport does not use lvmpvg but you can tell it to recreate entries (but you must specify "cX" names - probably no option in your case).
What I (would) do:
rename lvmpvg
save vgdisplay information
save lvdisplay information
vgexport
vgimport
compare vgdisplay information
change entries in lvmpvg accordingly (few find/replace)
compare lvdisplay information
regards,
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2005 12:13 AM
тАО03-18-2005 12:13 AM
Re: Moving disks: What do I do with /etc/lvmpvg?
You cant tell vgimport do recreate lvmpvg, I just mixed it up with telling it which order of physical devices to use.
regards,
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2005 02:20 PM
тАО03-20-2005 02:20 PM
Re: Moving disks: What do I do with /etc/lvmpvg?
Apologies for the delay..., if the file exists then you won't need to recreate it, you can leave it in place and it will not affect the import.
What I am assuming is that it was created for a reason in the first place. It may not be needed now, but considering it's presence alone will not affect the system it is safer to leave it there.