- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To recover LVM volume group, even if pvremove was ...
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
тАО02-13-2006 09:48 PM
тАО02-13-2006 09:48 PM
To recover LVM volume group, even if pvremove was executed on PVs
As a point adder ├в I love LVM, Though it might be considered ,complex in implementation compared to whole disk methods and disk partition methods, that existed in so called Jurassic era ;) , I reckon its more easier to recover compared to VXVM├в . I'm in the no process of inflicting any harm to VXVM. I love VXVM for its flexibility that it provides in the enterprise environment. I love VXVM in its own right and am a big fan of its technological capacities in the Volume management environment.
So let me stop bugging you with the boring introduction and get ahead with what I attempted to do, so here on it will get more technical├в ┬ж Please go through the attached DOC.
- Tags:
- pvremove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:59 PM
тАО02-13-2006 10:59 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
The procedure looks fine. If you repeat same commands (which were used initially) you should get your data back.
E.g. when you create VG, ensure same PE size defined.
Best regards
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 11:20 PM
тАО02-13-2006 11:20 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
Even if you run pvremove on a physical volume, its usually possible to run vgconfigrestore on the same physical volume and recover the configuration and probably not even necessary to restore the data.
Your outcome may vary.
Please take the time to publish your results and issues when the testing is complete.
Having read your document, I would expect the outcome that the document predicts. My suggestion above may be able to speed the recovery process, but I can see why you'd want to do it your way.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 03:47 AM
тАО02-14-2006 03:47 AM
Re: To recover LVM volume group, even if pvremove was executed on PVs
I am not too sure LV to PE layout will be retained while doing "vgcfgrestore"?
In his example each LV's PE are not contiguous.
Regds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 03:48 PM
тАО02-14-2006 03:48 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
Thanx for reading my thread. I hope it helps.
SEP : Just wondering one thing, though I haven't tried. I do agree you can use vgcfgrestore command because still the /etc/lvmconf/vg01.conf will be intact after removing the VG. But not too sure whether the sytem will accept the cammand for that VG, because it is no more in /etc/lvmtab right. But, any I will try steve's option.
PS: great guys, You are giving me different scenarios to work, I started liking LVM even more. ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 04:30 PM
тАО02-14-2006 04:30 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
This is the error message I got,
vgcfgrestore -f ./vg01.conf.old /dev/rdsk/c4t0d1
vgcfgrestore: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file.
vgcfgrestore: Invalid LVMREC on Physical Volume /dev/rdsk/c4t0d1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 07:54 PM
тАО02-14-2006 07:54 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
The test is quite good and you are lucky to have some test servers with you. Allthough some more precautions should be taken in the commands used for recovery. The test scenario may not work with these commands if you recover the disk in some other system reason being -
The default PE size for different version of OS may not be same and if the vgcreate is not done having define the PE_Size, the contents might be lost. So a good choice in my opinion will be to specify the PE_Size as found in old vgdisplay output. Another option to verify the default PE_Size will be to use vgcreate on some other unused disk and see the PE_Size.
vgcfgrestore will not work as the VG does not exist in the system. Also vgcfgrestore will create LVM structure on the disk as per the properties of the VG where you are putting that disk in. Again if the PE_Size and offcourse the file system layout of the old disk differes the contents will be overwritten and will not be recoverable.
Do keep the results posted and the errors encountered?
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 08:44 PM
тАО02-14-2006 08:44 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 08:50 PM
тАО02-14-2006 08:50 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
That is a good looking document. When LVM was first new to the world, there were multiple similar documents that were passed from email to email within the Response Center and within HP's internal database.
For the most part, the focus these days has been on vgcfgrestore and other more standard tools, but it never hurts to have the brute force documented someplace handy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2006 03:18 PM
тАО02-19-2006 03:18 PM
Re: To recover LVM volume group, even if pvremove was executed on PVs
I can see from the response that, It could help in some ways in unusual situations.
:)
Senthil Kumar .A