Re: [Bacula-users] convincing Bacula to use a different tape than it requested
Hello, 2018-02-12 0:11 GMT+01:00 Tilman Schmidt : > (...) > > So what is the appropriate action when Bacula decides to use a tape that > for whatever reason is not available for use? > > Could you define "is not available for use"? For Bacula the tape available for use has a status Append, so when a tape "is not available for use" it should has a different status. You can ask Bacula to manage volume status for you and in most cases it do, i.e. it sets Full status when written to maximum size, etc. best regards -- Radosław Korzeniewski rados...@korzeniewski.net -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] convincing Bacula to use a different tape than it requested
You can disable the volume or change the volume status to Full if you don't intend to append any additional data. If you disable the volume, you will need to enable it in order to use it. I deal in sets of 10 volumes and run into situations where Bacula want a volume that has an earlier expiration than the set of perfectly acceptable recyclable media that is available. I script the import and export of the media to disable or enable the volumes being transferred so that I don't have this particular issue. Patti On 2/11/18, 6:18 PM, "Tilman Schmidt" wrote: Forcing Bacula to use particular tapes is not my objective. (That would be easy - just put every tape in a pool of its own.) What I'm asking for is a sensible way to handle the situation when Bacula requests an unavailable volume. That does happen. It's more frequent with standalone drives but it occurs occasionally with autochangers, too. The specific instance I described was just one example. So what is the appropriate action when Bacula decides to use a tape that for whatever reason is not available for use? Thanks, Tilman Am 07.02.2018 um 10:21 schrieb Kern Sibbald: > Bacula is designed to decide itself which tapes to use and when. If you > are trying to force it to use particular tapes it is possible, but it is > outside the design envelop, so you will almost surely run into problems. > > > > On 06.02.2018 00:54, Tilman Schmidt wrote: >> Just encountered the situation again. >> Bacula requested last month's tape "Januar" since its use period hadn't >> expired yet, but it's the next full backup which should go onto the new >> month's tape "Februar". >> Tape "Januar" has VolStatus=Append. >> Tape "Februar" has VolStatus=Used with VolFiles=0 since it's way beyond >> any applicable retention periods, but Bacula rejects it because of its >> Status and never considers promoting it to "Purged" . >> >> Running bconsole command "prune volume=Februar" asks for confirmation, >> then emits the message >> >>Found no Job associated with the Volume "Februar" to prune >> >> and does nothing. Bacula continues to reject the tape. >> >> Running bconsole command "purge volume=Februar" emits an alarming message >> >>This command can be DANGEROUS!!! >> >> then proceeds, *without* waiting for confirmation, to update VolStatus >> of tape "Februar" to Purged. Now Bacula accepts the tape. >> >> Is all that how it should be? >> >> Is there a way to run the purge command automatically for volumes that >> have reached the "VolStatus=Used && VolFiles=0" state? >> >> Thanks, >> Tilman >> >> Am 08.01.2018 um 00:34 schrieb Tilman Schmidt: >>> Hello Heitor, >>> >>> Am 15.12.2017 um 15:41 schrieb Heitor Faria: > running Bacula 7.4.4 (same problem with version 5.2.13) on openSUSE > Leap > 42.3 with a standalone LTO tape drive. >>> Note: Meanwhile upgraded to 9.0.6. >>> > [Sometimes Bacula requests] a tape that for some > reason cannot or should not be used for that job. > Then if I mount a different tape, Bacula will immediately eject it > again, claiming that it is in the wrong state ("Used" instead of > "Recycle") and insisting I mount the one it requested. > How can I convince Bacula to recycle and use the tape I give it? You can forccefully recycle this tape with the purge command. >>> Ok, that worked, but I'm not quite happy with that solution yet. >>> >>> * The situation has occurred again today, Bacula requesting volume >>> "Mai-2" instead of "Januar" which I wanted it to use. >>> * I first checked volume "Januar" which had not been in use for way >>> beyond its retention period of 91 days, and was listed in the catalog >>> with VolFiles=0, so it should be available for recycling: >>> >>> *llist volume=Januar >>>MediaId: 52 >>> VolumeName: Januar >>> Slot: 0 >>> PoolId: 1 >>> MediaType: LTO-2 >>>MediaTypeId: 0 >>> FirstWritten: 1970-01-01 01:00:00 >>>LastWritten: 2017-01-30 00:39:15 >>> LabelDate: 2017-01-02 20:49:20 >>>VolJobs: 0 >>> VolFiles: 0 >>> VolBlocks: 0 >>> VolParts: 0 >>> VolCloudParts: 0 >>> CacheRetention: 0 >>> VolMounts: 25 >>> VolBytes: 1 >>> VolABytes: 0 >>>VolAPadding: 0 >>> VolHoleBytes: 0 >>> VolHoles: 0 >>> LastPartBytes: 0 >>> VolErrors: 0 >>> VolWrites: 20,112,985 >>> VolCapacityBytes: 0 >>> VolStatus: Used >>>Enabled: 1 >>>Recyc
Re: [Bacula-users] Backing up to dedicated storage
Thank you for the advice, Tilman! I tried to configure just the SD on the storage server by using this command: CFLAGS="-g -Wall" ./configure --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula --enable-smartalloc --with-working-dir=/var/bacula --with-pid-dir=/var/run --enable-readline --disable-build-dird However, it says: You have not specified either --enable-client-only or one of the supported databases: MySQL, PostgreSQL, or SQLite3. This is not permitted. Please reconfigure. Do I need to install MySQL and use --with-mysql even if I only want the SD? --Shawn On 2/10/18, 8:38 AM, "Tilman Schmidt" wrote: Am 10.02.2018 um 01:50 schrieb Shawn Rappaport: > I currently have a CentOS 7 server set up with > [...] the Dir, SD and MySQL running on the > same server in our Las Vegas datacenter. [...] > We have four locations (including Las Vegas) and each location has its > own CentOS 7 server with a bunch of storage dedicated for storing > backups. I would like to keep the Director running on the server in Las > Vegas but have backups for each location’s clients go to their > respective storage servers rather than over the WAN to the Director > server in Las Vegas. > > What is needed to accomplish this? Do I need to install Bacula with SD > on each of the storage servers? Yes. More precisely, you need to install *just* the SD on each of the storage servers. (Plus the FD if you also want to back up data residing on the storage server itself.) > If so, how do I let the Director know > about the other SD servers Just add for each of them a Storage definition to your director configuration, giving the correct Address at which the director can reach it. Make sure any intervening firewalls allow access from the director to TCP port 9103 of the SD. Also make sure the Storage resources are named uniquely across all SDs. > and then configure the clients to back up > their data to a specific SD server for each location? Just add to every Job definition a Storage line giving the name of a storage residing on the correct SD for the client backed up by that job. HTH Tilman -- Tilman Schmidt E-Mail: til...@imap.cc Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwIGaQ&c=sy2pFYeXOTBQJUPqadkFIXq5lzPIgQxhI8DCCAdSjYc&r=N3_BTL1Tt2ryeleRqn2wc-R4w3v0TnI7dlgnwdQ7zE8&m=9sz7sAgtaaseaGPKfNnIxolMk5pWDEfFWFs4frlr9y8&s=J8_J-Qxm0rU117KoG2DMPa9LWBbNjY3k15iMHgh1NPQ&e= ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_bacula-2Dusers&d=DwIGaQ&c=sy2pFYeXOTBQJUPqadkFIXq5lzPIgQxhI8DCCAdSjYc&r=N3_BTL1Tt2ryeleRqn2wc-R4w3v0TnI7dlgnwdQ7zE8&m=9sz7sAgtaaseaGPKfNnIxolMk5pWDEfFWFs4frlr9y8&s=7iCXqHKq9SyZm57QO5woo-2B49DvlVTGFfHpytz4-M0&e= -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Backing up to dedicated storage
Am 12.02.2018 um 18:40 schrieb Shawn Rappaport: > Thank you for the advice, Tilman! I tried to configure just the SD on the > storage server by using this command: > CFLAGS="-g -Wall" ./configure --sysconfdir=/etc/bacula > --with-scriptdir=/etc/bacula --enable-smartalloc > --with-working-dir=/var/bacula --with-pid-dir=/var/run --enable-readline > --disable-build-dird > > However, it says: > You have not specified either --enable-client-only or one of the > supported databases: MySQL, PostgreSQL, or SQLite3. > This is not permitted. Please reconfigure. Can't say much about ./configure. I'm using the pre-build packages, not compiling from source. The bacula-storage package I use doesn't require a database. > Do I need to install MySQL and use --with-mysql even if I only want the SD? You shouldn't have to. But perhaps the configure script needs some special incantation to build only the storage daemon. -- Tilman Schmidt E-Mail: til...@imap.cc Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Backing up to dedicated storage
As you have not specified -enable-client-only then the default is to build both the SD and Director and then you need a database. So you need to disable the Director with the config option -disable-build-dir. This should hopefully solve your problem. Adolf Belka. Sent from my Desktop Computer On 12/02/18 20:58, Tilman Schmidt wrote: Am 12.02.2018 um 18:40 schrieb Shawn Rappaport: Thank you for the advice, Tilman! I tried to configure just the SD on the storage server by using this command: CFLAGS="-g -Wall" ./configure --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula --enable-smartalloc --with-working-dir=/var/bacula --with-pid-dir=/var/run --enable-readline --disable-build-dird However, it says: You have not specified either --enable-client-only or one of the supported databases: MySQL, PostgreSQL, or SQLite3. This is not permitted. Please reconfigure. Can't say much about ./configure. I'm using the pre-build packages, not compiling from source. The bacula-storage package I use doesn't require a database. Do I need to install MySQL and use --with-mysql even if I only want the SD? You shouldn't have to. But perhaps the configure script needs some special incantation to build only the storage daemon. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Backing up to dedicated storage
Whoops, just seen that you already had that command in your config file so then I don't understand why it still expected you to have a database selected. Will think further on it. Adolf Belka. Sent from my Desktop Computer On 12/02/18 22:47, Adolf Belka wrote: As you have not specified -enable-client-only then the default is to build both the SD and Director and then you need a database. So you need to disable the Director with the config option -disable-build-dir. This should hopefully solve your problem. Adolf Belka. Sent from my Desktop Computer On 12/02/18 20:58, Tilman Schmidt wrote: Am 12.02.2018 um 18:40 schrieb Shawn Rappaport: Thank you for the advice, Tilman! I tried to configure just the SD on the storage server by using this command: CFLAGS="-g -Wall" ./configure --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula --enable-smartalloc --with-working-dir=/var/bacula --with-pid-dir=/var/run --enable-readline --disable-build-dird However, it says: You have not specified either --enable-client-only or one of the supported databases: MySQL, PostgreSQL, or SQLite3. This is not permitted. Please reconfigure. Can't say much about ./configure. I'm using the pre-build packages, not compiling from source. The bacula-storage package I use doesn't require a database. Do I need to install MySQL and use --with-mysql even if I only want the SD? You shouldn't have to. But perhaps the configure script needs some special incantation to build only the storage daemon. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Backing up to dedicated storage
Only thing I can think of is that when you specify --disable-build-dird then you maybe have to explicitly specify --enable-build-stored though not really sure that is an actual requirement because it is supposed to be the default. Adolf Belka. Sent from my Desktop Computer On 12/02/18 22:57, Adolf Belka wrote: Whoops, just seen that you already had that command in your config file so then I don't understand why it still expected you to have a database selected. Will think further on it. Adolf Belka. Sent from my Desktop Computer On 12/02/18 22:47, Adolf Belka wrote: As you have not specified -enable-client-only then the default is to build both the SD and Director and then you need a database. So you need to disable the Director with the config option -disable-build-dir. This should hopefully solve your problem. Adolf Belka. Sent from my Desktop Computer On 12/02/18 20:58, Tilman Schmidt wrote: Am 12.02.2018 um 18:40 schrieb Shawn Rappaport: Thank you for the advice, Tilman! I tried to configure just the SD on the storage server by using this command: CFLAGS="-g -Wall" ./configure --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula --enable-smartalloc --with-working-dir=/var/bacula --with-pid-dir=/var/run --enable-readline --disable-build-dird However, it says: You have not specified either --enable-client-only or one of the supported databases: MySQL, PostgreSQL, or SQLite3. This is not permitted. Please reconfigure. Can't say much about ./configure. I'm using the pre-build packages, not compiling from source. The bacula-storage package I use doesn't require a database. Do I need to install MySQL and use --with-mysql even if I only want the SD? You shouldn't have to. But perhaps the configure script needs some special incantation to build only the storage daemon. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Backing up to dedicated storage
Thanks, Adolf! I’ll give that a try. --Shawn On 2/12/18, 3:14 PM, "Adolf Belka" wrote: Only thing I can think of is that when you specify --disable-build-dird then you maybe have to explicitly specify --enable-build-stored though not really sure that is an actual requirement because it is supposed to be the default. Adolf Belka. Sent from my Desktop Computer On 12/02/18 22:57, Adolf Belka wrote: > Whoops, just seen that you already had that command in your config > file so then I don't understand why it still expected you to have a > database selected. Will think further on it. > > Adolf Belka. > > Sent from my Desktop Computer > > On 12/02/18 22:47, Adolf Belka wrote: >> As you have not specified -enable-client-only then the default is to >> build both the SD and Director and then you need a database. So you >> need to disable the Director with the config option -disable-build-dir. >> >> This should hopefully solve your problem. >> >> Adolf Belka. >> >> >> Sent from my Desktop Computer >> >> On 12/02/18 20:58, Tilman Schmidt wrote: >>> Am 12.02.2018 um 18:40 schrieb Shawn Rappaport: Thank you for the advice, Tilman! I tried to configure just the SD on the storage server by using this command: CFLAGS="-g -Wall" ./configure --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula --enable-smartalloc --with-working-dir=/var/bacula --with-pid-dir=/var/run --enable-readline --disable-build-dird However, it says: You have not specified either --enable-client-only or one of the supported databases: MySQL, PostgreSQL, or SQLite3. This is not permitted. Please reconfigure. >>> Can't say much about ./configure. >>> I'm using the pre-build packages, not compiling from source. >>> The bacula-storage package I use doesn't require a database. >>> Do I need to install MySQL and use --with-mysql even if I only want the SD? >>> You shouldn't have to. But perhaps the configure script needs some >>> special incantation to build only the storage daemon. >>> >> > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=sy2pFYeXOTBQJUPqadkFIXq5lzPIgQxhI8DCCAdSjYc&r=N3_BTL1Tt2ryeleRqn2wc-R4w3v0TnI7dlgnwdQ7zE8&m=CRPGkZfqCZVQfiq1D5CF3YT-7RR1xT_Ieesp83-MlVg&s=a2FeI3hkAasRqUi41Qvc316nV2_f3seq20SVUzFKgM8&e= ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_bacula-2Dusers&d=DwICAg&c=sy2pFYeXOTBQJUPqadkFIXq5lzPIgQxhI8DCCAdSjYc&r=N3_BTL1Tt2ryeleRqn2wc-R4w3v0TnI7dlgnwdQ7zE8&m=CRPGkZfqCZVQfiq1D5CF3YT-7RR1xT_Ieesp83-MlVg&s=1y0tG4vJPZyQ6PmZx_psbHsYQMqWu-nr0V6_tW3bH3A&e= -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Backing up to dedicated storage
With some searching I found a reply from Phil Stracchino on a similar question back in 2011 and the following was the communication:- / > Hi,/ / > Is it possible to install storage daemon only from sources and in / / > this case is the MySQL is needed?/ / > I've got director and catalog on different machine without connection to / / > tabe library, and want to install SD on another host./ / >/ /Yes, if you lounch ./configure --help you can see that using/ /--disable-build-dird --without-mysql you should compile only the storage/ /deamon./ /Anyway, I'have not try this on my installations./ Actually, this is not correct. You still need to specify the correct catalog DB engine when building only the storage daemon, because the storage daemon includes the storage daemon tools - btape, bscan etc - and some of those tools (bscan in particular) need to be able to access the catalog database directly without going through the Director. -- Phil Stracchino So this looks like you have to have one of the databases even if it is only the SD. Adolf Belka. Sent from my Desktop Computer On 12/02/18 23:12, Adolf Belka wrote: Only thing I can think of is that when you specify --disable-build-dird then you maybe have to explicitly specify --enable-build-stored though not really sure that is an actual requirement because it is supposed to be the default. Adolf Belka. Sent from my Desktop Computer On 12/02/18 22:57, Adolf Belka wrote: Whoops, just seen that you already had that command in your config file so then I don't understand why it still expected you to have a database selected. Will think further on it. Adolf Belka. Sent from my Desktop Computer On 12/02/18 22:47, Adolf Belka wrote: As you have not specified -enable-client-only then the default is to build both the SD and Director and then you need a database. So you need to disable the Director with the config option -disable-build-dir. This should hopefully solve your problem. Adolf Belka. Sent from my Desktop Computer On 12/02/18 20:58, Tilman Schmidt wrote: Am 12.02.2018 um 18:40 schrieb Shawn Rappaport: Thank you for the advice, Tilman! I tried to configure just the SD on the storage server by using this command: CFLAGS="-g -Wall" ./configure --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula --enable-smartalloc --with-working-dir=/var/bacula --with-pid-dir=/var/run --enable-readline --disable-build-dird However, it says: You have not specified either --enable-client-only or one of the supported databases: MySQL, PostgreSQL, or SQLite3. This is not permitted. Please reconfigure. Can't say much about ./configure. I'm using the pre-build packages, not compiling from source. The bacula-storage package I use doesn't require a database. Do I need to install MySQL and use --with-mysql even if I only want the SD? You shouldn't have to. But perhaps the configure script needs some special incantation to build only the storage daemon. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users