Bacula-users

Re: [Bacula-users] Virtual Tape Emulation

2009-12-29 19:53:50
Subject: Re: [Bacula-users] Virtual Tape Emulation
From: Arno Lehmann <al AT its-lehmann DOT de>
To: Yuri Timofeev <tim4dev AT gmail DOT com>
Date: Wed, 30 Dec 2009 01:48:52 +0100
Hi,

29.12.2009 11:02, Yuri Timofeev wrote:
> Hi
> 
> You can send me your bacula-*.conf files and scripts to configure a
> virtual autochanger ?

Sure... also to the list, as I guess it might be interesting to 
others, too...

This is one of several disk-based virtual autochangers:

backup@gnom:~> cat /baculadata1/filestorage01/disk-changer.conf
maxslot=700
maxdrive=4

 From the SD conf:
Autochanger {
   Name = File01
   Device = File01a
   Device = File01b
   Device = File01c
   Device = File01d
   Device = File01e
   Changer Command = "/opt/bacula/etc/disk-changer %c %o %S %a %d"
   Changer Device = /baculadata1/filestorage01/disk-changer.conf
}

Device {
   Name = File01a # a to e
   Media Type = File01
   Device Type = File
   Random Access = Yes
   Archive Device = /baculadata1/filestorage01/drive0 # 0 to 4
   Drive Index = 0 # 0 to 4
   Label Media = Yes
   Autoselect = Yes # No for File01e / Drive 4
   Maximum Spool Size = 10G # spool sizes as needed.
   Maximum Job Spool Size = 10G #  Sounds nonsense for disk,
     # but I'm using slow external ones here...
   Spool Directory = /baculaspool
   Autochanger = Yes
}

 From the DIR conf:
Storage {
   Name = FileCh
   Address = gnom
   SDPort = 9103
   Password = "sure"
   Device = File01
   Media Type = File01
   Autochanger = Yes
   Maximum Concurrent Jobs = 8
}

Pool {
   Name = Whatever
   Pool Type = Backup
   Recycle = Yes
   Auto Prune = Yes
   Volume Retention = 3 months # as needed
   Storage = FileCh
   Maximum Volume Jobs = 1 # rather important IMO
   Maximum Volume Bytes = 3G # no. of volumes * this size
    # determined experimentally... 2.1 TB is *more* than the disks
    # capacity, but on average, I've got one volume half full per job
   Volume Use Duration = 6h
   Catalog Files = Yes
   Scratch Pool = DiskScr # This is a device-specific scratch pool
   Recycle Pool = DiskScr
   Next Pool = DLTLong # migration to tape
}

Status storage output snippets:
Autochanger "File01" with devices:
    "File01a" (/baculadata1/filestorage01/drive0)
    "File01b" (/baculadata1/filestorage01/drive1)
    "File01c" (/baculadata1/filestorage01/drive2)
    "File01d" (/baculadata1/filestorage01/drive3)
    "File01e" (/baculadata1/filestorage01/drive4)
...
Device "File01a" (/baculadata1/filestorage01/drive0) is not open.
     Slot 591 is loaded in drive 0.
Device "File01b" (/baculadata1/filestorage01/drive1) is not open.
     Slot 523 is loaded in drive 1.
Device "File01c" (/baculadata1/filestorage01/drive2) is not open.
     Slot 78 is loaded in drive 2.
Device "File01d" (/baculadata1/filestorage01/drive3) is not open.
     Slot 474 is loaded in drive 3.
Device "File01e" (/baculadata1/filestorage01/drive4) is not open.
     Drive 4 status unknown.


And I excluded disk volumes from query 15...

Does that help?

Arno

> 2009/12/18 Arno Lehmann <al AT its-lehmann DOT de>:
>> Hello,
>>
>> 17.12.2009 14:41, John Drescher wrote:
>>>> is there any sample config for using a virtual tape library storing
>>>> files on disk out there?
>>>>
>>> There is vchanger that I use at home.
>>>
>>> http://sourceforge.net/projects/vchanger/
>> With the hard disks constantly available, I'm having a stable setup
>> using the project-provided disk-changer script.
>>
>> Essentially, you define a virtual autochanger with a configured number
>> of slots and drives. You should limit the volume size Bacula generates
>> for those devices to ensure you don't run out of disk space.
>>
>> Current SD device status:
>>
>> Autochanger "File01" with devices:
>>    "File01a" (/baculadata1/filestorage01/drive0)
>>    "File01b" (/baculadata1/filestorage01/drive1)
>>    "File01c" (/baculadata1/filestorage01/drive2)
>>    "File01d" (/baculadata1/filestorage01/drive3)
>>    "File01e" (/baculadata1/filestorage01/drive4)
>> Autochanger "File03" with devices:
>>    "File03a" (/baculadata2/filestorage03/drive0)
>>    "File03b" (/baculadata2/filestorage03/drive1)
>>    "File03c" (/baculadata2/filestorage03/drive2)
>>    "File03d" (/baculadata2/filestorage03/drive3)
>>    "File03e" (/baculadata2/filestorage03/drive4)
>>
>> and
>>
>> Device "File01a" (/baculadata1/filestorage01/drive0) is not open.
>>     Slot 543 is loaded in drive 0.
>> Device "File01b" (/baculadata1/filestorage01/drive1) is not open.
>>     Slot 570 is loaded in drive 1.
>> Device "File01c" (/baculadata1/filestorage01/drive2) is not open.
>>     Slot 471 is loaded in drive 2.
>> Device "File01d" (/baculadata1/filestorage01/drive3) is not open.
>>     Slot 474 is loaded in drive 3.
>> Device "File01e" (/baculadata1/filestorage01/drive4) is not open.
>>     Drive 4 status unknown.
>> Device "File03a" (/baculadata2/filestorage03/drive0) is not open.
>>     Slot 363 is loaded in drive 0.
>> Device "File03b" (/baculadata2/filestorage03/drive1) is not open.
>>     Slot 290 is loaded in drive 1.
>> Device "File03c" (/baculadata2/filestorage03/drive2) is not open.
>>     Drive 2 status unknown.
>> Device "File03d" (/baculadata2/filestorage03/drive3) is not open.
>>     Drive 3 status unknown.
>> Device "File03e" (/baculadata2/filestorage03/drive4) is not open.
>>     Drive 4 status unknown.
>>
>> Lots of slots to manage, which makes using bconsole a bit hard, but
>> there's always BAT :-)
>>
>> Cheers,
>>
>> Arno
>>
>> --
>> Arno Lehmann
>> IT-Service Lehmann
>> Sandstr. 6, 49080 Osnabrück
>> www.its-lehmann.de
>>
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>> _______________________________________________
>> Bacula-users mailing list
>> Bacula-users AT lists.sourceforge DOT net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
> 
> 
> 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

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