-
June 6th, 2011, 12:25 PM
#1
chg-disk, NFS, and state file lock
Hello all,
I've been wrestling with a chg-disk taper on a Scale Computing NAS device. As far as I can tell from their documentation, they don't support NFS locking at all. All attempts to flush to that taper yields:
ERROR taper no-tape error [Error locking '<path to vtapes>/state']
WARNING driver Taper error: "Error locking '<path to vtapes>/state'"
in the log. To hack around this, I changed Amanda/Changer/disk.pm to use:
state_filename => "/var/lock/amanda/state-" . $config->{name},
instead of:
state_filename => "$dir/state",
But this feels very kludgy, and won't work with a possible secondary amanda server. If NFS locking is unavailable for a vtape, what would be the reasonable behavior? Sendmail style dotlocking an option? Thanks.
-
October 4th, 2013, 04:37 PM
#2
The location of the state file for a chg-disk taper can now simply be specified with the changerfile parameter in the changer definition, ie.:
define changer "local_vtapes" {
tpchanger "chg-disk:/mnt/vtapes/Daily"
changerfile "/var/lib/amanda/Daily/state"
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules