- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can vgimport if the OS crashed...??
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
06-27-2002 01:14 PM
06-27-2002 01:14 PM
I want to create a script that would get all these maps if ever there was a full scale OS crash. Is this possible??
We are running 11.0 systems.
Let me know if more information is required.
Thanks and Best Regards,
Tony Escujuri
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 01:20 PM
06-27-2002 01:20 PM
SolutionYou can use these maps.. It is a good thing you have created the non-vg00 maps also...I am not sure what you mean by full OS crash... If you have to reload the OS then also these maps will be handy..
cheers
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 01:26 PM
06-27-2002 01:26 PM
Re: can vgimport if the OS crashed...??
Everyday, on all of my production servers I run a cron job which does a 'vgexport' in preview mode. This is basically a non-desrtuctive way to save your information. I have it saving to a directory in my vg00 and it also gets backed up to tape.
Here's an example
vgexport -m myvg1.mapfile -p -v /dev/myvg1
Yes, you could get the information back, because the actual LVM information lives in the header of each disk. As long as you have the disks, you can do this. It is even possible to do it without having your mapfiles. Over the last year on a few occasions we have actually moved servers aside
wheeled another in and imported each of the volume groups using these exported map files.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 01:27 PM
06-27-2002 01:27 PM
Re: can vgimport if the OS crashed...??
If you routinely make Ignite recovery tapes, this will happen automatically.
'make_tape_recovery' will not only create maps for non-vg00 volumes, but attempt to 'vgimport' them if you re-ignite your server.
To capture all of vg00 (and mapfiles for all other volume groups), do:
# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 01:33 PM
06-27-2002 01:33 PM
Re: can vgimport if the OS crashed...??
Hopefully you have the map files stored on tape so they are accessable to you if the machine crashes.
A good way to create you mapfiles without actually exporting the VG's:
# vgexport -m mapfilename -p -v -s vg??
This will create your mapfile with the VGID at the top of the file.
When you want to import:
#mkdir /dev/vg??
# mknod /dev/vg??/group c 3 0x0?0000
# vgimport -m mapfilename -v -s vg??
Using the '-s' option creates the map file so that you DON'T have to specify the disk device files of the VG you are importing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 02:58 PM
06-27-2002 02:58 PM
Re: can vgimport if the OS crashed...??
mkdir /dev/vgXXX
mknod /dev/vgXXX/group c 64 0x0Y0000
vgimport -v /dev/vgXXX /dev/dsk/
That's it. This method works fine with good knowledge of which disks constitute the original volume group. For complex situations (many volume groups and lots of disks), always create a mapfile for each VG but use the vgexport options: vgexport -s -p -v -m
Bill Hassell, sysadmin