Backups: rsync, software RAID, other strategies?

From: Bob Johnson (bob89_at_bobj.org)
Date: 03/07/04

  • Next message: Gary W. Swearingen: "Re: SIngle User Mode Help"
    To: questions@freebsd.org
    Date: Sun, 7 Mar 2004 01:52:55 -0500
    
    

    A bunch of related questions:

    I'm setting up a small mail and file server. The mail server part will
    be Courier, while the file server part will primarily be used via NFS
    and Samba to store backups of my desktop and laptop computers.

    The system has a pair of WD1600JB 160 GB ATA 100 drives in it, both on a
    single Promise PDC20268 UDMA100 controller, but each on a separate
    channel (i.e. both are masters with no slaves). My plan is to use one
    of the drives as a backup for the other. I want to use a backup method
    that creates a mirror of the working drive so that if it fails, I can
    simply mount the backup in place of the working drive, and get back in
    business. The operating system will (probably) not be on either of
    these drives, they will only host /home where mail and backup files
    will reside.

    I've tentatively decided to synchronize the mirror to the working drive
    with rsync run once a night (perhaps more often later). This risks
    losing up to a day of mail, but that's probably not the end of the
    world. The reasoning I used was that if I use software RAID, an
    unexpected power failure during a large write operation (yes, it will
    be on a UPS) could corrupt both drives. Running rsync once a night
    would reduce the risk of a failure that damaged both drives, since
    their write activity would not be so strongly correlated.

    Is my fear of losing both drives in a software RAID (mirrored drives)
    configuration a reasonable one? Or is that not going to happen?

    If I use rsync with -delete to maintain a mirror of the primary drive,
    what happens when the primary drive fails? Is there a scenario that
    causes rsync to duplicate all the missing data on the primary drive by
    deleting it from the mirror drive (I've heard of this happening to
    someone, but I believe he was using a homegrown perl script rather than
    rsync).

    Is Courier compatible with this scheme? Or does it care about inode
    numbers or some such thing that will make the backup copy useless?

    Is there any chance it would make sense to use the Coda file system for
    this?

    Do any of the answers change if the mail server ends up on a remote
    system, but I still want the maildirs backed up on the file server?

    Any other suggestions that don't involve buying new hardware? An IDE
    RAID controller would be nice, but buying one isn't on my list of
    things to do. But if I DID break down and buy a new controller card,
    what should it be?

    Thanks,

    - Bob
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Gary W. Swearingen: "Re: SIngle User Mode Help"

    Relevant Pages

    • Re: [SLE] Can anyone recommend a backup program/script for home user?
      ... I failed to mention that I want to backup my ... > Should I dd the disk first then use rsync or just rsync to begin with? ... 1)Set up the 2nd drive with the same partitions ... sync the screwup to your backup drives... ...
      (SuSE)
    • Re: Maxtor external hard drive no longer recognized by My Computer
      ... backup of my drive hourly to my file server, ... hardly a reason or budget for RAID. ... I got the SCSI RAID controller free with the drives ...
      (microsoft.public.windowsxp.hardware)
    • Re: (OT) Data Recovery Question
      ... > The idea is that the external HD is used only for backup. ... > that I'm using rsync so it is in effect almost a perfect mirror image ... this sound intriguing as I have recently upgraded a HD and OS and now ... this syncing up the drives sounds the way to go so I did a quick search ...
      (alt.sports.football.pro.ne-patriots)
    • Re: What is wrong with my backup plan?
      ... > have its own folder, and under that folder there would be a folder for ... Ideally you would add a 4th computer to do nothing but be a file server. ... DVD-RW drives so reasonable now, I would put one in this machine. ... run SecondCopy as a backup program on the server. ...
      (microsoft.public.windowsxp.general)
    • Re: Backups: rsync, software RAID, other strategies?
      ... I use the following configuration on my file server. ... typical rsync that will mirror the source to the ... You can also purge the backup by removing ... >of the drives as a backup for the other. ...
      (freebsd-questions)