On 5/17/2014 10:50 PM, Steven Haigh
wrote:
Hi Vizo, If I use the UUID:blah format, vchanger can't find the drives.I found on another post to this list in the archives (via google) that the following method worked - but I'm unsure if any further problems were encountered. It seems to be a problem with libuuid or similar? It is a chicken and egg problem. libuuid (actually libblkid) sees the partition but cannot find its mountpoint. This is because there is no mountpoint until autofs mounts it, and autofs doesn't mount it until it is accessed. So specifying by UUID does not work with autofs mounting. The work around is to setup autofs to make the UUID be the directory name of the mountpoint. #/etc/auto.master /mnt/vchanger /etc/auto.vchanger --timeout=30 #/etc/auto.vchanger * -fstype=auto,rw,noatime :/dev/disk/by-uuid/& And then in vchanger config specify disks as: magazine = /mnt/vchanger/9272db19-2ead-4516-8a13-71b1ce55ae0e On 18/05/14 12:47, Vizo Allman wrote:Ok I think you have magazine wrong magazine = "UUID:Your UID HERE" On Sat, May 17, 2014 at 8:19 PM, Steven Haigh <net...@crc.id.au <mailto:net...@crc.id.au>> wrote: Hi all, I'm in the process of trying to change my backup system from TSM to Bacula - and there are a few things I can't quite find the answers to. Mostly in regards to the interaction with vchanger. I use a few eSATA drives to move data to. I also do the initial full backups to this pool - then a nightly incremental. I've set up vchanger as so: # cat /etc/bacula/vchanger.conf changer_name = esata-changer work_dir = /opt/bacula/working/esata logfile = "/var/log/vchanger.log" log_level = LOG_DEBUG Virtual_Drives = 2 slots_per_magazine = 10 magazine_bays = 1 automount_dir = /mnt/vchanger magazine = /mnt/vchanger/a7122eae-bf9a-4b09-a67f-68db60cee026 It seems I can't use UUID:a7122eae-bf9a-4b09-a67f-68db60cee026 as the magazine (maybe that leads to my problems restoring later on?) as vchanger continues to error out when I try. bacula-sd.conf is almost straight from the docs: Autochanger { Name = esata-changer Device = esata-changer-drive-0 Device = esata-changer-drive-1 Changer Command = "/usr/local/bin/vchanger %c %o %S %a %d" Changer Device = "/etc/bacula/vchanger.conf" } #--- drive 0 of the esata autochanger Device { Name = esata-changer-drive-0 DriveIndex = 0 Autochanger = yes; DeviceType = File MediaType = File ArchiveDevice = /opt/bacula/working/esata/0/drive0 RemovableMedia = no; RandomAccess = yes; } #--- drive 1 of the esata autochanger Device { Name = esata-changer-drive-1 DriveIndex = 1 Autochanger = yes; DeviceType = File MediaType = File ArchiveDevice = /opt/bacula/working/esata/1/drive1 RemovableMedia = no; RandomAccess = yes; } bacula-dir.conf is almost straight from the docs as well: Storage { Name = esata Address = bacula.crc.id.au <http://bacula.crc.id.au> Password = "mypassword" Device = esata-changer Media Type = File Autochanger = yes } Pool { Name = esata Pool Type = Backup Storage = esata Maximum Volume Bytes = 40G Recycle Pool = esata } Now, I've been using BAT to look at the director and I firstly have the following specific questions: 1) I have 10 inital slots for volumes on the eSATA drive. 10 x 40Gb = 400Gb. As the drives are 1Tb (mostly), will new volumes automatically be created as the other 10 reach full? Do I have to manually create the number of volumes up to X (ie a full drive?) 2) When I do a restore, will I get prompted to insert the esata drive for vchanger to play with? My initial experiments show that the restore terminated with the following errors: 17-May 19:03 bacula.crc.id.au-sd JobId 58: 3304 Issuing autochanger "load slot 9, drive 0" command. 17-May 19:03 lamp.crc.id.au-fd JobId 58: Fatal error: job.c:2435 Bad response from SD to Read Data command. Wanted 3000 OK data , got 3000 error 17-May 19:03 bacula.crc.id.au-sd JobId 58: Fatal error: 3992 Bad autochanger "load slot 9, drive 0": ERR=Unknown error during program execvp. Results=failed to convert slot 9 to valid volume file name 17-May 19:03 bacula.crc.id.au-sd JobId 58: Warning: acquire.c:232 Read open file device "esata-drive-0" (/opt/bacula/working/eSATA/0/drive0) Volume "eSATA-changer_0001_0009" failed: ERR=file_dev.c:172 Could not open(/opt/bacula/working/eSATA/0/drive0,OPEN_READ_ONLY,0640): ERR=No such file or directory 17-May 19:03 bacula.crc.id.au-sd JobId 58: 3304 Issuing autochanger "load slot 9, drive 0" command. 17-May 19:03 bacula.crc.id.au-sd JobId 58: Fatal error: 3992 Bad autochanger "load slot 9, drive 0": ERR=Unknown error during program execvp. Results=failed to convert slot 9 to valid volume file name I can't seem to find much on the who/what/where/why of this. I have however revisited the config from scratch, wiped the bacula DB and am starting fresh with a new install for my current lot of trials. (therefore this config didn't quite match the above). Any good suggestions or tips on gotchas for a new Bacula user? |
------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users