5
2
I have an existing Ubuntu 10.04 desktop system setup and running on a hard drive (drive A).
I'd like to add two more hard drives (drives B and C, same size) to the system and mount them as a RAID 1 array.
How do I do that?
I know how to create RAID arrays during the installation, but I don't want to reinstall my system, and I shouldn't have to since my system files will stay on their own drive separate from the RAID array.
I've physically added both drives to the system, and formatted them as EXT3 with gparted.
Ubuntu's disk utility has a "create raid" option, but it won't let me select any of my drives (it thinks they're all full).
I don't mind using mdadm, but I've found several guides that are old, and give conflicting advice. Some say I have to edit an /etc/raidtab file, some say this is done automatically.
What's the current (Ubuntu 10.04) preferred way of adding a RAID 1 to an existing system?
It should turn into a raid at boot, and mount itself in /home/myname/files/.
Extra Info:
/etc/mdadm.conf
DEVICE partitions
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=00.90 UUID=4fd3b193:c6c09dea:46ed9f91:db68f1c3
/etc/fstab
/dev/md0 /home/myname/files auto defaults 0 0
cat /proc/mdstat (after reboot)
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md_d0 : inactive sdb1[1](S)
1953511936 blocks
unused devices: <none>
I'm having the same problems. I have just edited the /etc/mdadm.conf as specified. Had to edit it manually, as I couldn't get the echos to work, even with sudo, permission denied. I got the file built this time, but I'm suspecting I'm still going to have problems. Why the chown, and who should the owner be? – None – 2011-02-01T07:53:57.617