[Bacula-users] Bacula 7 will only see the first storage resource in bacula-dir.conf

2014-07-15 Thread Joe Rhodes
Hey everyone!

I’m running Bacula 7.0.4 on Ubuntu 14.04.  I’m backing up to two different 
devices.  One is a hot-swap hard drive bay which I’m treating as a changer 
using the vchanger program.   These drives get changed out and rotated off 
site.   The other is a fixed drive.  The two devices will use two distinct 
pools.

The issue I’m having is that no matter what I do, Bacula seems to see the FIRST 
storage resource only.  This ultimately causes problems because bacula will 
look to the wrong device for volumes associated with the pool the job calls for.

I have a similar setup on a Bacula 5.2 setup that is working great.  So I’m not 
sure what I’m doing wrong.  Config files look the same between the two.   If 
anyone has some suggestions, I’d be eternally grateful.

The stanza’s from bacula-dir.com:

#
#
# Storage
#
#

# Definition of file Virtual Autochanger device
Storage {
  Name = removeable-drives
  Address = 10.11.1.2  # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "RoundHouseBackup"
  Device = ExternalDrives
  Media Type = File
  Maximum Concurrent Jobs = 1# run up to 10 jobs a the same time
}

Storage {
  Name = LocalStorage
  Address = 10.11.1.2  # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "RoundHouseBackup"
  Device = LocalStorage
  Media Type = File1
  Maximum Concurrent Jobs = 1# run up to 10 jobs a the same time
}


And the stanza’s from my bacula-sd.conf:


# Define a Virtual autochanger
#
Autochanger {
  Name = ExternalDrives
  Device = ExternalDrives-Drive1
  Changer Command = "/usr/local/bin/vchanger -u root  %c %o %S %a %d"
  Changer Device = "/etc/bacula/vchanger1.conf"
}

Device {
  Name = ExternalDrives-Drive1
  DriveIndex = 0
  Autochanger = yes
  DeviceType = File
  Media Type = File
  Archive Device = /var/lib/bacula/removeable-drives/0/drive0
  #LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum Concurrent Jobs = 5;
  Maximum Volume Size = 476250 MB;  # with 8 volumes per drive, this should 
leave about 
# 4,800 MB free for other things, or about 
0.125%
}

Device {
  Name = LocalStorage
  Device Type = File
  Media Type = File1
  Archive Device = /mnt/localstorage/
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum Volume Size = 237500 MB
}


When I execute “status sd” in bconsole, I get this:


*status sd
Automatically selected Storage: removeable-drives
Connecting to Storage daemon removeable-drives at 10.11.1.2:9103

mail.roundhouse.local-sd Version: 7.0.4 (04 June 2014) x86_64-unknown-linux-gnu 
ubuntu 14.04
Daemon started 15-Jul-14 21:55. Jobs: run=0, running=0.
 Heap: heap=270,336 smbytes=198,653 max_bytes=354,151 bufs=88 max_bufs=90
 Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0

Running Jobs:
No Jobs running.

…

Device status:
Autochanger "ExternalDrives" with devices:
   "ExternalDrives-Drive1" (/var/lib/bacula/removeable-drives/0/drive0)

Device "ExternalDrives-Drive1" (/var/lib/bacula/removeable-drives/0/drive0) is 
not open.
Drive 0 is not loaded.
==

Device "LocalStorage" (/mnt/localstorage/) is not open.
==


Used Volume status:




If I swap the order of the two “Storage” stanza’s in bacula-dir.cong, I get 
this:



*status sd
Automatically selected Storage: LocalStorage
Connecting to Storage daemon LocalStorage at 10.11.1.2:9103

mail.roundhouse.local-sd Version: 7.0.4 (04 June 2014) x86_64-unknown-linux-gnu 
ubuntu 14.04
Daemon started 15-Jul-14 21:55. Jobs: run=0, running=0.
 Heap: heap=270,336 smbytes=199,230 max_bytes=354,151 bufs=89 max_bufs=91
 Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0

Running Jobs:
No Jobs running.


...

Device status:
Autochanger "ExternalDrives" with devices:
   "ExternalDrives-Drive1" (/var/lib/bacula/removeable-drives/0/drive0)

Device "ExternalDrives-Drive1" (/var/lib/bacula/removeable-drives/0/drive0) is 
not open.
Drive 0 is not loaded.
==

Device "LocalStorage" (/mnt/localstorage/) is not open.
==


Used Volume status:


Notice how the “Automatically selected Storage:” line changes?  It just picks 
the first one and seems to ignore the other.  On the 5.2 install, I get a sub 
menu asking which Storage I want to get status on:

*status sd
The defined Storage resources are:
 1: File
 2: LocalStorage
Select Storage resource (1-2): 1


Hopefully someone can see what I’m doing wrong here.

Thanks!
-Joe








smime.p7s
Description: S/MIME cryptographic signature
--

Re: [Bacula-users] list files backed up on a tape

2014-07-15 Thread Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
John,

O.K. Thank you. I will look in to that also.

Uthra


-Original Message-
From: John Drescher [mailto:dresche...@gmail.com] 
Sent: Tuesday, July 15, 2014 11:51 AM
To: Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] list files backed up on a tape

> I had to first stop bacula-sd daemon
>
> I then ran the following command:
>
>
>
> #./bls -V B01206L5 /dev/nst0
>
>
>
> This gave me a listing of all the files on this tape. Please note that “bls”
> utility has other options we can use for example to read the label, to 
> read the block etc..
>

The advantage to extracting this out of the database is it will be much faster 
since no need to read the tape blocks to extract the information.

John
--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] list files backed up on a tape

2014-07-15 Thread John Drescher
> I had to first stop bacula-sd daemon
>
> I then ran the following command:
>
>
>
> #./bls -V B01206L5 /dev/nst0
>
>
>
> This gave me a listing of all the files on this tape. Please note that “bls”
> utility has other options we can use for example to read the label, to read
> the block etc..
>

The advantage to extracting this out of the database is it will be
much faster since no need to read the tape blocks to extract the
information.

John

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fd to sd connection refused.

2014-07-15 Thread John Drescher
There is authentication. The fd has a password in the conf file on the
client side. The director contacts the fd and tells it to initiate
communications with the sd with the ip address stored in
bacula-sd.conf. Remember this can not be localhost or 127.0.0.1 since
the fd would then try to connect to a sd that is on the same machine
as the client not the director..

John

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] list files backed up on a tape

2014-07-15 Thread Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I was able to get a get a listing of the files on my tape with the command that 
Ana Emília M. Arruda suggested.

I had to first stop bacula-sd daemon
I then ran the following command:


#./bls -V B01206L5 /dev/nst0



This gave me a listing of all the files on this tape. Please note that "bls" 
utility has other options we can use for example to read the label, to read the 
block etc..



Thank You.

Uthra



From: Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
Sent: Tuesday, July 08, 2014 3:33 PM
To: bacula-users@lists.sourceforge.net
Subject: list files backed up on a tape

I run bacula  5.2.12 with LTO5 tape drives. While running a full backup of a 
client the tape in the pool had a media error so it wrote only 350MB on it and 
marked it "FULL" with a media error. The backup proceeded to the next available 
tape in the pool. I would like to get a list of files it has backed up on the 
bad tape (350MB).  Is there an easy way to get this listing?

**
New volume "B01206L5" mounted on device "Drive-1" (/dev/nst0) at 08-Jul-2014 
01:12.
host-sd
Error: block.c:608 Write error at 0:1368 on device "Drive-1" (/dev/nst0). 
ERR=Input/output error.

Error: Error writing final EOF to tape. This Volume may not be readable.
dev.c:1566 ioctl MTWEOF error on "Drive-1" (/dev/nst0). ERR=Input/output error.
host-sd End of medium on Volume "B01206L5" Bytes=358,351,872 Blocks=1,367 at 
08-Jul-2014 01:12.
3307 Issuing autochanger "unload slot 13, drive 0" command.


Thank you.
Uthra

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] fd to sd connection refused.

2014-07-15 Thread andreas graeper
hi,
my first attempt to simply backup one file, but the output on clients fd
tells that the sd refuses the connection.

1) in bacula-fd.conf
 Message {
  Name = Standard
  ..
 } this is prepared for an (not installed) director on client. so i defined
a second Message-resource, but how can i tell the fd to use the right one ?
i disabled the original Message
and renamed the new one to Name = Standard
and i added (as i found in www) 'append = "/var/log/bacula/bacula.log" =
all, .. '


2) logging: i tried -d100 in dir, sd and fd service scripts. but messages
on console.
 why is logging into /var/log/bacula/bacula.log so poor.
when a job with default-timeout writes to log when it gives up, not as soon
as the errors occur ?

3) on server in dir- and sd-config a password is given.
  when a job starts the director connects to sd and fd

  dir <-authentication-> sd
  dir -> fd -> sd
  what actually goes on here ?

  is there no authentication between fd and sd or does the dir tells the fd
how to authenticate against the sd ? or does the dir tells the sd what
connection to expect within the next minutes ? ( there is an sd-option
(similiar) time_to_wait_for_client )
 why the connection fd > sd can fail and how can i find out what goes wrong
?
--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula client backup and restore

2014-07-15 Thread Radosław Korzeniewski
Hello,

2014-07-14 16:50 GMT+02:00 More, Ankush :

> Hi Team,
> We have installed Bacula-7.0.4 on CentOS 6.5.
> I have few doubt regarding backup and restore of client.
>
> 1) Can I define in client configuration file, what file systems to be
> backup?
>

You cannot do this in bacula-fd.conf file. You can define a file located on
client (indirect with FileSet external client shell command) which will
have a list of file systems to backup. Check docs for more info.

2) Can I define in client configuration file not to backup certain files or
> file systems?
>

You cannot do this in bacula-fd.conf file. You can define "Exclude Dir
Containing" FileSet parameter which allow a client to exclude certain
directories from backup.


> 3) Can I restore files from client?
>

Yes. You can use standard bconsole for that. If you proper define a
restricted console then you can limit access to different clients or jobs
or commands, etc.


> I know we can do it on bacula server, but I need on client.
>
>
I hope it helps.
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users