All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: Adam Newham <adam@thenewhams.com>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Unable to mount LVM partition - table too small
Date: Thu, 23 Sep 2010 23:12:34 +0200	[thread overview]
Message-ID: <20100923211234.GA17638@maude.comedia.it> (raw)
In-Reply-To: <4C9B91A5.5020908@thenewhams.com>

>
> I also don't remember ever seeing /dev/md0p1 before, just a /dev/md0

i guessed as much

> root@adam-desktop:~# mdadm --examine --scan --verbose
> ARRAY /dev/md0 level=raid5 num-devices=4 
> UUID=b5e0fcd0:cfadbb04:a5b6f22e:457f47ae
>    devices=/dev/sde,/dev/sdd,/dev/sdc,/dev/sdb
the above is the wrong md0 using whole disks

this one is the correct one
> ARRAY /dev/md0 level=raid5 num-devices=4 
> UUID=08558923:881d9efd:464c249d:988d2ec6
>    devices=/dev/sde1,/dev/sdd1,/dev/sdc1,/dev/sdb1
>
> root@adam-desktop:~# mdadm --examine --verbose /dev/sdb
> root@adam-desktop:~# mdadm --examine --verbose /dev/sdc
> root@adam-desktop:~# mdadm --examine --verbose /dev/sdd
> root@adam-desktop:~# mdadm --examine --verbose /dev/sde

you did not dump the partitions, but i guess you couldn't since the
device files disappeared

> root@adam-desktop:~# cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] 
> [raid4] [raid10]
> md0 : active raid5 sde[3] sdb[0] sdc[1] sdd[2]
>       2930287488 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
>
> unused devices: <none>
>

put 
DEVICE /dev/sd?1
ARRAY /dev/md0 level=raid5 num-devices=4 UUID=08558923:881d9efd:464c249d:988d2ec6

into /etc/mdadm.conf (or /etc/mdadm/mdadm.conf, whatever ubuntu places
it) and reboot, you should be able to see your data.

after this ask on linux-raid ml for advice on how to zero the duplicate
superblock.

L.

-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

  reply	other threads:[~2010-09-23 21:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07 17:34 [linux-lvm] Unable to mount LVM partition - table too small Adam Newham
2010-09-20 20:52 ` Adam Newham
2010-09-22  6:21 ` Luca Berra
2010-09-22 15:39   ` Adam NEWHAM
2010-09-23  6:43     ` Luca Berra
2010-09-23 17:43       ` Adam Newham
2010-09-23 21:12         ` Luca Berra [this message]
2010-09-24 16:25           ` Adam Newham

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=20100923211234.GA17638@maude.comedia.it \
    --to=bluca@comedia.it \
    --cc=adam@thenewhams.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.