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

Re: RAID 1 in nslu2 in installing system. The last.



En/na Martin Michlmayr ha escrit:
* Xan <dxpublica@telefonica.net> [2009-07-07 23:51]:
Mmm..... my main problem is really to change boot disk in the kernel from /dev/sda1 to /dev/md0.

How can do that in nlsu2?

Edit /etc/fstab and then run: update-initramfs -u
I edit my fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/md0       /               ext3    errors=remount-ro 0       1
/dev/md1       /chrut          ext3    defaults        0       2
/dev/md2       /var/log        ext3    defaults        0       2
/dev/sda2       none            swap    sw,pri=1              0       0
/dev/sdb2       none            swap    sw,pri=1              0       0

and update-initramfs -u shows me a warning:

# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.26-2-ixp4xx
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Flashing kernel: done.
Flashing initramfs: done.

I just want sure to know if I *have* to edit my mdadm.conf.
The cat /proc/mdstatus says:

cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sdb4[1]
     1204800 blocks [2/1] [_U]
md1 : active raid1 sdb3[1]
     3903680 blocks [2/1] [_U]
md0 : active raid1 sdb1[1]
     9767424 blocks [2/1] [_U]

because I configured the RAID with one missing device (mdadm --create /dev/mdX --level=1 --raid-disks=2 missing /dev/sdbY).

** I have to put the configuration in mdadm.conf ? **

Waiting your response I don't reboot for now.


Reply to: