linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Marian Csontos <mcsontos@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
	geek@uniserve.com
Subject: Re: [linux-lvm] seems as if iy should be simple but I'm stuck
Date: Wed, 08 Apr 2015 10:58:54 +0200	[thread overview]
Message-ID: <5524EDCE.20801@redhat.com> (raw)
In-Reply-To: <20150403185730.16103jv6yj064wsq@webmail.uniserve.com>

On 04/04/2015 03:57 AM, Dave Stevens wrote:
> I've recovered two drives from a failed raid-10 array and now have a
> working degraded array from which I'd like to retrieve data. After
> assembling the array I ran fdisk and saw an LVM setup, with VolGroup00.
> Running lvscan shows the xen virtual machine names and disk allocations
> as they should be. I almost never do anything with lvm so I thought I'd
> make a directory and mount the logical volume on it to check out the
> data. When I mount /dev/VolGroup00/lvname I am told I need to specify a
> filesystem type. But specifying either ext3 or lvms gives errors. I
> don't see what I need to do. Anyone?

Depends...

I am not sure if there is any data lost. Supposing there is it is better 
to work on copy of data.

If working on the same host you can snapshot the LVs, and work on the 
snapshot. As usually keep in mind snapshots are rather slow, and you 
should drop/merge them when done with recovery.

Or just dd the LVs to a file (use reasonable large bs, bs=4M makes 
sense, as 4M is the default LVM2 extent size), and move (or better copy) 
that around as you like.

If you want to peek inside the image and if the format is RAW, which I 
suppose it is, the logical volume is a whole disk image with a MBR and a 
partition table, kpartx is what you want.

-- Martian

>
> The idea is to move the xen virtual machine to another working
> centos-xen machine, start it and do data recovery. I can supply more
> details but don't know what is relevant.
>
> Dave
>
>

      reply	other threads:[~2015-04-08  8:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-04  1:57 [linux-lvm] seems as if iy should be simple but I'm stuck Dave Stevens
2015-04-08  8:58 ` Marian Csontos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5524EDCE.20801@redhat.com \
    --to=mcsontos@redhat.com \
    --cc=geek@uniserve.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).