Re: [Bacula-users] TLS Config Problem (FD did not advertise required TLS support.)

2016-05-27 Thread Ana Emília M . Arruda
Hello Javier,

Did you solve this?

ssl=0 means that no TLS connection is being used. Since TLS Require = no
for both director and storage daemon, it seems that they are unable to
establish one and then are communicating with no encryption.

You can always run tests to verify your certificates:

open a server-side ssl connection to listen to 9102:

openssl s_server -accept 9102 -key betelgeuse.canonigos.es-daemon.key -cert
betelgeuse.canonigos.es.crt -CApath /usr/local/etc/ssl/ Verify 0

try to connect from a client:

openssl s_client -connect betelgeuse.canonigos.es:9102 -key
director.example.com.key -cert director.example.com.crt -CApath /
usr/local/etc/ssl/

Regards,

Ana

On Tue, May 17, 2016 at 12:43 PM, Francisco Javier Funes Nieto <
esen...@gmail.com> wrote:

> Hi all,
>
> The first time I'm trying to configure the TLS part of my (new) server
> under FreeBSD. (10.2/7.4 from ports)
>
> Communication sd <-> dir seems ok with debugging activated. I don't know
> if "ssl=0" means not using TLS.
>
> More info:
>
> betelgeuse.canonigos.es-dir: ua_status.c:183-0 item=1
> betelgeuse.canonigos.es-dir: job.c:1744-0 wstore=LocalChgr where=unknown
> source
> Automatically selected Storage: LocalChgr
> Connecting to Storage daemon LocalChgr at betelgeuse.canonigos.es:9103
> betelgeuse.canonigos.es-dir: bsock.c:305-0 OK connected to server  Storage
> daemon betelgeuse.canonigos.es:9103.
> betelgeuse.canonigos.es-dir: cram-md5.c:147-0 sending resp to challenge:
> J6c+pxk+t+/KDXl0B4IjVC
> betelgeuse.canonigos.es-dir: cram-md5.c:71-0 send: auth cram-md5 challenge
> <2125264182.1463481...@betelgeuse.canonigos.es-dir> ssl=0
> betelgeuse.canonigos.es-dir: cram-md5.c:90-0 Authenticate OK
> b++7uF+e3/JMCxZcv+/51C
> betelgeuse.canonigos.es-dir: ua_status.c:382-0 Connected to storage daemon
>
> betelgeuse.canonigos.es-sd Version: 7.4.0 (16 January 2016)
> amd64-portbld-freebsd10.2 freebsd 10.2-RELEASE-p9
>
>
> But with the FD I get this error:
>
> Select Client (File daemon) resource (1-8): 8
> Connecting to Client betelgeuse.canonigos.es-fd at
> betelgeuse.canonigos.es:9102
> betelgeuse.canonigos.es-dir: bsock.c:305-0 OK connected to server  Client:
> betelgeuse.canonigos.es-fd betelgeuse.canonigos.es:9102.
> betelgeuse.canonigos.es-dir: fd_cmds.c:110-0 Opened connection with File
> daemon
> betelgeuse.canonigos.es-dir: authenticate.c:202-0 Sent: Hello Director
> betelgeuse.canonigos.es-dir calling 102
> betelgeuse.canonigos.es-dir: cram-md5.c:147-0 sending resp to challenge:
> 0i+14m/EA9/jvH4HAG/3BA
> betelgeuse.canonigos.es-dir: cram-md5.c:71-0 send: auth cram-md5 challenge
> <2099914463.1463480...@betelgeuse.canonigos.es-dir> ssl=2
> betelgeuse.canonigos.es-dir: cram-md5.c:90-0 Authenticate OK
> Y8+3N1t0t3+0VhI93F9vvB
> betelgeuse.canonigos.es-dir: fd_cmds.c:117-0 Authentication error with FD.
> Failed to connect to Client betelgeuse.canonigos.es-fd.
> 
> You have messages.
> *m
> 17-May 12:17 betelgeuse.canonigos.es-dir JobId 0: Fatal error:
> Authorization problem: FD "Client: betelgeuse.canonigos.es-fd:
> betelgeuse.canonigos.es" did not advertise required TLS support.
>
>
> The Config:
>
> dir.conf >>
>
>
> Director {
>   Name = betelgeuse.canonigos.es-dir
>   DIRport = 9101
>   QueryFile = "/usr/local/share/bacula/query.sql"
>   WorkingDirectory = "/var/db/bacula"
>   PidDirectory = "/var/run"
>   Maximum Concurrent Jobs = 20
>   Password = "XX" # Console password
>   Messages = Daemon
>   # configuracion relativa a TLS
>   TLS Require   = no
>   TLS Enable= yes
>   TLS Verify Peer   = yes
>   TLS CA Certificate File   = /usr/local/etc/ssl/cacert.pem
>   TLS Certificate   =
> /usr/local/etc/ssl/betelgeuse.canonigos.es.crt
>   TLS Key   =
> /usr/local/etc/ssl/betelgeuse.canonigos.es-daemon.key
> }
>
> # Client (File Services) to backup
> Client {
>   Name = betelgeuse.canonigos.es-fd
>   Address = betelgeuse.canonigos.es
>   FDPort = 9102
>   Catalog = MyCatalog
>   Password = "XX"
>   File Retention = 60 days# 60 days
>   Job Retention = 6 months# six months
>   AutoPrune = yes # Prune expired Jobs/Files
>   # configuracion relativa a LTS
>   TLS Require = yes
>   TLS Enable  = yes
>   TLS CA Certificate File = /usr/local/etc/ssl/cacert.pem
>   TLS Certificate =
> /usr/local/etc/ssl/betelgeuse.canonigos.es.crt
>   TLS Key =
> /usr/local/etc/ssl/betelgeuse.canonigos.es-daemon.key
> }
>
>
> fd.conf >>
>
> FileDaemon {  # this is me
>   Name = betelgeuse.canonigos.es-fd
>   FDport = 9102  # where we listen for the director
>   WorkingDirectory = /var/db/bacula
>   Pid Directory = /var/run
>   Maximum Concurrent Jobs = 20
> # Plugin Directory = /usr/local/lib
>   # configuracion relativa a TLS
>   TLS Require   = yes
>   TLS Enable= yes
>  

Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

2016-05-27 Thread Ana Emília M . Arruda
Hi,

You're welcome. Could you please send us some log output (mainly the parts
telling that the volume is being marked Full and changing to another one in
the same pool)? Maybe this could help us to understand better this issue.

Best regards,
Ana

On Fri, May 27, 2016 at 3:19 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS
INC]  wrote:

> Ana,
>
>
>
> *No*, I don’t have “Maximum Volume Bytes” configured in the Pool resource.
>
>
>
> Thank you.
>
>
>
>
>
> *From:* Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com]
> *Sent:* Friday, May 27, 2016 5:03 AM
> *To:* Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
> *Cc:* bacula-users@lists.sourceforge.net
>
> *Subject:* Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0
>
>
>
> Hello,
>
>
>
> Have you checked if you do not have a Maximum Volume Bytes configured in
> your Pool resource?
>
>
>
> Best regards,
>
> Ana
>
>
>
> On Thu, May 26, 2016 at 10:05 PM, Kern Sibbald  wrote:
>
> I recommend to remove the Maximum Network Buffer Size.  Bacula will figure
> it out itself.
>
>
>
> On 05/26/2016 08:43 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
> wrote:
>
> Kern,
>
>
>
> Okay, Thank you. I will try setting the block size to 512k to improve the
> speed of writing to the tape. What about the “Maximum Network Buffer Size
> = 65536*” *I have currently set in my configuration? Should I remove this
> or change the value I have set? Please let me know.
>
>
>
> Regards,
>
> Uthra
>
>
>
> *From:* Kern Sibbald [mailto:k...@sibbald.com ]
> *Sent:* Thursday, May 26, 2016 2:35 PM
> *To:* Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC];
> bacula-users@lists.sourceforge.net
> *Subject:* Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0
>
>
>
> The defaults for both of those should work out of the box.  However, by
> increasing the Maximum Block Size, you can probably improve the speed of
> writing to the tape.  This is, of course, optional.  I would still not set
> the block size any larger than 512K though.
>
> Best regards,
> Kern
>
> On 05/26/2016 08:16 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
> wrote:
>
> Thank you all for taking the time to reply to my email.
>
>
>
> We are using LTO-7 tapes with the LTO-7 Tape drives. I don’t think the
> data transfer rate is an issue in our case. I am thinking of removing the “
> *MaxBlocksize*” and “*Maximum Network Buffer Size” *I have currently set
> for the tape drives so that it will use the defaults. I will then run a
> test backup to see if this helps.
>
>
>
> Regards,
>
> Uthra
>
>
>
>
>
> *From:* Kern Sibbald [mailto:k...@sibbald.com ]
> *Sent:* Thursday, May 26, 2016 7:56 AM
> *To:* Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC];
> bacula-users@lists.sourceforge.net
> *Subject:* Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0
>
>
>
> Hello,
>
>
> The tape probably got an error.  You should be able to see if there were
> problems by looking at dmesg output and Bacula output for the job that
> marked the tape full.
>
> The error, if there was one, is very likely coming from the fact that you
> set the block size too big.  I believe that anything more than 512K will
> probably not improve performance much but it will increase significantly
> the chances of a write error.
>
> Try running some tests with 512K max block size and see if the tape fills
> up correctly.
>
> Best regards,
> Kern
>
>
>
> On 25/05/2016 20:04, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC] wrote:
>
> I have a Qualstar Tapeell library (RLS-87120) with three LTO7 tape
> drives.  It is connected to the backup server directly through Fiber
> Channel. I am  running bacula 7.4.  I ran a test backup which completed
> successfully but I found that the LTO-7 Tape was not used up to its full
> capacity of 6TB. It wrote 2.6TB and marked the tape “FULL” then moved on to
> the next tape in the pool. I expected the backup to write 6TB to the tape
> before marking it “FULL”? Here is the information from my bacula-sd.conf:
>
>
>
>   *Maximum File Size = 50G*
>
> *  Maximum Network Buffer Size = 65536*
>
> * Maximum Block Size = 2097152*
>
>
>
> The MaxBlock: 8388608 is seen in the tapeinfo command on the tape drive0:
>
>
>
># tapeinfo -f /dev/tapedr0
>
> Product Type: Tape Drive
>
> Vendor ID: 'IBM '
>
> Product ID: 'ULTRIUM-HH7 '
>
> Revision: 'FA11'
>
> Attached Changer API: No
>
> SerialNumber: '10WT004131'
>
> MinBlock: 1
>
> *MaxBlock: 8388608*
>
> SCSI ID: 0
>
> SCSI LUN: 0
>
> Ready: yes
>
> BufferedMode: yes
>
> Medium Type: 0x78
>
> Density Code: 0x5c
>
> BlockSize: 0
>
> DataCompEnabled: yes
>
> DataCompCapable: yes
>
> DataDeCompEnabled: yes
>
> CompType: 0xff
>
> DeCompType: 0xff
>
> BOP: yes
>
> Block Position: 0
>
> Partition 0 Remaining Kbytes: -1
>
> Partition 0 Size in Kbytes: -1
>
> ActivePartition: 0
>
> EarlyWarningSize: 0
>
> NumPartitions: 0
>
> MaxPartitions: 3
>
>
>
> I am not sure if the issue I am seeing with the tape not being used to its
> full capacity is due to the “Max Block size” I have set

