On Wed, 2 Mar 2005, Christoph Gysin wrote:

> No physical devices were found to assemble /dev/md0.
> Try to define DEVICE before ARRAY.
> This works for me:
> DEVICE /dev/hda1 /dev/hdc1 /dev/hda3 /dev/hdc3
> ARRAY /dev/md0 level=raid1 num-devices=2
> UUID=b672d714:d2e45461:046ea228:8ef71a06
>     devices=/dev/hda1,/dev/hdc1
> ARRAY /dev/md1 level=raid1 num-devices=2
> UUID=f97e2a87:6ae6edc0:1ba541dd:0945e9ed
>     devices=/dev/hda3,/dev/hdc3

OK, I bit the bullet and ran the create command again like this:

mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /deb/sdb1

It reported that it found an ext2fs on the partition and then proceeded
to rebuild the array. I did the same for the other devices and all got
rebuilt and luckily it looks like it preserved all the file-systems too:

# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5] [raid6] [raid10]
md2 : active raid1 sdb4[1] sda4[0]
      4819392 blocks [2/2] [UU]

md1 : active raid1 sdb3[1] sda3[0]
      3004032 blocks [2/2] [UU]

md0 : active raid1 sdb1[1] sda1[0]
      56128 blocks [2/2] [UU]

unused devices: <none>

# mount /dev/md1 /mnt/gentoo
# mount /dev/md0 /mnt/gentoo/boot
# mount /dev/md2 /mnt/gentoo/var
# mount
/dev/ROOT on / type xfs (rw,noatime)
/newroot/dev/cdroms/cdrom0 on /mnt/cdrom type iso9660 (ro)
/dev/loop/0 on /mnt/livecd type squashfs (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev type ramfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
tmpfs on /usr/lib/hotplug/firmware type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/md1 on /mnt/gentoo type reiserfs (rw)
/dev/md0 on /mnt/gentoo/boot type ext3 (rw)
/dev/md2 on /mnt/gentoo/var type reiserfs (rw)

# cd /mnt/gentoo
# ls
bin  boot  dev  etc  home  lib  mnt  opt  proc  root  sbin  service  sys
tmp  usr  var

All the files appear to be there (this was a stage 1 build so Im relieved
to not have to re-build ;-)

gentoo-user@gentoo.org mailing list

Reply via email to