Re: [Bacula-users] vchanger 1.0.1 says "No slots in changer to scan"
2016-05-06 07:41:10
On 5/6/2016 3:07 AM, Pann Tolk wrote:
Hi Josh,
Udev expects any scripts launched by udev rules to execute quickly
and not cause delays, therefore the vchanger-launch-mount.sh script
launched by udev simply causes the
/usr/libexec/vchanger/vchanger-mount-uuid.sh script to be invoked as
a background process and then terminates. So a success simply means
that vchanger-launch-maount.sh successfully invoked
vchanger-mount-uuid.sh in a background process, not that it mounted
successfully.
The default mountdir is /mnt. To mount under say /mnt/vchanger it is
necessary to set MOUNTDIR=/mnt/vchanger in /etc/sysconfig/vchanger.
Alternatively, you can use a line like
UUID=1fde15be-83a4-4b67-accc-378d5fa10ea7
/any/existing/directory/name ext4
defaults,rw,relatime,data="" 0 0
in /etc/fstab to cause vchanger-mount-uuid.sh to mount it wherever
you like. When specified as magazine=uuid:, vchanger will lookup the
mountpoint using libudev and so doesn't really care where it gets
mounted. When using magazine=/some/static/path, it must be mounted
at the specified path.
You can umount the partition and then run vchanger-mount-uuid.sh (as
root) with the uuid as its only parameter to see what it does.
Unfortunately, the script is very simple and doesn't provide
logging.
No. /usr/libexec/vchanger/vchanger-mount-uuid.sh does. If mount info
for the partition is not specified by uuid in /etc/fstab, then it
mounts it at $MOUNTDIR/$1, where $1 is the filesystem UUID. So you
can use mount | grep 1fde15be-83a4-4b67-accc-378d5fa10ea7
to find it.
So vchanger is working properly when run as root. What does it do
when you run that same command as user bacula:tape? Are you sure
bacula-sd is running as user bacula:tape? vchanger must run as the
same user as bacula-sd. It could still be a permissions issue. You
can set 'log level = 7' and 'logfile = /path/to/logfile' in
vchanger.conf to debug vchanger, but you must run it as user
bacula:tape to debug if it is a permissions issue.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|