Skip to contentSkip to conversation

Recovering data from LVM partitions....

linux-lvm Gary Mansell 2 participants 2 messages Sep 23, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

Since RHEL 4 I have been creating my new machines with LVM partitioning as this is now the default. Hence I have two partitions on my disk
- /boot and an lvm partiton containing /, swap, and two other data logical volumes.

Today I have had a filesystem failure on a machine and the / partition is very corrupted and will not boot. Is there anyway that I can access and recover the data from the logical volumes?

It strikes me that this is the downside of LV's - if you cannot boot off of slash then it is not possible to access the data on the other logical volumes.

Perhaps, if filesystem sizes are not likely to change it is better to use standard partitions because if the / filesystem gets corrupted, at least the other partitions are rescuable.

Please can someone advise.

Regards

Gary Mansell

Signature · 22 lines
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this e-mail in error please notify the sender immediately
and delete this e-mail from your system.  Please note that any views or opinions
presented in this e-mail are solely those of the author and do not necessarily
represent those of Ricardo (save for reports and other documentation formally
approved and signed for release to the intended recipient).  Only Directors
or Duly Authorised Officers are authorised to enter into legally binding
obligations on behalf of Ricardo unless the obligation is contained within
a Ricardo Purchase Order.

Ricardo may monitor outgoing and incoming e-mails and other telecommunications
on its e-mail and telecommunications systems.  By replying to this e-mail you
give consent to such monitoring.  The recipient should check this e-mail and
any attachments for the presence of viruses.  Ricardo accepts no liability for
any damage caused by any virus transmitted by this e-mail.  "Ricardo" means
Ricardo plc and its subsidiary companies.

Ricardo plc is a public limited company registered in England with registered
number 00222915.
The registered office of Ricardo plc is Bridge Works, Shoreham-by Sea,
West Sussex, BN43 5FG.
#1 lore raw
Quoted 3 lines · Gary Mansell

Today I have had a filesystem failure on a machine and the / partition is very corrupted and will not boot. Is there anyway that I can access and recover the data from the logical volumes?

Memo for the archives: I had a disk in a LVM volume set die on me. I made some notes on pseudo-recovery at:

http://xdroop.dhs.org/space/Linux/LVM+Volume+Failure

Note the "go back in time" step.

Signature · 5 lines
 /\oo/\
/ /()\ \ David Mackintosh | Public Key: 
         [email protected]  | http://www.xdroop.com/dave/gpg.html
         $ gpg --recv-keys --keyserver subkeys.pgp.net 4C032504
         Mystery attachment?  http://xdroop.dhs.org/space/GPG