Re: [Bacula-users] Please mount volume...but volume is already mounted.

2007-07-18 Thread Christian Kluin

@Brian:

We had the same problem (seems to be a new bug in 2.0.x release. We 
didnĀ“t have this problem with 1.38). As we have a 24/7 hour business we 
looked for a time slice with small network usage. This slice was found at

midnight. As the it-center sleeps at this time :-) the bacula director
has to work in any case. We wrote a script that helped us to mount the 
tape when automount on fails.



##script begin
#!/bin/bash

BCON=/usr/local/bacula/sbin/bcon

bac=$($BCON  EOF
stat dir
q
EOF
)

isrunning=$(echo $bac | grep -o -i -e 'is waiting for a mount request')

if [ -n $isrunning ]
then
$BCON  EOF2
mount
q
EOF2
mail -s Bacula remounted [EMAIL PROTECTED] TXT
$(date)
TXT
else
mail -s Bacula is running without intervention [EMAIL PROTECTED] TXT2
$(date)
TXT2
fi

##script end

bcon is a convenience script that calls bacula console with appropriate 
the apropriate configurationfile.



Hope that helps.

Chris-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Please mount volume...but volume is already mounted.

2007-07-11 Thread Brian Debelius
It happened again today.  This time I unmounted the tape, and mounted it 
again

Brian Debelius wrote:
 elkton-dir Version: 2.1.22 (26 June 2007) Linux Cross-compile Win32

 Hey,
 I am still getting this mounting problem.  Bacula loads the correct 
 tape, but then says that I need to mount it.  After which I release, and 
 mount the same tape, and it then proceed to backup.

 brian-


 10-Jul 09:28 elkton-dir: Recycled volume A009
 10-Jul 09:28 elkton-sd: 3307 Issuing autochanger unload slot 3, drive 
 0 command.
 10-Jul 09:29 elkton-sd: 3304 Issuing autochanger load slot 4, drive 0 
 command.
 10-Jul 09:31 elkton-sd: 3305 Autochanger load slot 4, drive 0, status 
 is OK.
 10-Jul 09:31 elkton-sd: 3301 Issuing autochanger loaded? drive 0 command.
 10-Jul 09:31 elkton-sd: 3302 Autochanger loaded? drive 0, result is 
 Slot 4.
 10-Jul 09:31 elkton-sd: Please mount Volume A009 or label a new 
 one for:
 Job:  Elkton_D-drive.2007-07-10_00.01.25
 Storage:  VXA-172 (Tape0)
 Pool: Tape-daily
 Media type:   X10
 *update slots
 Automatically selected Catalog: MyCatalog
 Using Catalog MyCatalog
 The defined Storage resources are:
  1: Disk0
  2: Disk1
  3: Tape
 Select Storage resource (1-3): 3
 Connecting to Storage daemon Tape at elkton.intelesys.local:9103 ...
 3306 Issuing autochanger slots command.
 Device Packetloader0 has 10 slots.
 Connecting to Storage daemon Tape at elkton.intelesys.local:9103 ...
 3306 Issuing autochanger list command.
 Catalog record for Volume A004 updated to reference slot 1.*release
 The defined Storage resources are:
  1: Disk0
  2: Disk1
  3: Tape
 Select Storage resource (1-3): 3
 3307 Issuing autochanger unload slot 4, drive 0 command.
 3922 Device VXA-172 (Tape0) waiting for sysop.
 *mount
 The defined Storage resources are:
  1: Disk0
  2: Disk1
  3: Tape
 Select Storage resource (1-3): 3
 Enter autochanger slot: 4
 3001 OK mount. Device=VXA-172 (Tape0)
 Catalog record for Volume A003 updated to reference slot 2.
 Catalog record for Volume A008 updated to reference slot 3.
 Catalog record for Volume B006 updated to reference slot 5.
 Catalog record for Volume A001 updated to reference slot 6.
 Catalog record for Volume CLNA0002 updated to reference slot 10.
 Catalog record for Volume A009 updated to reference slot 4.
 10-Jul 10:50 elkton-sd: 3301 Issuing autochanger loaded? drive 0 command.
 10-Jul 10:50 elkton-sd: 3302 Autochanger loaded? drive 0, result: 
 nothing loaded.
 10-Jul 10:50 elkton-sd: 3304 Issuing autochanger load slot 4, drive 0 
 command.
 10-Jul 10:51 elkton-sd: 3305 Autochanger load slot 4, drive 0, status 
 is OK.
 10-Jul 10:51 elkton-sd: 3301 Issuing autochanger loaded? drive 0 command.
 10-Jul 10:51 elkton-sd: 3302 Autochanger loaded? drive 0, result is 
 Slot 4.
 10-Jul 10:51 elkton-sd: Recycled volume A009 on device VXA-172 
 (Tape0), all previous data lost.
 10-Jul 10:51 elkton-sd: New volume A009 mounted on device 
 VXA-172 (Tape0) at 10-Jul-2007 10:51.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Please mount volume...but volume is already mounted.

2007-07-11 Thread John Drescher

On 7/11/07, Brian Debelius [EMAIL PROTECTED] wrote:


It happened again today.  This time I unmounted the tape, and mounted it
again



I have seen this happen in the past and usually the solution is to just do a
mount on the drive that it is asking for.

John
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Please mount volume...but volume is already mounted.

2007-07-10 Thread mikee
On Tue, 10 Jul 2007, Brian Debelius might have said:

 elkton-dir Version: 2.1.22 (26 June 2007) Linux Cross-compile Win32
 
 Hey,
 I am still getting this mounting problem.  Bacula loads the correct 
 tape, but then says that I need to mount it.  After which I release, and 
 mount the same tape, and it then proceed to backup.
 
 brian-

How about umounting the mounting the volume?

Mike

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users