[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RAID1 root on nslu2



Hi,

I have bought an nslu2 and two disks of 500GB for storing photo's and
backing up data. To be a bit more safe, I would like configure all the
partitions as RAID 1, this is the /, swap and /home. The latter two
were
no problem, but I have some difficulties to boot into the RAID 1 root
partition. To clarify the picture, here is some basic info about my
configuration as it is now:


root@sluggy ~> sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size= 13671252, Id=83, bootable
/dev/sda2 : start= 13671315, size=   257040, Id=82
/dev/sda3 : start= 13928355, size=962839710, Id=fd
/dev/sda4 : start=        0, size=        0, Id= 0


root@sluggy ~> sfdisk -d /dev/sdb
# partition table of /dev/sdb
unit: sectors

/dev/sdb1 : start=       63, size= 13671252, Id=fd, bootable
/dev/sdb2 : start= 13671315, size=   257040, Id=82
/dev/sdb3 : start= 13928355, size=962839710, Id=fd
/dev/sdb4 : start=        0, size=        0, Id= 0


root@sluggy ~> mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md3 on /home type ext3 (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)


root@sluggy ~> cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[0] sdb3[1]
      481419776 blocks [2/2] [UU]

md2 : active raid1 sda2[0] sdb2[1]
      128448 blocks [2/2] [UU]

md1 : active raid1 sdb1[1]
      6835520 blocks [2/1] [_U]

unused devices: <none>


root@sluggy ~> cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD
superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST sluggy

# instruct the monitoring daemon where to send mail alerts
MAILADDR Toon.Verstraelen@UGent.be

# definitions of existing MD arrays
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=d2add206:8375fe8d:
2893ac61:77bebcbf
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=624b3dcd:
0bfdfe30:2893ac61:77bebcbf
ARRAY /dev/md3 level=raid1 num-devices=2
UUID=5259d764:432260c9:2893ac61:77bebcbf

# This file was auto-generated on Sun, 01 Apr 2007 18:27:37 +0200
# by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $


root@sluggy ~> cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro
0       1
/dev/md2        none            swap    sw              0       0
/dev/md3        /home           ext3    defaults        0       1




As far as I know, I should only modify /dev/sda1 to /dev/md1 in the
fstab
file, and the run dpkg-reconfigure linux-image-2.6.18-4-ixp4xx.
Unfortunately, when I reboot, I can not login into sluggy and have to
use
upslug2 to put back the previous kernel and initramfs. I do not have a
serial port attached to sluggy, so I can not see what the kernel might
be
complaining about. Is there something obvious I am doing wrong? The
idea
is to complete the degraded /dev/md1 once booted successfully into the
new
root device. Any help is greatly appreciated.

best regards,

Toon



Reply to: