- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rebuilding system and saving LVM info
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
09-12-2002 09:57 AM
09-12-2002 09:57 AM
I have to rebuild a server from scratch (my thanks go out to the clown that built it originally)
I have several filesystems mounted up from an EMC CLARiiON. I'd like to be able to get them all back on the newly rebuilt system with the least amount of problems.
So, before I take the box down, I will be doing a vgexport. The man page says that when I do, I lose the VG's from the system.
If I use a -s, I don't lost the VG's. This isn't a HA environment and was wondering if I could still do a -s without effecting the current VG info or should I just use the -p and make the files without effecting any change?
Was hoping to get all this staged ahead of time so I wouldn't have to do it just before the rebuild.
All the devices should be the same since we aren't changing anything else.
# vgexport -m /tmp/vgemc1.map -p \
-f /tmp/emc1_pv /dev/vgemc1
Then after the rebuild....
# mkdir /dev/vgemc1
# mknod /dev/vgemc1/group c 64 0x020000
(ps - does the VG No. have to be the same, ie: 0x020000 ???)
Move the map and pv files onto the system, do an ioscan and insf -e to make sure the device files are in place.... then
# vgimport -m /tmp/vgemc1.map -f /tmp/emc1_pv /dev/vgemc1
# vgchange -a y
Have I missed anything?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:03 AM
09-12-2002 10:03 AM
Re: rebuilding system and saving LVM info
and no, the VG no. as you call it doesn't have to be the same but it does have to be unique.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:18 AM
09-12-2002 10:18 AM
Re: rebuilding system and saving LVM info
- No the minor number do not have to be the same.
I'm a bit concern (maybe this is a non-issue) about the device path in the file "emc1_pv", make sure you double check to ensure the device files remains the same after the system is rebuilt. Other than that it looks good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:23 AM
09-12-2002 10:23 AM
Re: rebuilding system and saving LVM info
The use of the '-f' option with 'vgexport' and 'vgimport' is quite useful when you want to order, for purposes of balancing, alternate (pv) links across controllers.
The '-s' option can also be used to create a mapfile with the VGID (Volume Group ID) in it. The presence of the VGID then allows 'vgimport' to automatically select the appropriate physical volumes. While often associated with "sharable" (as in MC/ServiceGuard implementations), the '-s' option can be freely used.
No, the minor number of the device file does not have to match the number of the volume group. However, making them the same is convenient in the long run and makes maintenance intuitive. Remember that the minor number is in hexadecimal, so volume group ten (10) would have a minor number '0x0a0000'. Remember too, the the kernel parameter 'maxvgs' defaults to ten (10) allowing a unique number in the range 0-9. While this can be increase up to 256, about 4-8KB of lockable memory is consumed for each increement.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:26 AM
09-12-2002 10:26 AM
Re: rebuilding system and saving LVM info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:26 AM
09-12-2002 10:26 AM
Re: rebuilding system and saving LVM info
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:31 AM
09-12-2002 10:31 AM
Re: rebuilding system and saving LVM info
I should also note that a mapfile isn't necessary if your logical volume names are standard. That is, the name is in the form 'lvolN' where N is the decimal equivalent of the two least significant bytes of the minor number of the new logical volume.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 12:22 PM
09-12-2002 12:22 PM
Re: rebuilding system and saving LVM info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 12:35 PM
09-12-2002 12:35 PM
Re: rebuilding system and saving LVM info
If for any reason a path to a disk changes, the "-s" option will still vgimport the volume group since it scans all disks looking for the VGID match.
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 01:39 PM
09-12-2002 01:39 PM
Re: rebuilding system and saving LVM info
Hi
vgexport
http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062910856
vgimport
http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062910859
vgscan - unable to match physical volume to a volume group
http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063235845
Cur PV and Act PV do not agree in vgdisplay
http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063204484
Hope these help
Steve