PDA

View Full Version : amlabel permission problem...



protloc0
June 26th, 2007, 09:45 PM
Hello guys, i have an issue, hope somebody could help me.

When im labeling my slots, i get this...

bash-3.1$ amlabel DailySet1 DailySet1-01 slot 1
changer: got exit: 2 str: /usr/lib/amanda/chg-disk: need 'rwx' access to '/usr/adm/amanda'
amlabel: could not load slot "1": need 'rwx' access to '/usr/adm/amanda'
amlabel: could not load slot "1": need 'rwx' access to '/usr/adm/amanda'
amlabel: pid 6586 finish time Tue Jun 26 18:15:34 2007
bash-3.1$ ls -lha /usr/lib/amanda/


there is no such '/usr/adm/amanda' , what else can i do ?

** im using amanda 2.4.4 as a client(suse linux Enterprise Server 9), and as a Server amanda 2.5.0 (rhel5).

Thanks in advance! :)

martineau
June 27th, 2007, 02:49 AM
You configured your 'changerfile' to be in this directory.
You must create the directory and put your changer config file there,
or change your changerfile setting.

protloc0
June 27th, 2007, 08:16 AM
mm. i didnt get it. Im newbie :(

# At most one changerfile entry must be defined; select the most
# appropriate one for your configuration. If you select man-changer,
# keep the first one; if you decide not to use a tape changer, you may
# comment them all out.

runtapes 1 # number of tapes to be used in a single run of amdump
tpchanger "chg-disk" # the tape-changer glue script
rawtapedev "/dev/null" # the raw device to be used (ftape only)
changerfile "/etc/amanda/DailySet1/changer"
#changerfile "/etc/amanda/DailySet1/changer-status"
#changerfile "/etc/amanda/DailySet1/changer.conf"
changerdev "/dev/null"

maxdumpsize -1 # Maximum number of bytes the planner will schedule
# for a run (default: runtapes * tape_length).
tapedev "file://space/vtapes/DailySet1/slots"

tapetype HARDDISK # what kind of tape it is (see tapetypes below)
labelstr "^DailySet1-[0-9][0-9]*$" # label constraint regex: all tapes must match

define tapetype HARDDISK {
length 100000 mbytes
}



that what i have in my amanda.conf




Thanks martineau

:)

linuxtrek
January 3rd, 2008, 11:12 PM
Please correct me if this is wrong. changerfile should be:

changerfile "/etc/amanda/DailySet1/tapelist"

My hint is the command from the whitepaper:

-bash-3.00$ touch /etc/amanda/DailySet1/tapelist

dustin
January 4th, 2008, 05:50 AM
close -- it should be /etc/amanda/DailySet1/changerfile.

'tapelist' is the tapelist :)