A memo to myself regarding RAID setup.
Dec. 6th, 2010 04:31 pmThree and a half years ago, I needed to convert a working Linux server from a single valid HDD to running a software RAID-1 mirror. It took several hours of research, several hours of work, four reboots, a near heart attack, and inspired heavy drinking.
Today, I needed to convert a Windows server from a single HDD to running a software-controlled RAID-1. Same hardware - literally, the EXACT same hardware, because this is coincidentally the exact same server machine, having been sold twice, wiped, and then returned to me by a different client for setup. No, really.
The procedure was:
1) Start Disk Management
2) Delete all partitions on the to-become-the-mirror disk, leaving it "unallocated".
3) Right-click on partition #1 of the to-be-mirrored disk, click "create mirror", click the second disk, click OK.
4) Right-click on partition #2 of the to-be-mirrored disk, click "create mirror", click the second disk, click OK.
5) Do something else while the little progress meter runs as the drives sync.
Poof!
There is an important message in this, somewhere.
Today, I needed to convert a Windows server from a single HDD to running a software-controlled RAID-1. Same hardware - literally, the EXACT same hardware, because this is coincidentally the exact same server machine, having been sold twice, wiped, and then returned to me by a different client for setup. No, really.
The procedure was:
1) Start Disk Management
2) Delete all partitions on the to-become-the-mirror disk, leaving it "unallocated".
3) Right-click on partition #1 of the to-be-mirrored disk, click "create mirror", click the second disk, click OK.
4) Right-click on partition #2 of the to-be-mirrored disk, click "create mirror", click the second disk, click OK.
5) Do something else while the little progress meter runs as the drives sync.
Poof!
There is an important message in this, somewhere.
(no subject)
Date: 2010-12-06 09:50 pm (UTC)(no subject)
Date: 2010-12-06 09:57 pm (UTC)(Ubuntu 10.04 does not APPEAR to handle being migrated from a single disk to an md mirror of two of that same disk any more gracefully than 6.06 did.)
Not just RAID but everything on Linux
Date: 2010-12-06 10:20 pm (UTC)Re: Not just RAID but everything on Linux
Date: 2010-12-06 11:23 pm (UTC)Re: Not just RAID but everything on Linux
Date: 2010-12-07 01:46 am (UTC)I've been running software RAID on Linux for many years now on my server. If anything goes wrong, I'm forced to drag out the Software RAID HOWTO and figure out what I need to do. A properly crafted GUI wrapping the mdadm tool would alleviate the need for that.
Re: Not just RAID but everything on Linux
Date: 2010-12-07 12:51 am (UTC)[1]: Notably, last time this was my mistake. This time it was not my mistake.
(no subject)
Date: 2010-12-06 10:34 pm (UTC)(no subject)
Date: 2010-12-06 10:35 pm (UTC)(no subject)
Date: 2010-12-06 11:02 pm (UTC)On the other hand, I'm annoyed at Windows software raid because they restrict it to the more expensive versions, so I can't use it on my gaming PC.
(no subject)
Date: 2010-12-07 12:48 am (UTC)Also: Really, converting from hda +hdc to md was one command per partition, no reboot required? That's a NEAT-ass trick - how's it do it? I've got a CentOS 5.4 machine I was planning to re-install rather than bother with this since the machine has nothing important on it, but I'd love to try it live.
(no subject)
Date: 2010-12-07 01:34 am (UTC)I'm not sure if I used this exact doc, but it looks familiar: http://tldp.org/HOWTO/Software-RAID-HOWTO-7.html#ss7.6
(no subject)
Date: 2010-12-07 01:51 am (UTC)(no subject)
Date: 2010-12-06 11:29 pm (UTC)(no subject)
Date: 2010-12-07 12:19 am (UTC)(no subject)
Date: 2010-12-07 12:52 am (UTC)(no subject)
Date: 2010-12-07 04:16 am (UTC)(no subject)
Date: 2010-12-07 04:18 am (UTC)(no subject)
Date: 2010-12-07 05:00 am (UTC)(no subject)
Date: 2010-12-07 05:03 am (UTC)(no subject)
Date: 2010-12-07 05:11 am (UTC)However, I will say that it was remarkably painless when compared to setting up a hardware RAID in 2003... that required a special kernel hack and even then it did not work properly despite the assurances of the hardware seller that yes, yes, it is totally compatible with Red Hat 8.0. :/
(no subject)
Date: 2010-12-07 05:18 am (UTC)(no subject)
Date: 2010-12-07 06:07 am (UTC)(no subject)
Date: 2010-12-07 07:14 am (UTC)