> 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

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org




------------------------------------------------------------------------------
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

Reply via email to