- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgexport/vgimport
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-14-2008 09:09 AM
03-14-2008 09:09 AM
Just wondering what would be the exact commands for vgexport and vgimport for this...
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 09:24 AM
03-14-2008 09:24 AM
Re: vgexport/vgimport
That said, your vgexport/import will look like this:
vgchange -a n /dev/vg01
vgexport -p -s -m /tmp/vg01map /dev/vg01
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s -m /tmp/vg01map /dev/vg01
vgchange -a y /dev/vg01
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 10:03 AM
03-14-2008 10:03 AM
Re: vgexport/vgimport
You want to export with the '-p' option on the first cluster server so it does not actually wipe out the VG. Then you can take that map file and import it on the 2nd server.
Something like this:
1st server:
vgexport -p -s -m /tmp/vg01map /dev/vg01
Copy the map file to the 2nd server
2nd server:
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s -m /tmp/vg01map /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 10:13 AM
03-14-2008 10:13 AM
Re: vgexport/vgimport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 10:16 AM
03-14-2008 10:16 AM
Re: vgexport/vgimport
You do need to remove the VG (vgexport) and add it back in to update it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 10:24 AM
03-14-2008 10:24 AM
Re: vgexport/vgimport
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 10:36 AM
03-14-2008 10:36 AM
Re: vgexport/vgimport
vgexport /dev/vgcluster
vgimport -s -m /tmp/vgclus.map /dev/vgcluster
and that should do...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 10:39 AM
03-14-2008 10:39 AM
Re: vgexport/vgimport
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 11:17 AM
03-14-2008 11:17 AM
Solution>>vgexport /dev/vgcluster
>>vgimport -s -m /tmp/vgclus.map /dev/vgcluster
>>and that should do...
You need to verify whether the /dev/vgcluster directory exists after you do the vgexport. I believe a vgexport wipes out the directory under /dev.
If /dev/vgcluster does get removed by vgesport you would need to do:
# mkdir /dev/vgcluster
# mknod /dev/vgcluster/group c 64 0x0?0000
(where the 0x0?0000 is your appropriate minor number)
Then you can do your vgimport.
Once you do the vgexport, the rest of the procedure is not unlike importing a new VG to the server for the first time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 11:30 AM
03-14-2008 11:30 AM
Re: vgexport/vgimport
-----------------------
1.#pvcreate
2.#vgextend vgname
3.export the map file in preview mode
#vgexport -v -p -s -m /tmp/vgname.map
4.copy the map file to the adoptive node
On the adoptive node.
--------------------
1.Note the minor number of the VG which ur goung to remove.
#ll /dev/vgname/group
2. remove the VG from the node.
#vgexport
3.create the VG directory and group file
#mkdir /dev/vgname
#mknod /dev/vgname/group c 64
eg:
# ll /dev/vg10/group
crw-r--r-- 1 root sys 64 0x090000 Mar 14 23:21 /dev/vg99/group
4.import the volume group.
#vgimport -v -s -m /tmp/vgname.map vgname
5. Activate the vgname in read only mode to verify and then deactivate it once is ie verified.
#vgchange -a r vgname
#vgdisplay -v vgname # u can see the new disk
#vgchange -a n vgname