Resending. Sorry, the previous email was incomplete.
On Tue, Jan 9, 2018, at 3:29 PM, Dan Langille wrote: > > On Jan 9, 2018, at 3:07 PM, Dan Langille <d...@langille.org> wrote: > > > >> On Jan 9, 2018, at 3:01 PM, Dan Langille <d...@langille.org> wrote: > >> > >> I wonder if this line is related: > >> > >> > >> bacula-sd-01-sd: mount.c:663-269534 No autolabel because polling. > >> > >> If no labeling, then no volume is created. > >> > >> See > >> https://gist.github.com/dlangille/513cb50351f7bc6ab6d33a6859b20326#file-bacula-trace-L84 > >> > >> > >> > >> bacula-sd-01-sd: mount.c:182-269534 want vol=FullAuto-8867 devvol= > >> dev="vDrive-FullFile-8" (/usr/local/bacula/volumes/FullFile) > >> bacula-sd-01-sd: mount.c:190-269534 Try open Vol=FullAuto-8867 > >> bacula-sd-01-sd: file_dev.c:138-269534 Enter: virtual bool > >> file_dev::open_device(DCR *, int) > >> bacula-sd-01-sd: dev.c:113-269534 Enter: virtual bool > >> DEVICE::open_device(DCR *, int) > >> bacula-sd-01-sd: dev.c:325-269534 Enter: virtual bool DEVICE::mount(int) > >> bacula-sd-01-sd: file_dev.c:184-269534 open disk: mode=OPEN_READ_WRITE > >> open(/usr/local/bacula/volumes/FullFile/FullAuto-8867, 0x2, 0640) > >> bacula-sd-01-sd: file_dev.c:191-269534 open failed: file_dev.c:190 Could > >> not > >> open(/usr/local/bacula/volumes/FullFile/FullAuto-8867,OPEN_READ_WRITE,0640): > >> ERR=No such file or directory > >> bacula-sd-01-sd: file_dev.c:211-269534 open dev: disk fd=-1 opened > >> bacula-sd-01-sd: file_dev.c:214-269534 Leave: virtual bool > >> file_dev::open_device(DCR *, int) > >> bacula-sd-01-sd: mount.c:192-269534 Try autolabel Vol=FullAuto-8867 > >> bacula-sd-01-sd: file_dev.c:138-269534 Enter: virtual bool > >> file_dev::open_device(DCR *, int) > >> bacula-sd-01-sd: dev.c:113-269534 Enter: virtual bool > >> DEVICE::open_device(DCR *, int) > >> bacula-sd-01-sd: dev.c:325-269534 Enter: virtual bool DEVICE::mount(int) > >> bacula-sd-01-sd: file_dev.c:184-269534 open disk: mode=OPEN_READ_WRITE > >> open(/usr/local/bacula/volumes/FullFile/FullAuto-8867, 0x2, 0640) > >> bacula-sd-01-sd: file_dev.c:191-269534 open failed: file_dev.c:190 Could > >> not > >> open(/usr/local/bacula/volumes/FullFile/FullAuto-8867,OPEN_READ_WRITE,0640): > >> ERR=No such file or directory > >> bacula-sd-01-sd: file_dev.c:211-269534 open dev: disk fd=-1 opened > >> bacula-sd-01-sd: file_dev.c:214-269534 Leave: virtual bool > >> file_dev::open_device(DCR *, int) > >> bacula-sd-01-sd: mount.c:198-269534 open_device failed: ERR=file_dev.c:190 > >> Could not > >> open(/usr/local/bacula/volumes/FullFile/FullAuto-8867,OPEN_READ_WRITE,0640): > >> ERR=No such file or directory > >> bacula-sd-01-sd: mount.c:663-269534 No autolabel because polling. > >> bacula-sd-01-sd: mount.c:215-269534 Open of File device > >> "vDrive-FullFile-8" (/usr/local/bacula/volumes/FullFile) Volume > >> "FullAuto-8867" failed: ERR=file_dev.c:190 Could not > >> open(/usr/local/bacula/volumes/FullFile/FullAuto-8867,OPEN_READ_WRITE,0640): > >> ERR=No such file or directory > >> > >> bacula-sd-01-sd: mount.c:220-269534 Volume "FullAuto-8867" not loaded on > >> File device "vDrive-FullFile-8" (/usr/local/bacula/volumes/FullFile). > > > > This is why it is not labelling, from bacula/src/stored/mount.c > > > > int DCR::try_autolabel(bool opened) > > { > > DCR *dcr = this; > > > > if (dev->poll && !dev->is_tape()) { > > Dmsg0(100, "No autolabel because polling.\n"); > > return try_default; /* if polling, don't try to create new > > labels */ > > } > > > > To get this backup running again: > > I manually deleted the last volume which failed to create (it was in > the Catalog but not in the filesystem). > > I manually labeled that Volume (which creates a Catalog entry and a > file on disk). > > https://gist.github.com/dlangille/513cb50351f7bc6ab6d33a6859b20326#file-1319 This is still an issue. This time it's on a new bacula-sd I have recently created. The bacula-sd configuration is based upon other SD instances I have. *m 02-Dec 13:06 bacula-dir JobId 302468: Created new Volume="FullAuto-11080", Pool="FullFile-03", MediaType="FullFile03" in catalog. 02-Dec 13:06 bacula-sd-03 JobId 302468: Warning: mount.c:215 Open of File device "vDrive-FullFile-1" (/usr/local/bacula/volumes/FullFile-03) Volume "FullAuto-11080" failed: ERR=file_dev.c:190 Could not open(/usr/local/bacula/volumes/FullFile-03/FullAuto-11080,OPEN_READ_WRITE,0640): ERR=No such file or directory 02-Dec 13:06 bacula-sd-03 JobId 302468: Marking Volume "FullAuto-11080" in Error in Catalog. 02-Dec 13:06 bacula-dir JobId 302468: Error: sql_get.c:1210 Media record with MediaId=11079 not found. 02-Dec 13:06 bacula-dir JobId 302468: Created new Volume="FullAuto-11081", Pool="FullFile-03", MediaType="FullFile03" in catalog. 02-Dec 13:06 bacula-sd-03 JobId 302468: Warning: mount.c:215 Open of File device "vDrive-FullFile-1" (/usr/local/bacula/volumes/FullFile-03) Volume "FullAuto-11081" failed: ERR=file_dev.c:190 Could not open(/usr/local/bacula/volumes/FullFile-03/FullAuto-11081,OPEN_READ_WRITE,0640): ERR=No such file or directory 02-Dec 13:06 bacula-sd-03 JobId 302468: Marking Volume "FullAuto-11081" in Error in Catalog. * I claim bacula-sd absolutely has write permissions there. I conclude this based upon manual labels are successful: *label storage storage=bacula-sd-03-FullFile slot=9 pool=FullFile-03 drive=0 volume=FullAuto-11078 Using Catalog "MyCatalog" Connecting to Storage daemon bacula-sd-03-FullFile at bacula-sd-03.int.unixathome.org:9103 ... Sending label command for Volume "FullAuto-11078" Slot 9 ... 3000 OK label. VolBytes=257 VolABytes=0 VolType=1 Volume="FullAuto-11078" Device="vDrive-FullFile-0" (/usr/local/bacula/volumes/FullFile-03) Catalog record for Volume "FullAuto-11078", Slot 9 successfully created. Requesting to mount VirtualDisk-FullFile ... 3906 File device ""vDrive-FullFile-0" (/usr/local/bacula/volumes/FullFile-03)" is always mounted. * Permissions on the directories, and the volume just created above: [dan@bacula-sd-03:~] $ ls -ld /usr/local/bacula /usr/local/bacula/volumes /usr/local/bacula/volumes/FullFile-03 drwxr-xr-x 4 bacula bacula 4 Oct 28 02:49 /usr/local/bacula drwxr-xr-x 6 bacula bacula 6 Oct 28 02:41 /usr/local/bacula/volumes drwxr-xr-x 2 bacula bacula 125 Dec 2 13:12 /usr/local/bacula/volumes/FullFile-03 If I : * wait until I get the "Please use the "label" command to create a new Volume for" message * edit pools.conf and maxvols = numvols + 2 * issue a reload command within bconsole * wait a bit I will see two messages like the above: ERR=No such file or directory I am not sure if this is related to the bacula-sd configuration or not, but I definitely suspect it is something unique to what I am doing. I will post that next. _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users