On 6/2/2015 12:43 PM, Ana Emília M. Arruda wrote:
Hello Josh,

On Tue, Jun 2, 2015 at 8:12 AM, Josh Fisher <jfis...@pvct.com <mailto:jfis...@pvct.com>> wrote:


    On 6/1/2015 5:21 PM, Ana Emília M. Arruda wrote:
    Hello,

    Maybe you could use the "virtual autochanger" resource:

    This will not work as expected. If the ArchiveDevice in the two
    Device resources specifies different directories (mountpoints),
    then the two Device resources cannot have the same MediaType. This
    is because Bacula expects to be able to load any volume that has
    MediaType=File into any Device having that same MediaType, and a
    volume in
    ​ ​
    ​ ​
    /sdb1/bacula/backup cannot be loaded into
    ​ ​
    Device
    ​ ​
    vDrive-1, not can a volume in
    ​ ​
    ​ ​
    /bacula/backup be loaded into
    ​ ​
    vDrive-2.


No, volumes in ​
​
/sdb1/bacula/backup will not be loaded into
​
vDrive-1 and volumes in
​
/bacula/backup will not be loaded into
​
vDrive-2. I read about this in the white papers from blog.bacula.org <http://blog.bacula.org>. I decided to do some tests with this. Lots of people are working with virtual autochangers this way. When you submit concurrent jobs, the volumes are mounted into their respective devices. If a requested volume is in ​
​
​​
/sdb1/bacula/backup​ , it will be loaded into
​
vDrive-1 and if a requested volume is in
​
/bacula/backup, it will be loaded into
​​
vDrive-2. This works this way and gives no error. But I agree with you that the option using LVM is a lot better.

Yes. For a backup job using automatic labeling, it will indeed work. But that is misleading. Say on 1 June a full job ran using vDrive1 and wrote to volume full_1 in directory /bacula/backup. On 2 June an incremental job is run, only this time it was assigned vDrive2 and wrote to volume inc_1 in directory /sdb1/bacula/backup. Both of these jobs will run without error. However, now a restore is impossible, as is a subsequent Virtual Full job.


Best regards,
Ana

    To use multiple HDDs as a single autochanger, you must:

    Define each Device resource to have a unique MediaType, if using
    the native virtual autochanger

    or

Use vchanger, which is designed for using multiple removable HDDs (See http://sourceforge.net/projects/vchanger/)

    or

    Combine the HDD partitions using LVM2 or md so that there is only
    a single mountpoint

    .


    bacula-sd.conf:

    Autochanger {
    Name = VChanger
    Changer Device = /dev/null
    Changer Command = "" # versão 5.2.6. For 7.0.5 version, use /dev/null
    Device = vDrive-1, vDrive-2
    }

    Device {
    Name = vDrive-1
    Drive Index = 0
    Device Type = File
    Media Type = File
    Archive Device = /bacula/backup
    ...
    }
    Device {
    Name = vDrive-2
    Drive Index = 1
    Device Type = File
    Media Type = File
    Archive Device = /sdb1/bacula/backup # is this your mount point?
    ...
    }

    In your bacula-dir.conf (or wherever you have your storage
    definiton for director):

    Storage {
    Name = MyVirtualAutochanger
    Address = X.X.X.X
    SDPort = 9103
    Password = "xxxxxxxxxx"
    Device = VChanger
    Media Type = File
    Maximum Concurrent Jobs = XX
    Autochanger=yes
    }

    Best regards,
    Ana

    On Wed, May 20, 2015 at 1:32 PM, SPQR
    <bacula-fo...@backupcentral.com
    <mailto:bacula-fo...@backupcentral.com>> wrote:

        I would like to set up bacula - well, my first steps have
        been successful.

        All my backups are written to /bacula/backup. But / has only
        900GB. So I want bacula to write to /sdb1/bacula/backup, too.
        /sdb1 has another 950GB of space. The sum of available
        backup-space should be 1850GB HDD:

        Well, I got the following config of /etc/bacula/bacula-sd.conf:

        >
        > Storage {                             # definition of myself
        >   Name = backup-sd
        >   SDPort = 9103                  # Director's port
        >   WorkingDirectory = "/var/lib/bacula"
        >   Pid Directory = "/var/run/bacula"
        >   Maximum Concurrent Jobs = 20
        >   SDAddress = backup.example.com <http://backup.example.com>
        > }
        >
        > Director {
        >   Name = backup-dir
        >   Password = "doyoureallywanttoknow"
        > }
        > Device {
        >   Name = FileStorage
        >   Media Type = File
        >   Archive Device = /bacula/backup
        >   LabelMedia = yes;                   # lets Bacula label
        unlabeled media
        >   Random Access = Yes;
        >   AutomaticMount = yes;               # when device opened,
        read it
        >   RemovableMedia = no;
        >   AlwaysOpen = no;
        > }
        >

        Okay - now I would like to add another device. I guess I
        could just add a second entry like this:

        >
        > Device {
        >   Name = FileStorage
        >   Media Type = File
        >   Archive Device = /sdb1/bacula/backup
        >   LabelMedia = yes;                   # lets Bacula label
        unlabeled media
        >   Random Access = Yes;
        >   AutomaticMount = yes;               # when device opened,
        read it
        >   RemovableMedia = no;
        >   AlwaysOpen = no;
        > }
        >

        ?

        Do I have to change something else so that bacula is able to
        write more than 900GB - if the first 900GB are "full" it
        should switch to the second hdd.


        Thank you very much :-)

        +----------------------------------------------------------------------
        |This was sent by r...@ehrenwert.it <mailto:r...@ehrenwert.it>
        via Backup Central.
        |Forward SPAM to ab...@backupcentral.com
        <mailto:ab...@backupcentral.com>.
        +----------------------------------------------------------------------



        
------------------------------------------------------------------------------
        _______________________________________________
        Bacula-users mailing list
        Bacula-users@lists.sourceforge.net
        <mailto:Bacula-users@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/bacula-users




    
------------------------------------------------------------------------------


    _______________________________________________
    Bacula-users mailing list
    Bacula-users@lists.sourceforge.net  
<mailto:Bacula-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/bacula-users


    
------------------------------------------------------------------------------

    _______________________________________________
    Bacula-users mailing list
    Bacula-users@lists.sourceforge.net
    <mailto:Bacula-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/bacula-users




------------------------------------------------------------------------------


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to