Note: This isn't a technical tutorial, but more of a guide. I assume you have a fairly good understanding of *NIX, and like to tinker with your systems. If you absolutely want my help I can be reached for more details. This is for hardware you have access to. The title mentions a seedbox, but I'm talking about my home seedbox. Continue...
I knew I had to buy some big disks soon, and I was looking for a solution to data loss. I considered a RAID mirror, but I decided on an old school approach. What it basically boils down to is you have to give up a real time mirror (RAID 1) and settle on a scheduled backup. What you get in return is better control and flexibility over the backup process. I may be goofy, but I've often found myself in a position where I just deleted something, and immediately realized I shouldn't have. I like the idea of having a day or so of buffer time to revert changes. Of course, this means that a days worth of changes are always at risk, but when we're talking about large non-changing media files, the risk is low. Also, there's more flexibility in non-RAID arrays. I don't have to drive match, and I can just replace a failed drive with whatever is most economical at the time. If you're liking were I'm going with this, I'm going to describe my set up, which I'm pretty happy with.
- First, keep the OS and APPs away from the data. I have a lone separate disk for the OS.
- Acquire some hard disks. Best to buy in pairs and as large as you can get them. Also, you can get yourself a very cheap controller card. You don't need RAID ability, so that will save you some money. I just bought a Promise SATA TX4, very cheap and it'll do everything I need.
- Next, use LVM to create two volume groups. One labeled "primary" and the other labeled "backup". Of course, you put one of each disk on each of the volume groups. Note, use the whole disk for each volume group, and use the whole volume group for each logical volume. IMO, there's no point in breaking the disks up into separate partitions, or making your logical volumes smaller than the full size of the volume group. Of course, if you know what you need, use your own discretion.
- Once you've built up your logical volumes, create two mount points for them. Something like "/mnt/primary" and "/mnt/backup". Make appropriate changes to fstab, and get them mounted.
- Now use primary for all your data needs, and schedule a copy operation to backup your primary volume to your backup volume. Edit: I just wanted to make a note that rsync works amazing for doing the backup copy operation.
- If primary fails? Just mount your backup volume to your primary mount point, and your system shouldn't be able to tell the difference, while you fix your primary volume. If a disk fails, just replace it with whatever makes sense.
- If you're running low on space? Just go out and buy another pair of drives, add them to each volume group, and extend the logical volumes.
This setup suits me better than a RAID mirror. I thought I'd offer this up as an option to anyone who might be thinking of setting up a mirror.









LinkBack URL
About LinkBacks

Reply With Quote





