Amanda-Users

Re: Using DRDB and disks for tapes.

2005-09-26 07:14:35
Subject: Re: Using DRDB and disks for tapes.
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Mon, 26 Sep 2005 07:09:16 -0400
On Monday 26 September 2005 05:46, Owen Williams wrote:
>Hello,
>   Its probably too wacky but has anyone tried setting up DRDB
>(http://www.drbd.org/) or similar combined with disks instead of tapes
>to create a simultaneous offsite backup?
>
>>>From the DRDB site: DRDB can be seen as 'Network RAID 1.'
>
>A colleague and I are thinking of getting two large RAID arrays
>keeping one in his machine room and one in mine in different
>buildings.  Then split them in two with DRDB running in pairs on the
>four partitions.
>
>Is there another device in Amanda to do the same thing?
>
Amanda has the FILE: type, which generates a directory tree on the
targetted storage device (I'm using a 200GB drive).  I see no reason
why, once amanda's nightly run is done, that an rsync based script
couldn't maintain an offsite mirror for you.  Hint, do not use the
link amanda leaves to point to the correct 'tape' to backup each
night.  This would cause a loss of identity in terms of using correct
off-site directory.  Instead, parse the output of an ls -l
/path/to/data to find it and restore its identity.

Here is an ls -l on mine:

[root@coyote git-repo]# ls -l /amandatapes/Dailys
total 104
lrwxrwxrwx  1 amanda disk    27 Sep 25 16:15 data ->
/amandatapes/Dailys//slot10
-rw-------  1 amanda disk    11 Sep 26 04:01 info
drwxr-x---  2 amanda disk  4096 Sep 17 02:50 slot1
drwxr-x---  2 amanda disk  4096 Sep 26 03:56 slot10
drwxr-x---  2 amanda disk  4096 Aug 29 03:39 slot11
drwxr-x---  2 amanda disk  4096 Aug 30 03:15 slot12
drwxr-x---  2 amanda disk  4096 Aug 31 02:13 slot13
drwxr-x---  2 amanda disk  4096 Sep  1 03:14 slot14
drwxr-x---  2 amanda disk  8192 Sep  2 03:44 slot15
drwxr-x---  2 amanda disk  4096 Sep  3 03:19 slot16
drwxr-x---  2 amanda disk 16384 Sep  4 02:21 slot17
drwxr-x---  2 amanda disk  4096 Sep  5 03:14 slot18
drwxr-x---  2 amanda disk  4096 Sep 14 00:50 slot19
drwxr-x---  2 amanda disk  4096 Sep 18 03:55 slot2
drwxr-x---  2 amanda disk  4096 Sep 15 04:08 slot20
drwxr-x---  2 amanda disk  4096 Sep 16 03:08 slot21
drwxr-x---  2 amanda disk  4096 Sep 19 04:20 slot3
drwxr-x---  2 amanda disk  4096 Sep 20 03:05 slot4
drwxr-x---  2 amanda disk  4096 Sep 21 02:32 slot5
drwxr-x---  2 amanda disk  4096 Sep 22 03:59 slot6
drwxr-x---  2 amanda disk  4096 Sep 23 04:25 slot7
drwxr-x---  2 amanda disk  4096 Sep 24 03:14 slot8
drwxr-x---  2 amanda disk  4096 Sep 25 02:27 slot9

So one would want to pass  "/amandatapes/Dailys/slot10" to rsync as
its $pathto argument in this instance. 

rsync won't be super efficient at this as it will find, on the second
and subsequent cycles, that the files are virtually all new each time
I think.  But its as efficient an answer as I can think of ATM.

Also, I don't think amanda will have any problems using the raid as a
FILE device as long as it has its own directory tree on the device. 
I also have /var mounted on that drive along with a gig of swap I've
never touched as there is a gig of ram in this box.
 
>Thanks,
>
>Owen.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.35% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.



<Prev in Thread] Current Thread [Next in Thread>