cdimage root # mknod /dev/md0 b 9 0 cdimage root # mknod /dev/md1 b 9 1 cdimage root # mknod /dev/md2 b 9 2 |
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 16
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1
|
cdimage root # mkdraid --really-force /dev/md0 cdimage root # mkdraid --really-force /dev/md1 cdimage root # mkdraid --really-force /dev/md2 |
cdimage root # watch cat /proc/mdstat |
cdimage root # cdimage root # mkdir -p /mnt/debian cdimage root # mount -t ext3 /dev/md0 /mnt/debian cdimage root # cp /etc/raidtab /mnt/debian/etc cdimage root # chroot /mnt/debian cdimage:/# mount -t ext3 /dev/sda1 /boot cdimage:/# mount -t ext3 /dev/sda4 /var cdimage:/# mount -t proc proc /proc |
# /etc/fstab: static file system information. # # |
cdimage:/# mkinitrd -r /dev/md1 -o /boot/initrd.img-2.4.22-1-386 /lib/modules/2.4.22-1-386/ |
boot=/dev/md0 root=/dev/md1 raid-extra-boot=mbr-only install=/boot/boot.b map=/boot/map image=/vmlinuz label=Linux initrd=/initrd.img |
cdimage:/# unmount /boot cdimage:/# unmount /var cdimage:/# unmount /proc cdimage root # unmount /mnt/debian |
cdimage:/# e2fsck -f /dev/md0 cdimage:/# e2fsck -f /dev/md1 cdimage:/# e2fsck -f /dev/md2 cdimage:/# resize2fs /dev/md0 cdimage:/# resize2fs /dev/md1 cdimage:/# resize2fs /dev/md2 |
cdimage:/# raidstop /dev/md0 cdimage:/# raidstop /dev/md1 cdimage:/# raidstop /dev/md2 cdimage:/# reboot |
debian:~# raidstop /dev/md0 debian:~# raidstop /dev/md2 debian:~# mkraid -R /dev/md0 debian:~# mkraid -R /dev/md2 debian:~# mount -t ext3 /dev/md0 /boot debian:~# mount -t ext3 /dev/md2 /var |