All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karl Voit <news@Karl-Voit.at>
To: linux-raid@vger.kernel.org
Subject: Re: only 4 spares and no access to my data - solved
Date: Sat, 15 Jul 2006 10:31:40 +0000 (UTC)	[thread overview]
Message-ID: <loom.20060715T122344-510@post.gmane.org> (raw)
In-Reply-To: 62b0912f0607121235v5146eafbx84a877899e965c94@mail.gmail.com

Molle Bestefich <molle.bestefich <at> gmail.com> writes:

> My best guess is that it's OK and you won't loose data if you run
> --zero-superblock on /dev/sd[abcd] and then create an array on
> /dev/sd[abcd]1, but I do find it odd that it suddenly can't find
> superblocks on /dev/sd[abcd]1.

OK, I tried several things and then I had enough and I did the creating part:
It worked!

,----[ Creating the raid ]
| root@ned ~ # mdadm --create -n 4 -l 5 /dev/md0 missing /dev/sdb1\
|  /dev/sdc1 /dev/sdd1
| mdadm: /dev/sdb1 appears to be part of a raid array:
|     level=raid5 devices=4 ctime=Sun Jan 29 21:35:05 2006
| mdadm: /dev/sdc1 appears to be part of a raid array:
|     level=raid5 devices=4 ctime=Sun Jan 29 21:35:05 2006
| mdadm: /dev/sdd1 appears to be part of a raid array:
|     level=raid5 devices=4 ctime=Sun Jan 29 21:35:05 2006
| Continue creating array? y
| mdadm: array /dev/md0 started.
| root@ned ~ # date;cat /proc/mdstat
| Fri Jul 14 18:51:48 CEST 2006
| Personalities : [linear] [raid0] [raid1] [raid10] [raid5] [raid4]\
|  [raid6] [multipath]
| md0 : active raid5 sdd1[3] sdc1[2] sdb1[1]
|       732443136 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]
|
| unused devices: <none>
| root@ned ~ #
`----

,----
| root@ned ~ # Start lvm
| Setting up LVM Volume Groups...
|   Reading all physical volumes.  This may take a while...
|   Found volume group "datavg1" using metadata type lvm2
|   1 logical volume(s) in volume group "datavg1" now active
| root@ned ~ # mount /dev/datavg1/datalv1 /data -o ro -t xfs
| root@ned ~ # mount
| rootfs on / type rootfs (rw)
| /dev/root on / type ext3 (rw,data=ordered)
| proc on /proc type proc (rw)
| sysfs on /sys type sysfs (rw)
| /dev/root on /dev/.static/dev type ext3 (rw,data=ordered)
| tmpfs on /dev type tmpfs (rw)
| /dev/pts on /dev/pts type devpts (rw)
| tmpfs on /dev/shm type tmpfs (rw)
| /dev/datavg1/datalv1 on /data type xfs (ro,sunit=128,swidth=25165824)
| root@ned ~ #
`----

OK, the thing works degraded. I unmounted it and did some file 
system checking:

,----
| root@ned ~ # xfs_repair /dev/datavg1/datalv1
| [...]
| done
| xfs_repair /dev/datavg1/datalv1  70.19s user 25.42s system\
|  18% cpu 8:25.58 total
| root@ned ~ # mount /dev/datavg1/datalv1 /data -o ro -t xfs
| root@ned ~ #
`----

No problems were found and the read-only mount afterwards worked.

Now I am doing backups *g*

Thank you for your help!


Next steps:
* After backups, I add the 4th disk
* Praying that the raid runs without problems from now on



  parent reply	other threads:[~2006-07-15 10:31 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-09 18:59 only 4 spares and no access to my data Karl Voit
2006-07-09 19:23 ` Molle Bestefich
2006-07-10  7:56   ` Karl Voit
2006-07-10  8:46     ` Henrik Holst
2006-07-10  9:27       ` Karl Voit
2006-07-10  9:34       ` Karl Voit
2006-07-10 11:16         ` Molle Bestefich
2006-07-10 11:42           ` Karl Voit
2006-07-10 12:07             ` Molle Bestefich
2006-07-10 12:36               ` Karl Voit
2006-07-10 17:06                 ` Molle Bestefich
2006-07-10 19:26                   ` Karl Voit
2006-07-12 19:35                     ` Molle Bestefich
2006-07-13 12:59                       ` Karl Voit
2006-07-15 10:31                       ` Karl Voit [this message]
2006-07-10 11:18       ` Molle Bestefich
2006-07-18  2:17       ` Neil Brown
2006-07-18 23:44         ` Nix
2006-07-10  8:48   ` Karl Voit

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=loom.20060715T122344-510@post.gmane.org \
    --to=news@karl-voit.at \
    --cc=linux-raid@vger.kernel.org \
    /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.