- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Exporting and Importing VGs
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
тАО07-16-2000 08:40 PM
тАО07-16-2000 08:40 PM
Exporting and Importing VGs
I'm going to rebuild a K220 this weekend. I have 38GB of image data backed, but I'm hoping I won't have to restore it. I'm going to export it's volume group and bring it back after the rebuild.
I have no other unix people here with me, and I need someone to read through my plan and confirm it's ok, or say what I've missed out. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2000 08:47 PM
тАО07-16-2000 08:47 PM
Re: Exporting and Importing VGs
(CLICK PAPER CLIP PICTURE)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2000 09:12 PM
тАО07-16-2000 09:12 PM
Re: Exporting and Importing VGs
Do not forget by the end to edit /etc/fstab to add the mount of fs or issue the mount command to do that.
Instead tar-ing the /dev/vg02, you can go and create the node group (see mknod command). Be sure when importing to have the physical disks in the same order.
I do not have man commend available right now, but, as far as I remember, in vgimport command, /dev/vg02 it is enough if is used at the begining.
If you still want to copy /dev/vg02 from old system, be sure the minor number of it is not already used.
As well you do not need to ftp the /etc/lvm/vg02.conf. vgimport command is doing it for you. If not, just use vgscan after import and you'll get it.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2000 10:40 PM
тАО07-16-2000 10:40 PM
Re: Exporting and Importing VGs
so far to good but i wouldn't tar the whole /dev/vg02, only /dev/vg02/group file is needed:
tar cvf vg02.tar vg02/group
All lvol device files would be created at vgimport time.
After vgimport/vgchange -a y do vgcfgbackup /dev/vg02 to save the lvm info.
Regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2000 05:37 AM
тАО07-17-2000 05:37 AM
Re: Exporting and Importing VGs
1. Umount filesystems, deactivate VG.
2. Run vgexport -m /tmp/vg02.map vg02
The vg02.map file contains the names of the lvols.
3. Transfer thru ftp or whatever the vg02.map file to the new system.
4. On the new system, assume there is no vg02 yet, neither a VG with ID 02 (can be checked by ll /dev/*/group, check two first digits of minor number, after 0x). If there is already a VG with ID 02, use something else (say 03). If there is a name conflict, use another one, but be careful about your filesystem device files...
5. Create the VG directroy (mkdir /dev/vg02) and the group file (mknod /dev/vg02/group c 64 0x020000 - be careful about the minor number).
6. Check the device files of the disks on the new system and import the VG running vgimport -m /tmp/vg02.map vg02 /dev/dsk/c0t4d0 ... (be sure to get all four disks, otherwise you will have to vgexport and vgimport again the whole VG)
7. Activate the VG (vgchange -a y vg02) and backup the config (vgcfgbackup vg02).
That's it! Hope it helps, Emmanuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2000 06:44 AM
тАО07-17-2000 06:44 AM
Re: Exporting and Importing VGs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2000 10:41 AM
тАО07-27-2000 10:41 AM
Re: Exporting and Importing VGs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2000 11:10 AM
тАО07-27-2000 11:10 AM
Re: Exporting and Importing VGs
It is generally designed for use in HA clusters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2000 10:06 PM
тАО08-03-2000 10:06 PM
Re: Exporting and Importing VGs
I agree with Alan that -s option should be used only in HA environment (shareable).
I recommend not to use this option especially when you are ugrading the system and chances are that ur device files might get changed.
Do vgexport in preview mode itself.
# vgexport -p -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2000 07:28 PM
тАО08-10-2000 07:28 PM