Re: [Bacula-users] Bacula - Sqlite to Mysql

2016-05-27 Thread Randy Katz
you can copy your config files to another directory, typically a
reconfigure will not remove config files.

as for mysql you should find all the pertinent db creation scripts in
/etc/bacula. The part that pertains to

the database is usually in bacula-dir.conf and looks something like this:


Catalog {
  Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =
  dbname = "bacula"; dbuser = "bacula"; dbpassword = "p24b2p"
}

So if you created a mysql database called bacula, gave the bacula mysql
user access to it with a

password of p24b2p and used the above instead of what is in there and
then ran the create database command

create_bacula_database that should get you on your way.


On 5/27/2016 2:55 AM, Emporio wrote:
> Hello,
>
> could somebody please help me with reinstall Bacula from SQLlite to MYSQL. I 
> think my biggest problem is that i dont have installed Bacula with MySQL 
> support. I am afraid to use dpkq reconfigure because it maybe could delete my 
> config files. 
>
> Is it true?
>
> +--
> |This was sent by nikodim.domi...@gmail.com via Backup Central.
> |Forward SPAM to ab...@backupcentral.com.
> +--
>
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are 
> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using capacity 
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula - Sqlite to Mysql

2016-05-27 Thread Emporio
Hello,

could somebody please help me with reinstall Bacula from SQLlite to MYSQL. I 
think my biggest problem is that i dont have installed Bacula with MySQL 
support. I am afraid to use dpkq reconfigure because it maybe could delete my 
config files. 

Is it true?

+--
|This was sent by nikodim.domi...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

2016-05-27 Thread Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
Ana,

No, I don’t have “Maximum Volume Bytes” configured in the Pool resource.

Thank you.


From: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com]
Sent: Friday, May 27, 2016 5:03 AM
To: Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

Hello,

Have you checked if you do not have a Maximum Volume Bytes configured in your 
Pool resource?

Best regards,
Ana

On Thu, May 26, 2016 at 10:05 PM, Kern Sibbald 
mailto:k...@sibbald.com>> wrote:
I recommend to remove the Maximum Network Buffer Size.  Bacula will figure it 
out itself.


On 05/26/2016 08:43 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC] wrote:
Kern,

Okay, Thank you. I will try setting the block size to 512k to improve the speed 
of writing to the tape. What about the “Maximum Network Buffer Size = 65536” I 
have currently set in my configuration? Should I remove this or change the 
value I have set? Please let me know.

Regards,
Uthra

From: Kern Sibbald [mailto:k...@sibbald.com]
Sent: Thursday, May 26, 2016 2:35 PM
To: Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]; 
bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

The defaults for both of those should work out of the box.  However, by 
increasing the Maximum Block Size, you can probably improve the speed of 
writing to the tape.  This is, of course, optional.  I would still not set the 
block size any larger than 512K though.

Best regards,
Kern

On 05/26/2016 08:16 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC] wrote:
Thank you all for taking the time to reply to my email.

We are using LTO-7 tapes with the LTO-7 Tape drives. I don’t think the data 
transfer rate is an issue in our case. I am thinking of removing the 
“MaxBlocksize” and “Maximum Network Buffer Size” I have currently set for the 
tape drives so that it will use the defaults. I will then run a test backup to 
see if this helps.

Regards,
Uthra


From: Kern Sibbald [mailto:k...@sibbald.com]
Sent: Thursday, May 26, 2016 7:56 AM
To: Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]; 
bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

Hello,

The tape probably got an error.  You should be able to see if there were 
problems by looking at dmesg output and Bacula output for the job that marked 
the tape full.

The error, if there was one, is very likely coming from the fact that you set 
the block size too big.  I believe that anything more than 512K will probably 
not improve performance much but it will increase significantly the chances of 
a write error.

Try running some tests with 512K max block size and see if the tape fills up 
correctly.

Best regards,
Kern



On 25/05/2016 20:04, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC] wrote:
I have a Qualstar Tapeell library (RLS-87120) with three LTO7 tape drives.  It 
is connected to the backup server directly through Fiber Channel. I am  running 
bacula 7.4.  I ran a test backup which completed successfully but I found that 
the LTO-7 Tape was not used up to its full capacity of 6TB. It wrote 2.6TB and 
marked the tape “FULL” then moved on to the next tape in the pool. I expected 
the backup to write 6TB to the tape before marking it “FULL”? Here is the 
information from my bacula-sd.conf:

  Maximum File Size = 50G
  Maximum Network Buffer Size = 65536
 Maximum Block Size = 2097152

The MaxBlock: 8388608 is seen in the tapeinfo command on the tape drive0:

   # tapeinfo -f /dev/tapedr0
Product Type: Tape Drive
Vendor ID: 'IBM '
Product ID: 'ULTRIUM-HH7 '
Revision: 'FA11'
Attached Changer API: No
SerialNumber: '10WT004131'
MinBlock: 1
MaxBlock: 8388608
SCSI ID: 0
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: 0x78
Density Code: 0x5c
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0xff
DeCompType: 0xff
BOP: yes
Block Position: 0
Partition 0 Remaining Kbytes: -1
Partition 0 Size in Kbytes: -1
ActivePartition: 0
EarlyWarningSize: 0
NumPartitions: 0
MaxPartitions: 3

I am not sure if the issue I am seeing with the tape not being used to its full 
capacity is due to the “Max Block size” I have set? What is the recommended 
setting for LTO-7? If anybody could share your knowledge about this I would 
really appreciate it. I did some search on the internet and could not find any 
useful information.

Thank you




--

Mobile security can be enabling, not merely restricting. Employees who

bring their own devices (BYOD) to work are irked by the imposition of MDM

restrictions. Mobile Device Manager Plus allows you to control only the

apps on BYO-devices by containerizing them, leaving personal data untouched!

https://ad.doubleclick.net/ddm/clk/304595813;131938

Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

2016-05-27 Thread Alan Brown

To rule out a bad tape:

Before removing  the tape from the drive use smartctl -A /dev/sg(generic
of drive) to count the corrected errors

You can do this whilst the tape is being written to. If the numbers are
increasing rapidly, either the tape or the drive is dirty.

If it keeps occuring on other tapes, after running a cleaning tape then
the drive is dirty and will need replacing under your support contract.

Qualstar-sourced tapes are all run through a cleaning machine before
repackaging.

Other tapes sometimes come with a bonus of various contamination types
(I've had this happen) and drives themselves are susceptable to picking
up gunk if it's in the local atmosphere - it gets worse if humidity is low.


A clean tape and clean drive will generate almost zero errors. Once
contaminated the numbers just keep increasing.



On 27/05/16 10:02, Ana Emília M. Arruda wrote:
> Hello,
>
> Have you checked if you do not have a Maximum Volume Bytes configured
> in your Pool resource?
>
> Best regards,
> Ana
>
> On Thu, May 26, 2016 at 10:05 PM, Kern Sibbald  > wrote:
>
> I recommend to remove the Maximum Network Buffer Size.  Bacula
> will figure it out itself.
>
>
> On 05/26/2016 08:43 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS
> INC] wrote:
>>
>> Kern,
>>
>>  
>>
>> Okay, Thank you. I will try setting the block size to 512k to
>> improve the speed of writing to the tape. What about the “Maximum
>> Network Buffer Size = 65536*” *I have currently set in my
>> configuration? Should I remove this or change the value I have
>> set? Please let me know.
>>
>>  
>>
>> Regards,
>>
>> Uthra
>>
>>  
>>
>> *From:*Kern Sibbald [mailto:k...@sibbald.com]
>> *Sent:* Thursday, May 26, 2016 2:35 PM
>> *To:* Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC];
>> bacula-users@lists.sourceforge.net
>> 
>> *Subject:* Re: [Bacula-users] LTO-7 tape drive settings in bacula
>> 7.4.0
>>
>>  
>>
>> The defaults for both of those should work out of the box. 
>> However, by increasing the Maximum Block Size, you can probably
>> improve the speed of writing to the tape.  This is, of course,
>> optional.  I would still not set the block size any larger than
>> 512K though.
>>
>> Best regards,
>> Kern
>>
>> On 05/26/2016 08:16 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS
>> INC] wrote:
>>
>> Thank you all for taking the time to reply to my email.
>>
>>  
>>
>> We are using LTO-7 tapes with the LTO-7 Tape drives. I don’t
>> think the data transfer rate is an issue in our case. I am
>> thinking of removing the “*MaxBlocksize*” and “*Maximum
>> Network Buffer Size” *I have currently set for the tape
>> drives so that it will use the defaults. I will then run a
>> test backup to see if this helps.
>>
>>  
>>
>> Regards,
>>
>> Uthra
>>
>>  
>>
>>  
>>
>> *From:*Kern Sibbald [mailto:k...@sibbald.com]
>> *Sent:* Thursday, May 26, 2016 7:56 AM
>> *To:* Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC];
>> bacula-users@lists.sourceforge.net
>> 
>> *Subject:* Re: [Bacula-users] LTO-7 tape drive settings in
>> bacula 7.4.0
>>
>>  
>>
>> Hello,
>>
>>
>> The tape probably got an error.  You should be able to see if
>> there were problems by looking at dmesg output and Bacula
>> output for the job that marked the tape full.
>>
>> The error, if there was one, is very likely coming from the
>> fact that you set the block size too big.  I believe that
>> anything more than 512K will probably not improve performance
>> much but it will increase significantly the chances of a
>> write error.
>>
>> Try running some tests with 512K max block size and see if
>> the tape fills up correctly.
>>
>> Best regards,
>> Kern
>>
>>
>>
>> On 25/05/2016 20:04, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS
>> INC] wrote:
>>
>> I have a Qualstar Tapeell library (RLS-87120) with three
>> LTO7 tape drives.  It is connected to the backup server
>> directly through Fiber Channel. I am  running bacula
>> 7.4.  I ran a test backup which completed successfully
>> but I found that the LTO-7 Tape was not used up to its
>> full capacity of 6TB. It wrote 2.6TB and marked the tape
>> “FULL” then moved on to the next tape in the pool. I
>> expected the backup to write 6TB to the tape before
>> marking it “FULL”? Here is the information from my
>> bacula-sd.conf:
>>
>>  
>>
>>   *Maximum File Size = 50G*
>>
>> *  Maximum Network B

