All of lore.kernel.org
 help / color / mirror / Atom feed
* raid1 with rotating offsite disks for backup
@ 2011-02-07 23:53 Jeff Klingner
  2011-02-08  0:17 ` NeilBrown
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jeff Klingner @ 2011-02-07 23:53 UTC (permalink / raw)
  To: linux-raid

I'm planning a backup system for my home server and have run into a question I can't find answered in the mailing list archives or the wiki.  Here's the plan:

1. Install system and valuable data on a 3-disk raid1 array (call the disks A, B, and C).
2. Remove disk C, put it offsite.  ("offsite" is moderately time-consuming to get to.)
3a. Periodically, remove disk B, take it offsite, and retrieve disk C
3b. Insert disk C, which will be re-synced to gain any changes made since it was removed.
4. Repeat steps 3a and 3b indefinitely, alternating the roles of disks B and C.

Thus I hope to get continuous protection against a single drive failure and protection back to the last offsite swap for corrupted or deleted data.

My questions are:

In step 3b, when a disk that was a member of the array in the past but has been removed for a while is re-inserted into the 3-disk array, how does the raid system know to update C with A's contents and not A with C's contents?  Is there a timestamp involved, and if so, how can I examine it before syncing?

Is it important to always rotate disks B and C, leaving one that never leaves the computer, or does it make no difference which of the two live disks I pluck out to swap with the offsite disk when I make the trip?  Can all three disks take turns offsite, so that they all have the same duty cycle?

I saw in another list message the advice to use two stacked raid1s for this application: http://marc.info/?l=linux-raid&m=126761399008775&w=2
> Also, if you want two rotating backups I would create two stacked raid1s.
> 
> mdadm -C /dev/md0 -l1 -n2 -b internal  /dev/main-device /dev/first-backup
> mdadm -C /dev/md1 -l1 -n2 -b internal /dev/md0 /dev/second-backup
> mkfs -j /dev/md1


Are there important differences between the single 3-disk raid1 array I'm planning to use and this stacked configuration?

Thanks for any help you can offer.

Jeff



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-02-10  8:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 23:53 raid1 with rotating offsite disks for backup Jeff Klingner
2011-02-08  0:17 ` NeilBrown
2011-02-08  1:03   ` Jeff Klingner
2011-02-08  1:19     ` NeilBrown
2011-02-08  1:32       ` Jeff Klingner
2011-02-08  2:02         ` NeilBrown
2011-02-08  4:53   ` Leslie Rhorer
2011-02-08  5:37     ` Roberto Spadim
2011-02-08  6:07       ` NeilBrown
2011-02-08  6:12         ` Roberto Spadim
2011-02-08  3:04 ` Martin Cracauer
2011-02-08  3:40   ` Roberto Spadim
2011-02-09 19:37 ` hansbkk
2011-02-09 19:53   ` Roberto Spadim
2011-02-10  8:43     ` John Robinson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.