- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvm lvol rebuild advice
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
09-12-2002 08:21 AM
09-12-2002 08:21 AM
lvm lvol rebuild advice
I'm trying to rebuild a volume group, that was accidently removed, all I have is an old bdf.
There is no backup of any kind - tape/vgexport mapfile etc.
For the majortity of the lvols it was a case of create the lvols in the logical numerical order. And then they mounted OK.
However, I am at a point where there has been some lvextends of existing lvols intermingled with lvcreates of new ones, and therefore I don't know to which logical volume the 'next' physical extent belongs.
Trial and and error, is an obvious unattractive solution.
So, is there another way I could read, for example, the superblock of a partially restructured lvol, to find out which data blocks it references, and link this to the order of extents on the physical volume?
Any ideas appreciated.
Cheers
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 08:34 AM
09-12-2002 08:34 AM
Re: lvm lvol rebuild advice
The easiest thing to try from the beginning would have been a vgimport.
You could run it like:
# vgimport -v /dev/vg?? /dev/dsk/c?t?d? /dev/dsk/c?t?d?
And just specify all disks that were part of that VG.
Since you have already started trying to recreate the VG and LVs, I don't know if this will work or not, but I guess you could give it a shot.
By the way, see why you always need to have some kind of backup? :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 08:39 AM
09-12-2002 08:39 AM
Re: lvm lvol rebuild advice
# vgimport /dev/vg03 /dev/dsk/
Assuming the device files /dev/vg03/group is still there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 09:49 AM
09-13-2002 09:49 AM
Re: lvm lvol rebuild advice
Try using vgcfgrestore.
Restore LVM configuration information stored for /dev/rdsk/c0t7d0 in default configuration file /etc/lvmconf/vg01.conf to physical volume /dev/rdsk/c0t6d0:
vgcfgrestore -n /dev/vg01 - o /dev/rdsk/c0t7d0 /dev/rdsk/c0t6d0
Also if this work then you might have to do vgchange and activate the volume group.
vgchange -a y /dev/vg01
Good Luck!
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 09:56 AM
09-13-2002 09:56 AM
Re: lvm lvol rebuild advice
You could use the information in /etc/lvmconf dir for the said VG to restore using vgcfgrestore.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 10:03 AM
09-13-2002 10:03 AM
Re: lvm lvol rebuild advice
'vgcfgrestore' would have been my first choice. *However* from the description you have given, I suspect that you started by recreating not only the volume group ('vgcreate') but the logical volumes with 'lvcreate', too.
Unless you turned *off* the 'autobackup' option (the default is *on*), then you overwrote '/etc/lvmconf/vgXX.conf' (and subsequently '/etc/lvmconf/vgXX.conf.old') everytime you performed an LVM operation. See the man pages for any of the commands you used.
Unless you have an old alternate configuration backup file of "the way it was", 'vgcfgrestore' isn't a viable option.
Regards!
...JRF...