On 5 Jun 2006 at 12:30, Dan Langille wrote:
> On 5 Jun 2006 at 9:20, [EMAIL PROTECTED] wrote:
>
> >
> >
> > --- Ryan Novosielski <[EMAIL PROTECTED]> wrote:
> >
> > > On Mon, 5 Jun 2006, Dan Langille wrote:
> > >
> > > > How can a device have a mounted volume yet be waiting for media?
> > > >
> > > > Any ideas?
> > > >
> > > > I see this in my SD status:
> > > >
> > > > Device status:
> > > > Device "FileStorage" (/home/bacula/db) is not open or does not
> > > > exist. Device "DLT" (/dev/nsa0) is mounted with
> > > > Volume="DLT7000-JNY227" Pool="Default"
> > > > Device is BLOCKED waiting for media.
> > > > Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
> > > > Positioned at File=0 Block=0
> > > >
> > > > Strange... DLT is mounted, but the device is blocked waiting for
> > > > media. How can that be?
> > >
> > > Run a mount -- I suspect it is waiting for OTHER media than the
> > > tape you have in there currently.
> > >
> > I have this happen a lot. At least for me sometimes it requires me
> > to unmount my tape, reinsert it, wait till it stops loading and then
> > issue a mount. Other times only issuing a mount will work.
>
> Tried:
>
> *unmount storage=DLT
> Take the tape out of the DLT, and put it back in
> *mount storage=DLT
>
> Status output still contains this:
>
> Device status:
> Device "FileStorage" (/home/bacula/db) is not open or does not exist.
> Device "DLT" (/dev/nsa0) is mounted with Volume="DLT7000-JNY227"
> Pool="Default"
> Device is BLOCKED waiting for media.
> Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
> Positioned at File=0 Block=0
>
>
> I fear a restart of the SD is the only resort I have. But not yet...
> I can wait for further suggestions.
>
> thanks
After restarting, the status looks OK:
[EMAIL PROTECTED]:~] $ sudo /usr/local/etc/rc.d/bacula-sd.sh restart
Password:
Stopping bacula_sd.
Waiting for PIDS: 283.
Starting bacula_sd.
[EMAIL PROTECTED]:~] $ ps auwx | grep bacula-sd
bacula 27891 0.0 0.5 4632 2560 ?? DLs 3:14PM 0:00.01
/usr/local/sbin/bacula-sd -u bacula -g operator -v -c /usr/local/etc
[EMAIL PROTECTED]:~] $
Note the message I got when going into the console:
$ bconsole -c /usr/local/etc/bconsole.conf
Connecting to Director bacula.unixathome.org:9101
1000 OK: bacula-dir Version: 1.38.8 (14 April 2006)
Enter a period to cancel a command.
*mes
05-Jun 15:14 undef-fd: undef.2006-06-05_00.55.00 Fatal error:
job.c:1599 Comm error with SD. bad response to Append Data.
ERR=Broken pipe
05-Jun 15:14 bacula-dir: undef.2006-06-05_00.55.00 Error: bnet.c:426
Write error sending 280 bytes to Storage
daemon:bacula.unixathome.org:9103: ERR=Broken pipe
05-Jun 15:14 bacula-dir: undef.2006-06-05_00.55.00 Error: Bacula
1.38.8 (14Apr06): 05-Jun-2006 15:14:31
JobId: 9265
Job: undef.2006-06-05_00.55.00
Backup Level: Incremental, since=2006-06-04 00:55:03
Client: "undef-fd" i386-portbld-
freebsd5.4,freebsd,5.4-STABLE
FileSet: "undef files" 2006-01-29 03:18:14
Pool: "Default"
Storage: "DLT"
Scheduled time: 05-Jun-2006 00:55:00
Start time: 05-Jun-2006 09:46:24
End time: 05-Jun-2006 15:14:31
Elapsed time: 5 hours 28 mins 7 secs
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
Volume name(s):
Volume Session Id: 182
Volume Session Time: 1148331062
Last Volume Bytes: 1 (1 B)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: Error
SD termination status: Error
Termination: *** Backup Error ***
05-Jun 15:14 bacula-dir: Start Backup JobId 9266, Job=xeon.2006-06-
05_00.55.01
05-Jun 15:14 polo-sd: Wrote label to prelabeled Volume "DLT7000-
JNY227" on device "DLT" (/dev/nsa0)
That time, 15:14, is when I restarted bacula-sd. So it's only
writing the label then... interesting.
Status storage now says:
Device status:
Device "FileStorage" (/home/bacula/db) is not open or does not exist.
Device "DLT" (/dev/nsa0) is mounted with Volume="DLT7000-JNY227"
Pool="Default"
Total Bytes=601,380,862 Blocks=9,322 Bytes/block=64,511
Positioned at File=0 Block=9,323
That looks better. And the numbers are going up too. That means
jobs are now progressing. In fact, the first job just finished. I
may have to rerun some jobs, but I think things should be cause up
within a few hours.
cheers
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users