Chg-disk: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
mNo edit summary
(be specific about what's deprecated)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{deprecated|This changer, with its separate changerfile, is deprecated; see {{man|7|amanda-changers}}}}
Clone of the chg-zd-mtx, but modified to be applied on local directories instead of tapes. This changer emulates a robot that uses virtual tapes instead of real ones, where the virtual tapes are real directories on a hard disk.
Clone of the chg-zd-mtx, but modified to be applied on local directories instead of tapes. This changer emulates a robot that uses virtual tapes instead of real ones, where the virtual tapes are real directories on a hard disk.



Latest revision as of 18:55, 12 July 2010

Deprecated
This changer, with its separate changerfile, is deprecated; see amanda-changers(7)

Clone of the chg-zd-mtx, but modified to be applied on local directories instead of tapes. This changer emulates a robot that uses virtual tapes instead of real ones, where the virtual tapes are real directories on a hard disk.

The directory tree should be:

$slot_root_dir -|
                |- info
                |- data -> slot1/
                |- slot1/
                |- slot2/
                |- ...
                |- slotn/

Where "$slot_root_dir" appears in the tapedev as "file:$slot_root_dir", and "n" is the tapecycle parameter.

A plain VFS Device is given a directory $DIR, and stores dumps in $DIR/data. This changer uses a symlink to point $DIR/data to the requested slot -- a clever trick. As a result, it is not possible to manually point an application directly at a slot:

amrestore tape:$slot_root_dir/slot7      # DOESN'T WORK

instead, use amtape to "load" that slot:

amtape CONFIG slot 7

or set the symlink manually:

( cd $slot_root_dir; rm data; ln -s slot7 data )

See amanda-changers(7) for more information about this and other Amanda changer scripts.