Re: [Bacula-users] Deleting DIFFERENTIAL Jobs from Volumes

2016-05-27 Thread Wanderlei Huttel
Hello Larryboy


2016-05-27 6:40 GMT-03:00 Larrybwoy :

> Hello again,
>
> A new question : Is there a way I can set up Bacula so that it recycles
> only the differential jobs from a volume? For example, I have one volume
> that has the initial full backup in it and 1 other differential job. Can I
> set it up so that only the differential job in there gets recycled every
> hour?
>
This case is not possible, because all backup (Full and Differential) are
in the same volume, if you recycle volume, bacula will recycle entire
volume.

>
> OR, say i have the flag "User Volume Once = yes", and I have 1 volume
> which is the first  full backup, then 1 other volume which represents the
> differential backup, can I set up recycling only on the 2nd volume? I don't
> want to be doing a full backup every hour because of retention times, and I
> only want to do a full backup ONCE, then only differential.
>
Yes. You need to create a Pool for the Full backups with a long  retention
and another Pool for the Differential backups with a shorter retention.


> I have tried this (without the Use Volume Once flag) with a 3 hour
> retention period (since it takes about 2 and a half hours to do a full
> backup for my filesystem, and if I set the retention period lower than that
> then bacula runs the next differential job(which is hourly) as a full
> job...)  and the problem is that after those 3 hours are up bacula creates
> a new full job in the first volume, since it sees it as being expired.
>
> I can't seem to figure out a decent plan using Bacula for my specific
> needs, it's driving me crazy.
>
>
Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Deleting DIFFERENTIAL Jobs from Volumes

2016-05-27 Thread Larrybwoy
Hello again,

A new question : Is there a way I can set up Bacula so that it recycles only 
the differential jobs from a volume? For example, I have one volume that has 
the initial full backup in it and 1 other differential job. Can I set it up so 
that only the differential job in there gets recycled every hour? 

OR, say i have the flag "User Volume Once = yes", and I have 1 volume which is 
the first  full backup, then 1 other volume which represents the differential 
backup, can I set up recycling only on the 2nd volume? I don't want to be doing 
a full backup every hour because of retention times, and I only want to do a 
full backup ONCE, then only differential.

I have tried this (without the Use Volume Once flag) with a 3 hour retention 
period (since it takes about 2 and a half hours to do a full backup for my 
filesystem, and if I set the retention period lower than that then bacula runs 
the next differential job(which is hourly) as a full job...)  and the problem 
is that after those 3 hours are up bacula creates a new full job in the first 
volume, since it sees it as being expired. 

I can't seem to figure out a decent plan using Bacula for my specific needs, 
it's driving me crazy.

+--
|This was sent by larryb...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

2016-05-27 Thread Ana Emília M . Arruda
Hello,

Have you checked if you do not have a Maximum Volume Bytes configured in
your Pool resource?

Best regards,
Ana

On Thu, May 26, 2016 at 10:05 PM, Kern Sibbald  wrote:

