- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: recovering LVM configuration
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-30-2003 01:24 AM
06-30-2003 01:24 AM
recovering LVM configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 01:29 AM
06-30-2003 01:29 AM
Re: recovering LVM configuration
You can also run vgscan in preview mode, to see what results it does get.
Note: If there are failover paths in the VG that were not there before (like SAN alternate paths) it will try and include these, and give warnings about them.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 01:32 AM
06-30-2003 01:32 AM
Re: recovering LVM configuration
I think that in you situation, the best things to do is:
1. keep a copy of /etc/lvmconf/vg01.mapfile
2. vgexport vg01
3. mkdir /dev/vg01
4. mknod /dev/vg01/group c 64 0x010000 (verify the minor before doing vgexport)
5. vgimport -m vg01.mapfile /dev/vg01 liste_of_your_device
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 02:53 AM
06-30-2003 02:53 AM
Re: recovering LVM configuration
A) Need that alternate boot disk for situations like this as well as a cron job executing make_tape_recovery's at least once a month. Archieve these tapes offsite in a safe deposit box.
B) You've restored the server to a state that has no knowledge of the disks installed at a later time. So these current disk names can't exist anywhere on the server, like in /etc/lvmconf. They probably exist in the form of other backups other than ignite backups, so keep this in mind in case they are needed, but they're probably not.
B1) The data still exists on the data array and these disks know their LVM configuration from the configuration data stored in the LVM header. Using the '-s' option in vgexport and vgimport you can get these disks to join up in a newly created mapfile. Use this procedure:
ll -d /dev/vg01/group
Copy down the 0x0#0000 minor number.
vgexport -p -s -v -m /tmp/vg01_mapfile /dev/vg01 (* -p for preview *)
vi /tmp/vg01_mapfile (* review and rerun without -p option *)
Note: This will remove vg01 from the system except for the mapfile and LVM headers.
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x0#0000
pvcreate -f /dev/rdsk/cXtYdZ
vgimport -p -s -v -m /tmp/vg01_mapfile /dev/vg01 (* -p for preview *)
Remove the -p option when ready.
B2) Check /etc/fstab. Since you've got and old copy of the O/S on your system it may not be up to date.
mount -a (* mount all file systems *)
bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2003 03:34 AM
06-30-2003 03:34 AM
Re: recovering LVM configuration
Bill Hassell, sysadmin