Bacula-users

[Bacula-users] Labeling when using native virtual autochanger

2015-08-24 17:29:07
Subject: [Bacula-users] Labeling when using native virtual autochanger
From: Dan Langille <dan AT langille DOT org>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 24 Aug 2015 17:24:20 -0400
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users