full of … these

FreeBSD RAID1 experience

Posted: February 25th, 2008 | Author: | Filed under: howto | Tags: , , , | No Comments »

A long time ago I had to install a new ftp server. I chose FreeBSD having in mind past experience with a crash of a squid proxy sever.

After the motherboard of the proxy server crashed, I moved the NIC (Intel based kernel, compiled with “options DEVICE_POLLING”) and the HDD to a new system). I was amazed that no other actions were required…

So, I have installed FreeBSD 5.5-STABLE and setup pure-ftpd. A few days ago I had to do a little bit of work at the hardware and setup a new RAID1 array for two of its disks.

Beacuse it is so simple, I just want point it out here:

Step 1 (“mark the master” disk):

# gmirror label -v -b round-robin gm0 /dev/ad0Metadata value stored on /dev/ad0

Step 2 (force load of gmirror module):

# echo geom_mirror_load="YES" >> /boot/loader.conf (please note the ">>")

Step 3 (modify /etc/fstab):

/dev/ad0s1a becomes /dev/mirror/gm0s1a

Step 4 (reboot):

# reboot

Step 5 (instert the second disk):

# gmirror insert gm0 /dev/ad1
Hit gmirror status to check if it’s ok…

Easy! Isn’t it?



Leave a Reply