- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport query
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
02-22-2005 02:47 AM
02-22-2005 02:47 AM
I have a cluster, within that cluster I have a volume group which shares the same disk. Unfortunately the controller ids are different on each server. I am adding an additional logical volume and need to re-import the volume group to the second server. These are the steps I believe I need to take is this correct:-
vgchange -a n /dev/vg01
vgexport -f /tmp/disk /dev/vg01 (I don't need mapfile do I?)
Then scp /tmp/disk to system 2.
On system 2:-
edit /tmp/disk to reflect correct controller ids
vgimport -f /tmp/disk /dev/vg01
vgchange -a y /dev/vg01
Is this right?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:52 AM
02-22-2005 02:52 AM
Re: vgimport query
I think you would rather use -s than -f:
vgexport -s /dev/vg01
- and -
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s /dev/vg01
vgchange -a y /dev/vg01
As far as maps are concerned, you don't need them unless your logical volume names are non-standard (anything other than lvol01, lvol02, etc)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:54 AM
02-22-2005 02:54 AM
Re: vgimport query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:55 AM
02-22-2005 02:55 AM
Re: vgimport query
On first system:
vgexport -m
ls -la /dev/vg01/group (make a note of the minor number)
Copy the mapfile over to the second system.
On second system
vgchange -a n /dev/vg01 (shouldn't be needed)
vgexport /dev/vg01
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0xYY0000 (where YY is the minor number above)
vgimport -m
This is the process I use when doing what you're asking about.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:57 AM
02-22-2005 02:57 AM
Re: vgimport query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:57 AM
02-22-2005 02:57 AM
Re: vgimport query
Regards,
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:58 AM
02-22-2005 02:58 AM
Re: vgimport query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:01 AM
02-22-2005 03:01 AM
Re: vgimport query
Thanks all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:04 AM
02-22-2005 03:04 AM
Re: vgimport query
# vgexport -m /var/tmp/mapfilename -p -v -s vg??
Copy mapfile to other machine.
Then on the other machine:
# mkdir /dev/vgname
# mknod /dev/vgname/group c 64 0x0?0000
# vgimport -m /var/tmp/mapfilename -v -s vgname
The mapfile with the VGID will scan all drives and import those with the appropriate VGID. This eliminates having to worry with device file names.
It doesn't matter if the device files are different or the same. It will still work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 04:42 AM
02-22-2005 04:42 AM
Re: vgimport query
What i do is:
On Server 1..
No need tp deactivate the VG01
#vgexport -m /var/tmp/mapfilename -p -v -s vg01
Copy mapfile to other Server 2.
Then on Server 2:
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x0?0000
# vgimport -m /var/tmp/mapfilename -v -s vgname
Make sure you are using the same PV's that belongs to vg01 on server1. You can make this looking at the H/w path in IOSCAN output on both the servers.
Hope that helps.
Regards,
ps. Gary's suggestion would be the best one but i have never tried in that way.