- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vg01 export /import
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
05-21-2003 06:43 AM
05-21-2003 06:43 AM
vg01 export /import
I have vg01 which is my /users dir mounted on
/dev/vg01/lvol2
(vg01/lvol1 is swap)
What are the steps before and after the re-ignite to recover vg01 and maintain access to the data on /vg01/lvol2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 06:51 AM
05-21-2003 06:51 AM
Re: vg01 export /import
If you simply recovering onto the same hardware that was used when the Ignite recovery image was created, it is very likely that you will not need to do anything.
That is, the Ignite 'make_tape_recovery' process will attempt to 'vgimport' non-vg00 volume groups for you. As long as the hardware paths (device files) haven't changed, the import will be automatic. If the disk device files do change (possible) then you merely need to manually 'vgimport' using the correct device files and the appropriate mapfile Ignite placed in 'etc/lvmconf/' directory.
See the man pages for 'vgimport' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 06:52 AM
05-21-2003 06:52 AM
Re: vg01 export /import
You did have swap on v00 yes?
make it primary swap again
Look in /dev/vg01 the values of group:
ll group - you may need the minor number later
make a vgexport in a mapfile using -m
dont forget before reimporting to create vg01:
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x
then vgimport -m
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 06:53 AM
05-21-2003 06:53 AM
Re: vg01 export /import
I would make a good backup, but it has been my experience with Ignite that VG01 will be fine. That is as long as you don't pvcreate it's disk(s) or vgexport it. I have re-ignited many times before and when the box comes back up the lvols outside of vg00 are fine and mounted, ready to go. To be sure though, I definately recommend a good backup...just so you don't have a GOTCHA!
Hope this helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 06:54 AM
05-21-2003 06:54 AM
Re: vg01 export /import
The data on the disks will still be present (as long as you did not overwrite them by installing the OS on them).
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 06:56 AM
05-21-2003 06:56 AM
Re: vg01 export /import
1) lp /etc/fstab
strings /etc/lvmtab | lp
bdf | lp
vgdisplay -v /dev/vg01 |lp
ioscan -k -C disk -fn | lp
(all of this can prove very useful later)
2) vgexport -p -m /tmp/vg01.map /dev/vg01
Copy the mapfile using ftp or tar to a safe place or put in somewhere in vg00 so that you will have it later. If your LVOL names are 'standard' lvol1, lvol2, ... the map file is optional.
On your new box:
3) cd /dev
umask 022
mkdir vg01
cd vg01
mknod group c 64 0x010000
The minor number 0x010000 must be unique; i.e. not used by vg00, vg02, ...
Restore your mapfile, vg01.map to /tmp (if needed).
4) Using the disk device data listed in the vgdisplay output (or etc/lvmtab)
vgimport -m /tmp/vg01.map -v /dev/vg01 /dev/dsk/c1t6d0 /dev/dsk/c2t6d0 (your disk devices will vary)
vgchange -a y /dev/vg01
vgcfgbackup /dev/vg01
using the fstab listing, edit /etc/fstab and add back any needed mount entries
create the mountpoint directories using mkdir,
e.g. mkdir /user
5) Mount the directories
e.g. mount /user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 10:40 AM
05-22-2003 10:40 AM
Re: vg01 export /import
Now would I also do the same if I wasnt intending on re-igniting but just taking preventative measures incase of a harddrive failure? Restoring data takes longer than if I can just recover the vg01 information and remount the vols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 11:14 AM
05-22-2003 11:14 AM
Re: vg01 export /import
I would add one minor thing to Clay's excellent post.
Use -s in vgexport:
vgexport -s -p -m /etc/lvmconf/vg01.map /dev/vg01
The -s will write the VGID into the map file which makes recovering vg01 faster IF the HW path changes. This causes vgimport to look for that VGID when it does the vgimport. Then you will not have to chase the new HW path down before vgimporting. This MUST always be done when you vgexport / vgimport to another host.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:03 AM
06-05-2003 07:03 AM
Re: vg01 export /import
vgexport -s -p -m /etc/lvmconf/vg01.map /dev/vg01
but it gives me /dev/vg01 is still active
is there away I can do this without deactivating the volume group which is still used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:07 AM
06-05-2003 07:07 AM
Re: vg01 export /import
The message about vg01 being active is just a warning. It won't hurt anything. You should be able to see the contents of your map file now.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:08 AM
06-05-2003 07:08 AM
Re: vg01 export /import
you actualyl DID do the mapping of the Volume Group... that was just an informational message telling you that the Volume Group is still active, but if you look, you'll see your mapfile in place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:10 AM
06-05-2003 07:10 AM
Re: vg01 export /import
It does warn that the group is still active, but should create the files you specified.
Can you check these and confirm they exist? There should be a list of disks produced as part of the 'vgexport' output to screen.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:22 AM
06-05-2003 07:22 AM
Re: vg01 export /import
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 11:20 AM
06-06-2003 11:20 AM