Bacula-users

Re: [Bacula-users] end_of_backup.sh

2008-10-02 12:29:36
Subject: Re: [Bacula-users] end_of_backup.sh
From: C M Reinehr <cmr AT amsent DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 2 Oct 2008 11:25:49 -0500
On Thu 02 October 2008 11:04, Craig White wrote:
> On Thu, 2008-10-02 at 10:34 -0500, C M Reinehr wrote:
> > Craig,
> >
> > On Thu 02 October 2008 09:56, Craig White wrote:
> > > Ran into a problem with the latest updates to CentOS 5. I have been
> > > running Bacula 2.0.3 on a few systems for over a year now. Now after
> > > the updates, the last job runs the script, 'end_of_backup.sh' which
> > > runs the following commands:
> > >
> > > mt rewind
> > > mt eject
> > >
> > > and at the end of the job, it returned this error
> > >
> > > AfterJob: /dev/tape: Inappropriate ioctl for device
> >
> > I don't use CentOS so I'm speculating here, but the mt command, as you
> > have it, is using the default tape device which, in this case, appears to
> > be /dev/tape. After the upgrade, is /dev/tape still linked to the correct
> > device, i.e. to /dev/nst0?
>
> ----
> I should have looked...it's curious to be sure.
>
> # ls -l /dev/tape
> total 0
> drwxr-xr-x 2 root root 60 Sep 29 21:02 by-id
>
> # ls -l /dev/tape/by-id/
> total 0
> lrwxrwxrwx 1 root root 10 Sep 29 21:02
> scsi-1SEAGATE_ULTRIUM06242-XXX_HR00X0A-nst -> ../../nst0
>
> and in checking on other systems, that seems to be consistent (/dev/tape
> not being a symbolic link at all but rather having a subdirectory of
> 'by-id' with the actual tape device being linked there.
>
> For now, I have given the bacula user the /bin/bash shell which does
> allow the user to execute sudo supported commands.
>
> Craig

Curious indeed. I've noticed this behavior with regard to /dev/disk, but not 
tape. (I have several Debian Stable/Etch servers.) The man page for mt 
indicates that the default device is established at compile time so, 
apparently, mt hasn't caught up with the new udev rules. I guess you'll just 
have to use the -f option to specify the device, unless there's another way 
to override the default tape device.

cmr
-- 
Debian 'Etch' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>