- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Importing a cloned Volume Group
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
03-22-2006 06:02 AM
03-22-2006 06:02 AM
1. I want to clone a set of luns (all one VG) from one server and mount/import them on another server.
2. I want to clone a set of luns (again all one VG) and import them on the same host as a different VG.
For #1, can I simply do a vgscan and then a vgimport?
For #2, is it the same?
Thanks...
Dave
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2006 06:09 AM
03-22-2006 06:09 AM
Re: Importing a cloned Volume Group
1) Nope - You need to: A) create the /dev/vg_name dir B) mknod -c 64 0x?????? where ?????? is a unique number not used by an existing VG
And remember to use the -s on both vgexport & vgimport. This assumes these are the *same* LUNs that system A was using that system B can now see. Make sure system A no longer has visibility of these LUNs when you do the destructive vgexport on it.
2) I don't think this will work because at some point you should remove the old VG & that will wipe the VGID off the PVs - but I could be wrong here.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2006 06:10 AM
03-22-2006 06:10 AM
Re: Importing a cloned Volume Group
The process of 'vgexport' and 'vgimport' accomodates both. You don't need to 'vgscan'.
In your second question, you are really asking how to change the name of a volume group. To do that:
# unmount the volume group's logical volumes
# vgchange -a n /dev/oldvg
# vgexport -m /tmp/vgmap /dev/oldvg
# mkdir /dev/newvg
# mknod /dev/newvg/group c 64 0xNN0000 #...where N is unique
# vgimport -m /tmp/vgmap /dev/newvg /dev/dsk/pvpath ...
# vgchange -a y /dev/newvg
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2006 06:12 AM
03-22-2006 06:12 AM
Re: Importing a cloned Volume Group
Your methodology might be a step toward sharing, but cloning? No.
I'd do a vgexport in preview mode, take the map file and use it to import onto the next machine, but this method probably has the same problem.
You might be able to do this on your disk array. EVA-3000 have extensive features for cloning luns. Then present the clone to the second machine.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2006 07:24 AM
03-22-2006 07:24 AM
Re: Importing a cloned Volume Group
When I mention cloning, I'm talking about cloning from a back end storage array... not something within HP.
For the second option. I need to clone a drive, and mount it to back it up, on the same server. I was wondering if you can clone the drive, and then import it as a new VG group... i.e. clone vg01 and import as vg99.
Thanks again...
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2006 07:33 AM
03-22-2006 07:33 AM
SolutionYou can clone the drive and import it on the same server. The command that accomplishes this is 'vgchgid'.
Once you have the clone presented:
vgchgid /dev/rdsk/cXtXdX
mkdir /dev/vgNN
mknod /dev/vgNN/group c 64 0xnn0000
vgimport /dev/vgNN /dev/dsk/cXtXdX
vgchange -a y vgNN
Then you can mount your logical volumes on whatever filesystems you wanted. The onyl trouble I have ever had with this is that I usually have to do an fsck before mounting the volumes.
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2006 07:35 AM
03-22-2006 07:35 AM
Re: Importing a cloned Volume Group
vgcfgbackup /dev/vgNN
Good luck
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2006 02:03 PM
03-22-2006 02:03 PM
Re: Importing a cloned Volume Group
John's step will work perfectly. The only reason you need do fsck is because your source lun in open status i,e it is active. If possible, unmount the source before you start the clone process.
Regards
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 02:46 AM
03-23-2006 02:46 AM
Re: Importing a cloned Volume Group
I guess it's time to go play :)
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 02:48 AM
03-23-2006 02:48 AM
Re: Importing a cloned Volume Group
The man page for the command gives a step by step procedure on how to mount a clone on the same server.
Thanks
Dave