Hello again, Have you noticed a device not found error in your bconsole messages"?
*mountThe defined Storage resources are: 1: CreyFile 2: CompaqStorageWorksTapeLibrarySelect Storage resource (1-2): 1Connecting to Storage daemon CreyFile at crey.int.unixathome.org:9103 ...Enter autochanger drive[0]: Enter autochanger slot: 3999 Device "VirtualDisk" not found or could not be opened. Best regards, Ana On Tue, Aug 25, 2015 at 8:00 AM, Ana Emília M. Arruda < emiliaarr...@gmail.com> wrote: > Hello Dan, > > I was unable to reproduce this. The only situation where I got the error: > > 24-Aug 01:45 bacula-dir JobId 215534: Created new Volume="DiffAuto-4861", > Pool="DiffFile", MediaType="File" in catalog. > 24-Aug 01:45 crey-sd JobId 215534: Warning: mount.c:212 Open of file > device "vDrive-1" (/usr/local/bacula/volumes) Volume "DiffAuto-4861" > failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/ > volumes/DiffAuto-4861,OPEN_READ_WRITE,0640): ERR=No such file or directory > > was when there was the file for the volume in the directory but the volume > did not exist in catalog. > > Tried to reproduce as bellow: > > 1) pool with maximum volumes = 5. > > 2) tried to run a job: > > 25-Aug 10:46 bacula-dir JobId 24: Start Backup JobId 24, > Job=BackupClient1.2015-08-25_10.46.14_11 > 25-Aug 10:46 bacula-dir JobId 24: Using Device "FileChgr1-Dev1" to write. > 25-Aug 10:46 bacula-sd JobId 24: Job BackupClient1.2015-08-25_10.46.14_11 > is waiting. Cannot find any appendable volumes. > Please use the "label" command to create a new Volume for: > Storage: "FileChgr1-Dev1" (/opt/bacula/disk) > Pool: File > Media type: File1 > > 3) increased the maximum volumes to 50 (updated conf, reload, list pool > bellow). > > *list pool=File > +--------+------+---------+---------+----------+-------------+ > | PoolId | Name | NumVols | MaxVols | PoolType | LabelFormat | > +--------+------+---------+---------+----------+-------------+ > | 2 | File | 5 | 50 | Backup | Vol- | > +--------+------+---------+---------+----------+-------------+ > > > 4) then tried a mount and everything goes fine (i didn't try a label > before mount command): > *mount > The defined Storage resources are: > 1: File1 > 2: File2 > Select Storage resource (1-2): 1 > 3001 OK mount requested. Device="FileChgr1-Dev1" (/opt/bacula/disk) > You have messages. > *m > 25-Aug 10:50 bacula-dir JobId 24: Created new Volume="Vol-0018", > Pool="File", MediaType="File1" in catalog. > 25-Aug 10:50 bacula-sd JobId 24: Labeled new Volume "Vol-0018" on file > device "FileChgr1-Dev1" (/opt/bacula/disk). > 25-Aug 10:50 bacula-sd JobId 24: Wrote label to prelabeled Volume > "Vol-0018" on file device "FileChgr1-Dev1" (/opt/bacula/disk) > 25-Aug 10:50 bacula-sd JobId 24: End of medium on Volume "Vol-0018" > Bytes=10,451,135 Blocks=162 at 25-Aug-2015 10:50. > 25-Aug 10:50 bacula-dir JobId 24: Created new Volume="Vol-0019", > Pool="File", MediaType="File1" in catalog. > 25-Aug 10:50 bacula-sd JobId 24: Labeled new Volume "Vol-0019" on file > device "FileChgr1-Dev1" (/opt/bacula/disk). > > Environment used for the tests: > > Linux bacula 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 > UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > Bacula 7.0.5 > > Best regards, > Ana > > > On Mon, Aug 24, 2015 at 6:24 PM, Dan Langille <d...@langille.org> wrote: > >> I recently started using the Virtual Autochanger as described in 'Best >> Practices for Disk Based Backup' [1] >> >> It is working for me, but I encountered a problem with the audo-label >> process. >> >> My bacula-sd.conf and the full transcript of the logging problem is at: >> >> https://gist.github.com/dlangille/ef858722b30ae182b40f >> >> Ideas? >> >> A job stalled with: >> >> 24-Aug 01:43 crey-sd JobId 215534: Job dent.2015-08-24_00.58.35_01 is >> waiting. Cannot find any appendable volumes. >> >> I amended the pool definition to allow more Volumes, then went back to >> bconsole, expecting a mount command to create & label a new volume. >> >> >> *mount >> The defined Storage resources are: >> 1: CreyFile >> 2: CompaqStorageWorksTapeLibrary >> Select Storage resource (1-2): 1 >> Connecting to Storage daemon CreyFile at crey.int.unixathome.org:9103 ... >> Enter autochanger drive[0]: >> Enter autochanger slot: >> 3999 Device "VirtualDisk" not found or could not be opened. >> * >> >> Then I tried label: >> >> >> *label >> The defined Storage resources are: >> 1: CreyFile >> 2: CompaqStorageWorksTapeLibrary >> Select Storage resource (1-2): 1 >> Enter autochanger drive[0]: 2 >> Enter new Volume name: . >> You have messages. >> *m >> 24-Aug 01:45 bacula-dir JobId 215534: Created new Volume="DiffAuto-4861", >> Pool="DiffFile", MediaType="File" in catalog. >> 24-Aug 01:45 crey-sd JobId 215534: Warning: mount.c:212 Open of file >> device "vDrive-1" (/usr/local/bacula/volumes) Volume "DiffAuto-4861" >> failed: ERR=file_dev.c:172 Could not >> open(/usr/local/bacula/volumes/DiffAuto-4861,OPEN_READ_WRITE,0640): ERR=No >> such file or directory >> >> 24-Aug 01:45 crey-sd JobId 215534: Warning: mount.c:212 Open of file >> device "vDrive-1" (/usr/local/bacula/volumes) Volume "DiffAuto-4861" >> failed: ERR=file_dev.c:172 Could not >> open(/usr/local/bacula/volumes/DiffAuto-4861,OPEN_READ_WRITE,0640): ERR=No >> such file or directory >> >> 24-Aug 01:45 crey-sd JobId 215534: Warning: mount.c:212 Open of file >> device "vDrive-1" (/usr/local/bacula/volumes) Volume "DiffAuto-4861" >> failed: ERR=file_dev.c:172 Could not >> open(/usr/local/bacula/volumes/DiffAuto-4861,OPEN_READ_WRITE,0640): ERR=No >> such file or directory >> >> 24-Aug 01:45 crey-sd JobId 215534: Warning: mount.c:212 Open of file >> device "vDrive-1" (/usr/local/bacula/volumes) Volume "DiffAuto-4861" >> failed: ERR=file_dev.c:172 Could not >> open(/usr/local/bacula/volumes/DiffAuto-4861,OPEN_READ_WRITE,0640): ERR=No >> such file or directory >> >> *m >> 24-Aug 01:45 crey-sd JobId 215534: Warning: mount.c:212 Open of file >> device "vDrive-1" (/usr/local/bacula/volumes) Volume "DiffAuto-4861" >> failed: ERR=file_dev.c:172 Could not >> open(/usr/local/bacula/volumes/DiffAuto-4861,OPEN_READ_WRITE,0640): ERR=No >> such file or directory >> >> Eventually, I again tried mount: >> >> >> mount >> The defined Storage resources are: >> 1: CreyFile >> 2: CompaqStorageWorksTapeLibrary >> Select Storage resource (1-2): 1 >> Enter autochanger drive[0]: >> Enter autochanger slot: >> 3999 Device "VirtualDisk" not found or could not be opened. >> You have messages. >> *m >> 24-Aug 01:54 crey-sd JobId 215534: Wrote label to prelabeled Volume >> "DiffAuto-4861" on file device "vDrive-1" (/usr/local/bacula/volumes) >> 24-Aug 01:54 crey-sd JobId 215534: New volume "DiffAuto-4861" mounted on >> device "vDrive-1" (/usr/local/bacula/volumes) at 24-Aug-2015 01:54. >> * >> >> >> [1] - http://blog.bacula.org/whitepapers/CommunityDiskBackup.pdf >> — >> Dan Langille >> http://langille.org/ >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > >
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users