> I recommend to remove the Maximum Network Buffer Size.  Bacula will figure
> it out itself.
>
>
> On 05/26/2016 08:43 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
> wrote:
>
> Kern,
>
>
>
> Okay, Thank you. I will try setting the block size to 512k to improve the
> speed of writing to the tape. What about the “Maximum Network Buffer Size
> = 65536*” *I have currently set in my configuration? Should I remove this
> or change the value I have set? Please let me know.
>
>
>
> Regards,
>
> Uthra
>
>
>
> *From:* Kern Sibbald [mailto:k...@sibbald.com ]
> *Sent:* Thursday, May 26, 2016 2:35 PM
> *To:* Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC];
> bacula-users@lists.sourceforge.net
> *Subject:* Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0
>
>
>
> The defaults for both of those should work out of the box.  However, by
> increasing the Maximum Block Size, you can probably improve the speed of
> writing to the tape.  This is, of course, optional.  I would still not set
> the block size any larger than 512K though.
>
> Best regards,
> Kern
>
> On 05/26/2016 08:16 PM, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
> wrote:
>
> Thank you all for taking the time to reply to my email.
>
>
>
> We are using LTO-7 tapes with the LTO-7 Tape drives. I don’t think the
> data transfer rate is an issue in our case. I am thinking of removing the “
> *MaxBlocksize*” and “*Maximum Network Buffer Size” *I have currently set
> for the tape drives so that it will use the defaults. I will then run a
> test backup to see if this helps.
>
>
>
> Regards,
>
> Uthra
>
>
>
>
>
> *From:* Kern Sibbald [mailto:k...@sibbald.com ]
> *Sent:* Thursday, May 26, 2016 7:56 AM
> *To:* Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC];
> bacula-users@lists.sourceforge.net
> *Subject:* Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0
>
>
>
> Hello,
>
>
> The tape probably got an error.  You should be able to see if there were
> problems by looking at dmesg output and Bacula output for the job that
> marked the tape full.
>
> The error, if there was one, is very likely coming from the fact that you
> set the block size too big.  I believe that anything more than 512K will
> probably not improve performance much but it will increase significantly
> the chances of a write error.
>
> Try running some tests with 512K max block size and see if the tape fills
> up correctly.
>
> Best regards,
> Kern
>
>
>
> On 25/05/2016 20:04, Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC] wrote:
>
> I have a Qualstar Tapeell library (RLS-87120) with three LTO7 tape
> drives.  It is connected to the backup server directly through Fiber
> Channel. I am  running bacula 7.4.  I ran a test backup which completed
> successfully but I found that the LTO-7 Tape was not used up to its full
> capacity of 6TB. It wrote 2.6TB and marked the tape “FULL” then moved on to
> the next tape in the pool. I expected the backup to write 6TB to the tape
> before marking it “FULL”? Here is the information from my bacula-sd.conf:
>
>
>
>   *Maximum File Size = 50G*
>
> *  Maximum Network Buffer Size = 65536*
>
> * Maximum Block Size = 2097152*
>
>
>
> The MaxBlock: 8388608 is seen in the tapeinfo command on the tape drive0:
>
>
>
># tapeinfo -f /dev/tapedr0
>
> Product Type: Tape Drive
>
> Vendor ID: 'IBM '
>
> Product ID: 'ULTRIUM-HH7 '
>
> Revision: 'FA11'
>
> Attached Changer API: No
>
> SerialNumber: '10WT004131'
>
> MinBlock: 1
>
> *MaxBlock: 8388608*
>
> SCSI ID: 0
>
> SCSI LUN: 0
>
> Ready: yes
>
> BufferedMode: yes
>
> Medium Type: 0x78
>
> Density Code: 0x5c
>
> BlockSize: 0
>
> DataCompEnabled: yes
>
> DataCompCapable: yes
>
> DataDeCompEnabled: yes
>
> CompType: 0xff
>
> DeCompType: 0xff
>
> BOP: yes
>
> Block Position: 0
>
> Partition 0 Remaining Kbytes: -1
>
> Partition 0 Size in Kbytes: -1
>
> ActivePartition: 0
>
> EarlyWarningSize: 0
>
> NumPartitions: 0
>
> MaxPartitions: 3
>
>
>
> I am not sure if the issue I am seeing with the tape not being used to its
> full capacity is due to the “Max Block size” I have set? What is the
> recommended setting for LTO-7? If anybody could share your knowledge about
> this I would really appreciate it. I did some search on the internet and
> could not find any useful information.
>
>
>
> Thank you
>
>
>
>
>
> --
>
> Mobile security can be enabling, not merely restricting. Employees who
>
> bring their own devices (BYOD) to work are irked by the imposition of MDM
>
> restrictions. Mobile Device Manager Plus allows you to control only the
>
> apps on BYO-devices by containerizing them, leaving personal data untouched!
>
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>
>
>
>
>
> ___
>
> Bacula-users mailin