This one was easy to get going
# apt-get install mdadm
the questions are pointless - how the hell should I know the answers already !
# fdisk /dev/hdc
delete all the partitions
# fdisk /dev/hdd
delete all the paritions
# mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/hdc /dev/hdd
All went well
# mkfs -t ext3 /dev/md0
# mkdir /raid
# mount -t ext3 /dev/md0 /raid
I rebooted and I think things were auto mounted but now I need to check.
/etc/mdadm/mdadm.conf has a bit for array definitions and I have none in it.
# mdadm --examine --scan >> /etc/mdadm/mdadm.conf
# ed /etc/mdadm/mdadm.conf
/DEVICE
s/DEVICE partitions/DEVICE \/dev\/hdc \/dev\/hdd
w
q
# echo '/dev/md0 /raid ext3 defaults,errors=remount-ro 0 1' >> /etc/fstab
I'm not sure about the errors=remount stuff I just copied the entry for /
# reboot
and reap the goodness
great, now to examine raid levels and stuff, and even perhaps booting from the raid
ok, copy the files
# find . -xdev | cpio -pm /raid
bah I crashed beryl pissing about
do it again, this time with feeling (and a coffee)
ok done
http://www.economysizegeek.com/2006/07/15/migrate-raid1-to-raid5-and-grow/
Record of some of the computer tech I deal with so that it's documented at least somewhere.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment