On Tuesday 09 February 2010 18:08:21 Thomas Mueller wrote:
> Am Tue, 09 Feb 2010 17:54:41 +0100 schrieb Kern Sibbald:
> > Hello,
> >
> > I don't quite understand this. Perhaps you don't realize that the next
> > statement after setting your variables is to source mtx-changer.conf,
> > which is supposed to set all those variables appropriately.
>
> this file exists but was empty.
>
> ok, could be that this is a packaging issue when it's not supposed to be
> empty.
No, it definitely should not be empty. If it is empty, you are missing very
important code that sets up the autochanger for your system.
> (forward ported debian package).
If it is missing in their package, would you please submit a bug report to
Debian -- this is pretty serious.
> Sorry for the noise then.
I don't consider it noise -- you have a real problem.
>
> altough maybe it would nice to have the defaults section to know what
> would have been the defaults? :)
They are in mtx-changer.conf and you can easily look at it and change it, then
the next time you upgrade, your changes will not be wiped out as will be the
case if you modify mtx-changer directly, because mtx-changer is overwritten
on every install.
Best regards,
Kern
PS:
I attach the file you should have.
I am going to modify mtx-changer to fail immediately if the conf file does not
exist so that if this happens again, it will be more evident.
>
> - Thomas
>
>
> ---------------------------------------------------------------------------
>--- The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business Choose flexible plans and management services without long-term
> contracts Personal 24x7 support from experience hosting pros just a phone
> call away. http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Bacula-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
#
# This file is sourced by the mtx-changer script every time it runs.
# You can put your site customization here, and when you do an
# upgrade, the process should not modify this file. Thus you
# preserve your mtx-changer configuration.
#
# Set to 1 if you want to do offline before unload
offline=0
# Set to amount of time in seconds to wait after an offline
offline_sleep=0
# Set to amount of time in seconds to wait after a load
load_sleep=0
# Set to 1 to do an inventory before a status. Not normally needed.
inventory=0
# If you have a VXA PacketLoader, it might display a different
# Storage Element line, so try setting the following to 1
vxa_packetloader=0
# Set to 1 if you want debug info written to a log
debug_log=0
# mt status output
# SunOS No Additional Sense
# FreeBSD Current Driver State: at rest.
# Linux ONLINE
# Note Debian has a different mt than the standard Linux version.
# When no tape is in the drive it waits 2 minutes.
# When a tape is in the drive, it prints user unfriendly output.
# Note, with Ubuntu Gusty (8.04), there are two versions of mt,
# so we attempt to figure out which one.
#
OS=`uname`
case ${OS} in
SunOS)
ready="No Additional Sense"
;;
FreeBSD)
ready="Current Driver State: at rest."
;;
Linux)
ready="ONLINE"
if test -f /etc/debian_version ; then
mt --version|grep "mt-st" >/dev/null 2>&1
if test $? -eq 1 ; then
ready="drive status"
fi
fi
;;
esac
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel