Brent Dax (brentdax) wrote,
Brent Dax

D'oh, forgot a title.

Apparently brian wants me to write the article just on List::Part.  Which is alright, though I'm not sure there's enough material for a full article.

The other thing I did yesterday was set up RAID on the server.  For those who haven't had it beaten into their skulls yet, RAID is a way of combining multiple disks into a whole that's faster and more reliable than the sum of its parts.  I'm using RAID-5, which uses "striping" (data is alternated between disks) and "parity" (backup data is stored in such a way that a disk can go bad without losing any data).

To review, Navi has these drives:
hda (60GB)hde (10GB)hdg (10GB)
/boot (32MB), root (1GB), swap (1GB?)
/usr (13GB)
/var (13GB)
/home (13GB)
/tmp (2.5GB)
Empty (5GB)
md0 part one (5GB)md0 part two (5GB)md0 part three (5GB)
md1 part one (5GB)md1 part two (5GB)md1 part three (5GB)
A third of the space on md0 and md1 are used by parity data, so each of them is about 10GB.

Each of md0 and md1 contains one big folder that needs to be kept safe, and one smaller one that does as well.  md0 contains /var/www (all web files, including Filespace) and /var/svn (Subversion version-control files).  md1 contains /var/lib/mysql (MySQL databases) and /var/qmail/queue (the Qmail incoming mail queue, which can't really be backed up because it changes constantly).  Because there are two folders in each md (multi-disk) volume, I can't just mount them directly into the folders; instead, I do this:
/dev/md0        /mnt/md0          ext3  defaults  1 2
/dev/md1        /mnt/md1          ext3  noatime   1 2

/mnt/md0/www    /var/www          none  bind      0 0
/mnt/md0/svn    /var/svn          none  bind      0 0
/mnt/md1/mysql  /var/lib/mysql    none  bind      0 0
/mnt/md1/queue  /var/qmail/queue  none  bind      0 0
This bit of chicanery in my /etc/fstab says "mount md0 and md1 onto /mnt/md0 and /mnt/md1, then bind-mount their subdirectories into place".  Which is interesting, to say the least, but it works quite well.

  • Paging madlori (and anyone who knows her)

    An interesting thing just happened on Facebook chat. Lori Summers [2:29:44] Got my message ? Brent Royal-Gordon [2:33:45] I did. Lori Summers…

  • guest post

    kate is the best better than the rest the best the best haikus about kate: kate's my favourite i want to lick her ballsack it would taste so…

  • Practice

    This December, I will have been practicing programming seriously for ten years. That will mark the tenth anniversary of me starting to learn Perl. I…

  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.