amcheckdump and a tape changer
Hello! I'm using amanda 3.3 with a tape changer. It works as expected. There is only one problem with amcheckdump. On startup amcheckdumps tells me, which tape is needed and stops then, waiting for "enter". Is it possible to let amcheckdump load the correct tape? Many thanks! Matthias
tape changer failure -- amanda-3.3.3
Hello, System OS:CentOS release 5.9 (Final) Amanda:(brought to you by Amanda version 3.3.3) Tape Library: SUN SL500 with 3 LT05 drives/90 slots This setup works great! However, if AMANDA attempts to change a tape and I have the CAP door open, it will fail with: These dumps were to tapes AMADSet5-30, AMADSet5-31, AMADSet5-32, AMADSet5-33. The next 7 tapes Amanda expects to use are: 3 new tapes, AMADSet5-30, AMADSet5-31, AMADSet5-32, AMADSet 5-33. The next 3 new tapes already labelled are: AMADSet5-29, AMADSet5-34, AMADSet5-35 FAILURE DUMP SUMMARY: taper: FATAL no device is available to check the datapath at /usr/lib/perl5/site_perl/5.8.8/Amanda/Ta per/Scribe.pm line 593 node36bk.rtpnc.epa.gov /5w lev 0 FAILED [data write: Connection reset by peer] node36bk.rtpnc.epa.gov /5w lev 0 partial taper: reservation belongs to another instance Is there some setting I can use to tell AMANDA to wait until the loader is back in service? AMANDA report and amanda.conf(partial) files are attached. Thanks in advance...have a great day! ** Leslie(Pete) Boyd Contractor: The rich man isn't the one who has the most, Vision Technoligies but the one who needs the least. Senior Systems Engineer US EPA Rm. E460--- IN GOD WE TRUST -- 919/541-1438 ** [amanda@sl501 tmp]$ more *5.rpt Hostname: sl501.rtpnc.epa.gov Org : US EPA(NERL/AMAD Config : AMADSet5 Date: March 28, 2013 These dumps were to tapes AMADSet5-30, AMADSet5-31, AMADSet5-32, AMADSet5-33. The next 7 tapes Amanda expects to use are: 3 new tapes, AMADSet5-30, AMADSet5-31, AMADSet5-32, AMADSet 5-33. The next 3 new tapes already labelled are: AMADSet5-29, AMADSet5-34, AMADSet5-35 FAILURE DUMP SUMMARY: taper: FATAL no device is available to check the datapath at /usr/lib/perl5/site_perl/5.8.8/Amanda/Ta per/Scribe.pm line 593 node36bk.rtpnc.epa.gov /5w lev 0 FAILED [data write: Connection reset by peer] node36bk.rtpnc.epa.gov /5w lev 0 partial taper: reservation belongs to another instance STATISTICS: Total Full Incr. Level:# Estimate Time (hrs:min) 0:01 Run Time (hrs:min) 27:54 Dump Time (hrs:min) 0:00 0:00 0:00 Output Size (meg) 5727914.1 5727914.10.0 Original Size (meg) 0.00.00.0 Avg Compressed Size (%) -- -- -- DLEs Dumped0 0 0 Avg Dump Rate (k/s) -- -- -- Tape Time (hrs:min)27:53 27:53 0:00 Tape Size (meg)5727914.1 5727914.10.0 Tape Used (%) 396.1 396.10.0 DLEs Taped 1 1 0 Parts Taped4 4 0 Avg Tp Write Rate (k/s) 58427.758427.7-- USAGE BY TAPE: Label Time Size % DLEs Parts AMADSet5-30 6:59 1451455424K 98.0 1 1 AMADSet5-31 7:04 1466921472K 99.1 0 1 AMADSet5-32 6:50 1466209792K 99.0 0 1 AMADSet5-33 6:54 1480797312K 100.0 0 1 FAILED DUMP DETAILS: /-- node36bk.rtpnc.epa.gov /5w lev 0 FAILED [data write: Connection reset by peer] sendbackup: start [node36bk.rtpnc.epa.gov:/5w level 0] sendbackup: info BACKUP=/bin/tar sendbackup: info RECOVER_CMD=/bin/tar -xpGf - ... sendbackup: info end \ NOTES: planner: Adding new disk node36bk.rtpnc.epa.gov:/5w. driver: Taper protocol error driver: going into degraded mode because of taper component error. taper: Slot 39 with label AMADSet5-30 is usable taper: tape AMADSet5-30 kb 1451455424 fm 1 [OK] taper: Slot 40 with label AMADSet5-31 is usable taper: tape AMADSet5-31 kb 1466921472 fm 1 [OK] taper: Slot 41 with label AMADSet5-32 is usable taper: tape AMADSet5-32 kb 1466209792 fm 1 [OK] taper: Slot 42 with label AMADSet5-33 is usable taper: tape AMADSet5-33 kb 1480797312 fm 1 [OK] DUMP SUMMARY: DUMPER STATS TAPER STATS HOSTNAME DISKL ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SSKB/s -- node36bk.rtpnc.epa.gov /5w 0 5865384000 --PARTIAL 1673:0 58427.7 PARTIAL (brought to you by Amanda version 3.3.3) [amanda@sl501 tmp]$ define changer hp-robot { tapedev chg-robot:/dev/sg10 property use-slots 38-44 #property tape-device 0=tape:/dev/nst0 #property append tape-device 1=tape:/dev/nst1 property append tape-device 2=tape:/dev/nst2 #property load-poll 20s poll 15s until 120s #device-property BLOCK_SIZE 512k }
Re: still problems with manual tape changer using tapespan
On 02/20/2013 07:07 AM, Jean-Louis Martineau wrote: On 02/20/2013 06:59 AM, Karsten Fuhrmann wrote: Hello Jean-Louis, should i apply the path on trunk or release 3.3.3? The patch apply to trunk and the 3-3 branch, I haven't tested if apply cleanly on the release 3.3.3 but I think it should. Karsten, Let me know if the patch works for you. Jean-Louis
Re: still problems with manual tape changer using tapespan
On 02/20/2013 06:59 AM, Karsten Fuhrmann wrote: Hello Jean-Louis, should i apply the path on trunk or release 3.3.3? The patch apply to trunk and the 3-3 branch, I haven't tested if apply cleanly on the release 3.3.3 but I think it should. Jean-Louis
Re: still problems with manual tape changer using tapespan
Hello Karsten, Can you try the attached patch? Jean-Louis On 02/18/2013 06:57 AM, Karsten Fuhrmann wrote: I still can't get tapespan to work, with my single tape drive setup. I added interactivity and tapescan to amanda.conf. And updated amanda to version 3.3.3 Now even when i load the right tape into the tapedrive, when i run amcheck, i got the following message by email: No acceptable volumes found Insert volume labeled 'cf-daily-lto8' in chg-single:tape:/dev/nsa0 or write the name of a new changer in '/tmp/email_input' or write 'abort' in the file to abort the scan. if i write 'abort' into /tmp/email_input it aborts. but if i just touch /tmp/email_input to tell amanda that the proper tape is inserted, i get the above email again. What is going on here? My shell session looks like this: % sudo -u amanda amcheck cf-daily-lto Amanda Tape Server Host Check - WARNING: holding disk /mnt/amanda-holding: only 4 GB free, using nothing WARNING: Not enough free space specified in amanda.conf slot 0: volume 'cf-daily-lto8' slot 0: volume 'cf-daily-lto8' The second 'slot 0: volume 'cf-daily-lto8' comes after i touched the /tmp/email_input file. Here are the relevant parts of my amanda.conf: define taperscan le_scan { comment bla plugin lexical } define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email taperscan le_scan tpchanger chg-single:tape:/dev/nsa0 Please help me, this thing is killing me. On 14.02.2013, at 18:13, Karsten Fuhrmann wrote: Hi, now i added this: define taperscan oldest { comment bla plugin oldest } taperscan oldest into my amanda.conf. Now i got an email to change the tape. But then i am stuck, amanda does not notice the newly inserted tape, and also does not react on the file /tmp/email_input i created with touch. It just waits forever. What am i missing? On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis Greetings, Karsten Fuhrmann System Administrator Rothkirch Cartoon-Film GmbH Hasenheide. 54 D-10967 Berlin phone +49 30 698084-109 fax +49 30 698084-29 mobile +49 176 49118462 skype: parceval3000 AIM: in...@mac.com Jabber: parce...@jabber.org Greetings, Karsten Fuhrmann diff --git a/perl/Amanda/Changer/single.pm b/perl/Amanda/Changer/single.pm index 8417d02..2e51062 100644 --- a/perl/Amanda/Changer/single.pm +++ b/perl/Amanda/Changer/single.pm @@ -66,6 +66,11 @@ sub new { config = $config, device_name = $device_name, reserved = 0, + state = undef, + device_status = undef, + f_type = undef, + label = undef, + 'scan-require-update' = 1, }; bless ($self, $class); @@ -82,9 +87,18 @@ sub load { confess no res_cb supplied unless (exists $params{'res_cb'}); if ($self-{'reserved'}) { - return $self-make_error(failed, $params{'res_cb'}, - reason = volinuse, - message = '$self-{device_name}' is already reserved); + if (($self-{'label'} and $params{'label'} and + $self-{'label'} eq $params{'label'}) or + ($self-{'slot'} and $params{'slot'} and + $self-{'slot'} eq $params{'slot'})) { + return $self-make_error(failed, $params{'res_cb'}, + reason = volinuse, + message = '$self-{device_name}' is already reserved); + } else { + return $self-make_error(failed, $params{'res_cb'}, + reason = driveinuse, + message = '$self-{device_name}' is already reserved); + } } if (keys %{$params{'except_slots'}} 0) { @@ -94,6 +108,10 @@ sub load { } my $device = Amanda::Device-new($self-{'device_name'}); +$self-{'state'} = Amanda::Changer::SLOT_FULL; +$self-{'device_status'} = $device-status(); +$self-{'f_type'} = undef; +$self-{'label'} = undef; if ($device-status() != $DEVICE_STATUS_SUCCESS) { return $self-make_error(fatal, $params{'res_cb'}, message = error opening device '$self-{device_name}': . $device-error_or_status()); @@ -109,6 +127,14 @@ sub load { my $res = Amanda::Changer::single::Reservation-new($self, $device); $device-read_label(); +$self-{'state'} = Amanda::Changer::SLOT_FULL; +$self-{'device_status'} = $device-status; +if
still problems with manual tape changer using tapespan
I still can't get tapespan to work, with my single tape drive setup. I added interactivity and tapescan to amanda.conf. And updated amanda to version 3.3.3 Now even when i load the right tape into the tapedrive, when i run amcheck, i got the following message by email: No acceptable volumes found Insert volume labeled 'cf-daily-lto8' in chg-single:tape:/dev/nsa0 or write the name of a new changer in '/tmp/email_input' or write 'abort' in the file to abort the scan. if i write 'abort' into /tmp/email_input it aborts. but if i just touch /tmp/email_input to tell amanda that the proper tape is inserted, i get the above email again. What is going on here? My shell session looks like this: % sudo -u amanda amcheck cf-daily-lto Amanda Tape Server Host Check - WARNING: holding disk /mnt/amanda-holding: only 4 GB free, using nothing WARNING: Not enough free space specified in amanda.conf slot 0: volume 'cf-daily-lto8' slot 0: volume 'cf-daily-lto8' The second 'slot 0: volume 'cf-daily-lto8' comes after i touched the /tmp/email_input file. Here are the relevant parts of my amanda.conf: define taperscan le_scan { comment bla plugin lexical } define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email taperscan le_scan tpchanger chg-single:tape:/dev/nsa0 Please help me, this thing is killing me. On 14.02.2013, at 18:13, Karsten Fuhrmann wrote: Hi, now i added this: define taperscan oldest { comment bla plugin oldest } taperscan oldest into my amanda.conf. Now i got an email to change the tape. But then i am stuck, amanda does not notice the newly inserted tape, and also does not react on the file /tmp/email_input i created with touch. It just waits forever. What am i missing? On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis Greetings, Karsten Fuhrmann System Administrator Rothkirch Cartoon-Film GmbH Hasenheide. 54 D-10967 Berlin phone +49 30 698084-109 fax +49 30 698084-29 mobile +49 176 49118462 skype: parceval3000 AIM: in...@mac.com Jabber: parce...@jabber.org Greetings, Karsten Fuhrmann
Re: still problems with manual tape changer using tapespan
Karsten, Sorry to not replying sooner. I found a bug and i'm working on a fix, it should be ready this week. Jean-Louis On 02/18/2013 06:57 AM, Karsten Fuhrmann wrote: I still can't get tapespan to work, with my single tape drive setup. I added interactivity and tapescan to amanda.conf. And updated amanda to version 3.3.3 Now even when i load the right tape into the tapedrive, when i run amcheck, i got the following message by email: No acceptable volumes found Insert volume labeled 'cf-daily-lto8' in chg-single:tape:/dev/nsa0 or write the name of a new changer in '/tmp/email_input' or write 'abort' in the file to abort the scan. if i write 'abort' into /tmp/email_input it aborts. but if i just touch /tmp/email_input to tell amanda that the proper tape is inserted, i get the above email again. What is going on here? My shell session looks like this: % sudo -u amanda amcheck cf-daily-lto Amanda Tape Server Host Check - WARNING: holding disk /mnt/amanda-holding: only 4 GB free, using nothing WARNING: Not enough free space specified in amanda.conf slot 0: volume 'cf-daily-lto8' slot 0: volume 'cf-daily-lto8' The second 'slot 0: volume 'cf-daily-lto8' comes after i touched the /tmp/email_input file. Here are the relevant parts of my amanda.conf: define taperscan le_scan { comment bla plugin lexical } define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email taperscan le_scan tpchanger chg-single:tape:/dev/nsa0 Please help me, this thing is killing me. On 14.02.2013, at 18:13, Karsten Fuhrmann wrote: Hi, now i added this: define taperscan oldest { comment bla plugin oldest } taperscan oldest into my amanda.conf. Now i got an email to change the tape. But then i am stuck, amanda does not notice the newly inserted tape, and also does not react on the file /tmp/email_input i created with touch. It just waits forever. What am i missing? On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis Greetings, Karsten Fuhrmann System Administrator Rothkirch Cartoon-Film GmbH Hasenheide. 54 D-10967 Berlin phone +49 30 698084-109 fax +49 30 698084-29 mobile +49 176 49118462 skype: parceval3000 AIM: in...@mac.com Jabber: parce...@jabber.org Greetings, Karsten Fuhrmann
Re: problem with manual tape changer
Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email On 12.02.2013, at 16:19, Jean-Louis Martineau wrote: Karsten, You must set an interactivity (man amanda-interactivity): define interactivity email { comment interactivity email plugin email property mailto root property resend_delay 0 } interactivity email Jean-Louis On 02/12/2013 09:06 AM, Karsten Fuhrmann wrote: Hello, i have a problem with the manual tape changer configuration. I set runtapes 2 and tpchanger chg-single:tape:/dev/nsa0 But still after amanda fills up the first tape, amanda quits with a 'partial taper: No acceptable volumes found' message. What i want is amanda to send my an email that i should load the next tape and then continue with the backup. I am using amanda 3.3.0 in a cronjob with an LTO4-Ultrium tape drive. Here my Amanda.conf: mailto administration # space separated list of operators at your site dumpuser amanda# the user to run dumps under displayunit G # Display filesizes in megabytes tpchanger chg-single:tape:/dev/nsa0 inparallel 1 # maximum dumpers that will run in parallel (max 63) maxdumps 1 flush-threshold-dumped 50# Start taping when 90% of tapesize Capacity reside on HD flush-threshold-scheduled 50 device-property LEOM FALSE dumporder T# specify the priority order of each dumper netusage 12 Kbps# maximum net bandwidth for Amanda, in KB per sec taperalgo first dumpcycle 21 # the number of days in the normal dump cycle runspercycle 15 # the number of amdump runs in dumpcycle days tapecycle 21 tapes # the number of tapes in rotation bumpsize 10 Gb # minimum savings (threshold) to bump level 1 - 2 bumpdays 1 # minimum days at each level bumpmult 2 # threshold = bumpsize * bumpmult^(level-1) etimeout 6000# number of seconds per filesystem for estimates. dtimeout 1800# number of idle seconds before a dump is aborted. ctimeout 300 # maximum number of seconds that amcheck waits runtapes 2 # number of tapes to be used in a single run of amdump tapedev tape:/dev/nsa0 # the no-rewind tape device to be used maxdumpsize 3200 gb # Maximum number of bytes the planner will schedule tapetype LTO4-ULTRIUM# what kind of tape it is (see tapetypes below) labelstr ^cf-daily-lto[0-9][0-9]*$ # label constraint regex: all tapes must match reserve 10 autoflush yes columnspec HostName=0:10,Disk=1:-1,Level=1:3,OrigKB=1:15,OutKB=1:15,DumpTime=1:8,TapeTime=1:8,DumpRate=1:8,TapeRate=1:8 infofile /var/amanda/cf-daily-lto/curinfo # database DIRECTORY logdir /var/amanda/cf-daily-lto # log directory indexdir /var/amanda/cf-daily-lto/index# index directory holdingdisk hd1 { comment first holding disk directory /mnt/amanda-holding # where the holding disk is use -5 Gb# how much space can we use on it chunksize 50Gb # size of chunk if you want big dump to be } define tapetype LTO4-ULTRIUM { comment LTO4 length 1600 gbytes #was 1200gbytes filemark 0 kbytes part_size 50 gbytes } define dumptype global { comment Global definitions index yes } define dumptype root-tar { global program GNUTAR index yes comment root partitions dumped with tar priority low compress server best } define dumptype high-tar-ssh { auth ssh ssh_keys /usr/local/etc/amanda/cf-daily-lto/ssh-key root-tar comment partitions dumped with tar index yes priority high compress none } Greetings, Karsten Greetings, Karsten
Re: problem with manual tape changer
On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis
Re: problem with manual tape changer
Hi, now i added this: define taperscan oldest { comment bla plugin oldest } taperscan oldest into my amanda.conf. Now i got an email to change the tape. But then i am stuck, amanda does not notice the newly inserted tape, and also does not react on the file /tmp/email_input i created with touch. It just waits forever. What am i missing? On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment interactivity email plugin email property mailto administrat...@cartoon-film.de property resend_delay 0 property check-file /tmp/email_input property check-file-delay 10 } interactivity email The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis Greetings, Karsten Fuhrmann System Administrator Rothkirch Cartoon-Film GmbH Hasenheide. 54 D-10967 Berlin phone +49 30 698084-109 fax +49 30 698084-29 mobile +49 176 49118462 skype: parceval3000 AIM: in...@mac.com Jabber: parce...@jabber.org
Re: problem with manual tape changer
Karsten, You must set an interactivity (man amanda-interactivity): define interactivity email { comment interactivity email plugin email property mailto root property resend_delay 0 } interactivity email Jean-Louis On 02/12/2013 09:06 AM, Karsten Fuhrmann wrote: Hello, i have a problem with the manual tape changer configuration. I set runtapes 2 and tpchanger chg-single:tape:/dev/nsa0 But still after amanda fills up the first tape, amanda quits with a 'partial taper: No acceptable volumes found' message. What i want is amanda to send my an email that i should load the next tape and then continue with the backup. I am using amanda 3.3.0 in a cronjob with an LTO4-Ultrium tape drive. Here my Amanda.conf: mailto administration # space separated list of operators at your site dumpuser amanda # the user to run dumps under displayunit G # Display filesizes in megabytes tpchanger chg-single:tape:/dev/nsa0 inparallel 1# maximum dumpers that will run in parallel (max 63) maxdumps 1 flush-threshold-dumped 50 # Start taping when 90% of tapesize Capacity reside on HD flush-threshold-scheduled 50 device-property LEOM FALSE dumporder T # specify the priority order of each dumper netusage 12 Kbps # maximum net bandwidth for Amanda, in KB per sec taperalgo first dumpcycle 21# the number of days in the normal dump cycle runspercycle 15 # the number of amdump runs in dumpcycle days tapecycle 21 tapes # the number of tapes in rotation bumpsize 10 Gb # minimum savings (threshold) to bump level 1 - 2 bumpdays 1 # minimum days at each level bumpmult 2 # threshold = bumpsize * bumpmult^(level-1) etimeout 6000 # number of seconds per filesystem for estimates. dtimeout 1800 # number of idle seconds before a dump is aborted. ctimeout 300# maximum number of seconds that amcheck waits runtapes 2 # number of tapes to be used in a single run of amdump tapedev tape:/dev/nsa0 # the no-rewind tape device to be used maxdumpsize 3200 gb # Maximum number of bytes the planner will schedule tapetype LTO4-ULTRIUM # what kind of tape it is (see tapetypes below) labelstr ^cf-daily-lto[0-9][0-9]*$ # label constraint regex: all tapes must match reserve 10 autoflush yes columnspec HostName=0:10,Disk=1:-1,Level=1:3,OrigKB=1:15,OutKB=1:15,DumpTime=1:8,TapeTime=1:8,DumpRate=1:8,TapeRate=1:8 infofile /var/amanda/cf-daily-lto/curinfo # database DIRECTORY logdir /var/amanda/cf-daily-lto # log directory indexdir /var/amanda/cf-daily-lto/index # index directory holdingdisk hd1 { comment first holding disk directory /mnt/amanda-holding # where the holding disk is use -5 Gb # how much space can we use on it chunksize 50Gb # size of chunk if you want big dump to be } define tapetype LTO4-ULTRIUM { comment LTO4 length 1600 gbytes #was 1200gbytes filemark 0 kbytes part_size 50 gbytes } define dumptype global { comment Global definitions index yes } define dumptype root-tar { global program GNUTAR index yes comment root partitions dumped with tar priority low compress server best } define dumptype high-tar-ssh { auth ssh ssh_keys /usr/local/etc/amanda/cf-daily-lto/ssh-key root-tar comment partitions dumped with tar index yes priority high compress none } Greetings, Karsten
Tape changer question
Folks, We're running Amanda (version 2.5.1p1) on a Debian Linux system with an 8-tape AIT-2 library. We have around 314GB spread over two file systems that we are attempting to backup in one run across as many tapes as necessary. We're using gzip compression and expect it will take 5-6 tapes to complete (there's a fair amount of audio and image data that doesn't compress too well). I think we have the config files set up correctly, but it seems like no matter what we do, the run stops (after about 16 hours) and reports that it's out of tape. I don't think it has ever succeeded in spanning more than 4 tapes before giving us the error. I see nothing in the .debug output for the changer that looks different for any tapes it changes. I'm sort of at a loss for where to start looking for the problem, and what to look for. Any suggestions from the list? Thanks, t -- Director, Center for Pediatric Auditory and Speech Sciences (CPASS) Head, Speech Research Lab| Adjunct Associate Professor duPont Hospital for Children | Comp. and Info. Sciences / Linguistics Voice: 1+302+651-6835| University of Delaware Fax: 1+302+651-6895| URL: www.asel.udel.edu/speech/
Re: Tape changer question
John Hein wrote at 16:00 -0700 on Dec 13, 2008: Tim Bunnell wrote at 17:03 -0500 on Dec 13, 2008: Folks, We're running Amanda (version 2.5.1p1) on a Debian Linux system with an 8-tape AIT-2 library. We have around 314GB spread over two file systems that we are attempting to backup in one run across as many tapes as necessary. We're using gzip compression and expect it will take 5-6 tapes to complete (there's a fair amount of audio and image data that doesn't compress too well). I think we have the config files set up correctly, but it seems like no matter what we do, the run stops (after about 16 hours) and reports that it's out of tape. I don't think it has ever succeeded in spanning more than 4 tapes before giving us the error. I see nothing in the .debug output for the changer that looks different for any tapes it changes. I'm sort of at a loss for where to start looking for the problem, and what to look for. Any suggestions from the list? Do you really know the tape capacity for your tapes? Some AIT-2 flavors are 36 GB, some are 50 GB, it seems. 36*8 314 Have you run amtapetype to verify? (see http://wiki.zmanda.com/index.php/Tapetype_definitions) Do you have hardware compression off? Sorry, I just re-read and saw that it only used 4 tapes. What is runtapes set to? Somewhere in the logs, it should explain why it's not going past 4.
Re: Tape changer question
Tim Bunnell wrote at 17:03 -0500 on Dec 13, 2008: Folks, We're running Amanda (version 2.5.1p1) on a Debian Linux system with an 8-tape AIT-2 library. We have around 314GB spread over two file systems that we are attempting to backup in one run across as many tapes as necessary. We're using gzip compression and expect it will take 5-6 tapes to complete (there's a fair amount of audio and image data that doesn't compress too well). I think we have the config files set up correctly, but it seems like no matter what we do, the run stops (after about 16 hours) and reports that it's out of tape. I don't think it has ever succeeded in spanning more than 4 tapes before giving us the error. I see nothing in the .debug output for the changer that looks different for any tapes it changes. I'm sort of at a loss for where to start looking for the problem, and what to look for. Any suggestions from the list? Do you really know the tape capacity for your tapes? Some AIT-2 flavors are 36 GB, some are 50 GB, it seems. 36*8 314 Have you run amtapetype to verify? (see http://wiki.zmanda.com/index.php/Tapetype_definitions) Do you have hardware compression off?
Re: Tape changer question
Hi John, Do you know where in the logs to look for the problem? So far we're missing it. BTW, these tapes seem to hold just north of 42 GB each and hardware compression is off because we're using gzip. t John Hein wrote: John Hein wrote at 16:00 -0700 on Dec 13, 2008: Tim Bunnell wrote at 17:03 -0500 on Dec 13, 2008: Folks, We're running Amanda (version 2.5.1p1) on a Debian Linux system with an 8-tape AIT-2 library. We have around 314GB spread over two file systems that we are attempting to backup in one run across as many tapes as necessary. We're using gzip compression and expect it will take 5-6 tapes to complete (there's a fair amount of audio and image data that doesn't compress too well). I think we have the config files set up correctly, but it seems like no matter what we do, the run stops (after about 16 hours) and reports that it's out of tape. I don't think it has ever succeeded in spanning more than 4 tapes before giving us the error. I see nothing in the .debug output for the changer that looks different for any tapes it changes. I'm sort of at a loss for where to start looking for the problem, and what to look for. Any suggestions from the list? Do you really know the tape capacity for your tapes? Some AIT-2 flavors are 36 GB, some are 50 GB, it seems. 36*8 314 Have you run amtapetype to verify? (see http://wiki.zmanda.com/index.php/Tapetype_definitions) Do you have hardware compression off? Sorry, I just re-read and saw that it only used 4 tapes. What is runtapes set to? Somewhere in the logs, it should explain why it's not going past 4. -- Director, Center for Pediatric Auditory and Speech Sciences (CPASS) Head, Speech Research Lab| Adjunct Associate Professor duPont Hospital for Children | Comp. and Info. Sciences / Linguistics Voice: 1+302+651-6835| University of Delaware Fax: 1+302+651-6895| URL: www.asel.udel.edu/speech/
Re: Single tape changer process
On Thu, Sep 11, 2008 at 11:53 PM, Olivier Nicole [EMAIL PROTECTED] wrote: Is there a mechanism in Amanda to ensure that only a single tape changer process is running at any given time? No -- and this poses a problem for processes that want to move data between devices. I'm working on such a process, and for that reason I'm working on an overhaul of the changer API at the moment. The key problem with the existing API is that it has no way to indicate that a process is finished with a device, and that the changer can load a new volume into that device. Is there any mechanism in Amanda that prevents two processes that access tape to be running at same time (dump, flush, restore, recover)? The $logdir/log file gets locked via amflock by any process that accesses the tape drive. This is much more exclusive than necessary, but it is effective. Dustin -- Storage Software Engineer http://www.zmanda.com
Re: Single tape changer process
Dustin J. Mitchell wrote at 09:32 -0400 on Sep 12, 2008: On Thu, Sep 11, 2008 at 11:53 PM, Olivier Nicole [EMAIL PROTECTED] wrote: Is there a mechanism in Amanda to ensure that only a single tape changer process is running at any given time? No -- and this poses a problem for processes that want to move data between devices. I'm working on such a process, and for that reason I'm working on an overhaul of the changer API at the moment. The key problem with the existing API is that it has no way to indicate that a process is finished with a device, and that the changer can load a new volume into that device. I use lockf(1) in a wrapper script to protect accesses to a resource where amanda (currently) does not.
Re: Anybody having experience with Dell LT2000 or LT4000 tape changer?
I'm also looking at buying some TL4000 units to use with Centos5 (~ RHEL5) and need to know if I can use the SAS version. A closer look at the documentation you provided, makes me think that these are in fact re-badged IBM® System Storage TS3100/TS3200 units. http://www-03.ibm.com/systems/storage/tape/ts3100/index.html http://www-03.ibm.com/systems/storage/tape/ts3200/index.html Has anyone tried these with AMANDA, or even, has anyone used a SAS autoloader with AMANDA? I'd hate to suddenly have to go to my Director and ask for extra cash for a commercial backup solution, after using AMANDA for 5 years! many thanks Jake Jon LaBadie wrote: On Wed, Aug 01, 2007 at 10:22:42AM +0200, Cyrille Bollu wrote: Thanks for the whole story Jon. Do you see something I should take care of before buying one of these 2 tape library? Here are some documentation about these: http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl2000?c=ukcs=RC1077915s=pub~tab=specstab http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl4000?c=ukcs=RC1077915s=pub~tab=specstab http://support.euro.dell.com/support/edocs/stor%2Dsys/tl2k4k/en/ug/ug_en.pdf One is twice the size of the other (drive and tape capacity and price :), so I wouldn't have thought they would be considered for the same purchase. In the 2003 survey only one library/drive out of forty one was a Dell. Don't know if the more recent survey listed makes. I've not used Dell tape equipment. I've heard neither bad comment, nor strong endorsement for it. Maybe others will offer opinions. When I attempted to buy a used Dell LTO library from eBay, it was apparent that it would be tough to get a great deal. Too many people wanted the same items so the prices were not as low as I was willing to bid. Could indicate quality is high or demand is high for other reasons. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax) -- View this message in context: http://www.nabble.com/Anybody-having-experience-with-Dell-LT2000-or-LT4000-tape-changer--tf4193132.html#a12778471 Sent from the Amanda - Users mailing list archive at Nabble.com.
Re: Anybody having experience with Dell TL2000 or TL4000 tape changer?
I spent a bit of time searching for something specific to this and haven't had much luck. DELL doesn't cater as much to the unix/linux command line setup environment as some other vendors. They're more into the wizards and such. Note that the original message said LT2000 or LT4000 and it should have been TL. I changed that searches worked better. ;-) Anyway, a couple of things: DELL's user's manual (downloadable pdf) does say that support is available for most major platforms and lists Windows, AIX, SUN, Linux, and Netware. SAS seems to be using SCSI commands over serial connections. FC seems to do the same (use SCSI commands). MTX is a general SCSI controller for tape libraries, robots, etc. and I found references on the Amanda list saying they had successfully used MTX with FC connected libraries. So, I'm presuming MTX would also work with SAS. However (caveat), I couldn't specifically find a reference to MTX having been used with an SAS library, and the compatibility list on the MTX site doesn't seem to be exhaustive. For example, I use MTX and it doesn't list my library. So, although it would be nice to have someone pipe up and say they had this one working, I think the general answer to this type of question is that if the library works with your operating system, it will work with Amanda. DELL says it works with the operating system. To get from there to here, you need the glue. It would seem that MTX and chg-zd-mtx would be the glue. So, can anyone confirm that MTX indeed works with SAS libraries? We ought to have some general commentary on tape library support in the FAQ on the wiki. Note that: The changer interface is external to AMANDA and well-documented, so unsupported changers can be added without a lot of effort. (from the wiki, and the details of the interface are also on the wiki.) --- Chris Hoogendyk - O__ Systems Administrator c/ /'_ --- Biology Geology Departments (*) \(*) -- 140 Morrill Science Center ~~ - University of Massachusetts, Amherst [EMAIL PROTECTED] --- Erdös 4 JakeGrimmett wrote: I'm also looking at buying some TL4000 units to use with Centos5 (~ RHEL5) and need to know if I can use the SAS version. A closer look at the documentation you provided, makes me think that these are in fact re-badged IBM® System Storage TS3100/TS3200 units. http://www-03.ibm.com/systems/storage/tape/ts3100/index.html http://www-03.ibm.com/systems/storage/tape/ts3200/index.html Has anyone tried these with AMANDA, or even, has anyone used a SAS autoloader with AMANDA? I'd hate to suddenly have to go to my Director and ask for extra cash for a commercial backup solution, after using AMANDA for 5 years! many thanks Jake Jon LaBadie wrote: On Wed, Aug 01, 2007 at 10:22:42AM +0200, Cyrille Bollu wrote: Thanks for the whole story Jon. Do you see something I should take care of before buying one of these 2 tape library? Here are some documentation about these: http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl2000?c=ukcs=RC1077915s=pub~tab=specstab http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl4000?c=ukcs=RC1077915s=pub~tab=specstab http://support.euro.dell.com/support/edocs/stor%2Dsys/tl2k4k/en/ug/ug_en.pdf One is twice the size of the other (drive and tape capacity and price :), so I wouldn't have thought they would be considered for the same purchase. In the 2003 survey only one library/drive out of forty one was a Dell. Don't know if the more recent survey listed makes. I've not used Dell tape equipment. I've heard neither bad comment, nor strong endorsement for it. Maybe others will offer opinions. When I attempted to buy a used Dell LTO library from eBay, it was apparent that it would be tough to get a great deal. Too many people wanted the same items so the prices were not as low as I was willing to bid. Could indicate quality is high or demand is high for other reasons. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Anybody having experience with Dell LT2000 or LT4000 tape changer?
Thanks for the whole story Jon. I believe I'm in good hand with you around. Do you see something I should take care of before buying one of these 2 tape library? Here are some documentation about these: http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl2000?c=ukcs=RC1077915s=pub~tab=specstab http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl4000?c=ukcs=RC1077915s=pub~tab=specstab http://support.euro.dell.com/support/edocs/stor%2Dsys/tl2k4k/en/ug/ug_en.pdf Best regards, Cyrille Jon LaBadie [EMAIL PROTECTED] Envoyé par : [EMAIL PROTECTED] 31/07/2007 17:04 Veuillez répondre à amanda-users@amanda.org A amanda-users@amanda.org cc Objet Re: Anybody having experience with Dell LT2000 or LT4000 tape changer? On Tue, Jul 31, 2007 at 03:18:15PM +0200, Cyrille Bollu wrote: ... Also, can somebody explain me the main difference between a tape library and a tape autoloader? Not sure if this is accurate or not - so take it with a grain of salt. Practically I think of them as differing in scale. A library might have 25, 50, 1000 tapes with robotic mechanisms selecting the tape and using potentially multiple drives in the same housing. I.e. the library is really separate from the drives, the drives just happen to be in the same cabinet. You can work with the library independent of the drives. Say for adding or removing tapes to the library. Autoloaders would be a single drive and changer mechanism as a unit. A common example is the HP SureStore DAT changers, of which I have one. The tape magazine hold 6 tapes and I've seen other brands that hold 4-10 tapes in the changer. Here the drive and the changer mechanism are integrated so you can't be doing tape I/O and changer operations at the same time. I suspect the term autoloaders come from the days when you could buy accessories to add to a drive and make it an autoloader. These attached to the front of the drive and held a few tapes. You will also see some mention in amanda of gravity feed. These autoloaders held a stack of tapes (like old phonograph album changers). They were funny to look at. You had to put the drive at the front edge of the desk as there were ?chimneys? (my terminology) extending above and below the drive. The upper part of the chimney held the unused tapes, the middle was for the active tape (at the drives slot) and the bottom part of the chimney collected tapes as they were ejected. These gravity fed changers were one use only. I.e. once a tape was ejected by the drive and collected in the bottom, it had to be manually reloaded at the top to be used again. Maybe others have different definitions. jl -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Anybody having experience with Dell LT2000 or LT4000 tape changer?
On Wed, Aug 01, 2007 at 10:22:42AM +0200, Cyrille Bollu wrote: Thanks for the whole story Jon. Do you see something I should take care of before buying one of these 2 tape library? Here are some documentation about these: http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl2000?c=ukcs=RC1077915s=pub~tab=specstab http://www1.euro.dell.com/content/products/productdetails.aspx/pvaul_tl4000?c=ukcs=RC1077915s=pub~tab=specstab http://support.euro.dell.com/support/edocs/stor%2Dsys/tl2k4k/en/ug/ug_en.pdf One is twice the size of the other (drive and tape capacity and price :), so I wouldn't have thought they would be considered for the same purchase. In the 2003 survey only one library/drive out of forty one was a Dell. Don't know if the more recent survey listed makes. I've not used Dell tape equipment. I've heard neither bad comment, nor strong endorsement for it. Maybe others will offer opinions. When I attempted to buy a used Dell LTO library from eBay, it was apparent that it would be tough to get a great deal. Too many people wanted the same items so the prices were not as low as I was willing to bid. Could indicate quality is high or demand is high for other reasons. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Anybody having experience with Dell LT2000 or LT4000 tape changer?
Hi, the subject tells it all: Does anybody here has experience with a Dell LT2000 or LT4000 tape changer? Also, can somebody explain me the main difference between a tape library and a tape autoloader? Best regards, Cyrille FYI: I'm using and old amanda release; the one shipped with RHEL-4, amanda-2.4.4p3-1.
Re: Anybody having experience with Dell LT2000 or LT4000 tape changer?
On Tue, Jul 31, 2007 at 03:18:15PM +0200, Cyrille Bollu wrote: ... Also, can somebody explain me the main difference between a tape library and a tape autoloader? Not sure if this is accurate or not - so take it with a grain of salt. Practically I think of them as differing in scale. A library might have 25, 50, 1000 tapes with robotic mechanisms selecting the tape and using potentially multiple drives in the same housing. I.e. the library is really separate from the drives, the drives just happen to be in the same cabinet. You can work with the library independent of the drives. Say for adding or removing tapes to the library. Autoloaders would be a single drive and changer mechanism as a unit. A common example is the HP SureStore DAT changers, of which I have one. The tape magazine hold 6 tapes and I've seen other brands that hold 4-10 tapes in the changer. Here the drive and the changer mechanism are integrated so you can't be doing tape I/O and changer operations at the same time. I suspect the term autoloaders come from the days when you could buy accessories to add to a drive and make it an autoloader. These attached to the front of the drive and held a few tapes. You will also see some mention in amanda of gravity feed. These autoloaders held a stack of tapes (like old phonograph album changers). They were funny to look at. You had to put the drive at the front edge of the desk as there were ?chimneys? (my terminology) extending above and below the drive. The upper part of the chimney held the unused tapes, the middle was for the active tape (at the drives slot) and the bottom part of the chimney collected tapes as they were ejected. These gravity fed changers were one use only. I.e. once a tape was ejected by the drive and collected in the bottom, it had to be manually reloaded at the top to be used again. Maybe others have different definitions. jl -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
RE: Tape changer is not sending mail notification
I have found following: -bash-2.05b$ tail -f /var/lib/amanda/Weekly/amdump.1 changer_query: changer return was 99 1 changer_query: searchable = 0 changer_find: looking for archive9 changer is searchable = 0 changer: opening pipe to: /usr/lib/amanda/chg-manual -slot current changer: got exit: 0 str: 47 tape:/dev/nst0 taper: slot 47: date 20060323 label archive8 (active tape) changer: opening pipe to: /usr/lib/amanda/chg-manual -slot next driver: state time 172669.124 free kps: 2000 space: 26870082 taper: writing idle-dumpers: 4 qlen tapeq: 1 runq: 1 roomq: 0 wakeup: 86400 driver-idle: no-diskspace driver: interface-state time 172669.124 if : free 600 if ETH0: free 400 if LOCAL: free 1000 driver: hdisk-state time 172669.124 hdisk 0: free 26870082 dumpers 0 Why the line : changer_find: looking for archive9 changer is searchable = 0 It's mean that even if I plug in next tape it won't be searchable? I have replaced tape and the left dumped data didn't start automatically to the next tape: -bash-2.05b$ /usr/sbin/amstatus Weekly Using /var/lib/amanda/Weekly/amdump.1 from Thu Mar 23 18:56:34 IST 2006 alphacentauri:/Data/QualityAssuranceTests 20k finished (19:03:25) alphacentauri:/Data/SNM/AnimalStudies/ATE_data 1 51k finished (19:02:57) alphacentauri:/Data/SNM/AnimalStudies/Budapest 21k finished (19:03:10) alphacentauri:/Data/SNM/AnimalStudies/Cleveland 0 5043521k finished (23:00:32) alphacentauri:/Data/SNM/AnimalStudies/Detroit 0 35962459k writing to tape (17:56:48) alphacentauri:/Data/SNM/AnimalStudies/Experiments 2 16k finished (19:02:12) alphacentauri:/Data/SNM/AnimalStudies/OldRambam 0 16807853k dump done (18:54:36), wait for writing to tape alphacentauri:/Data/SNM/AnimalStudies/PathologyPictures 0 508748k finished (19:06:58) alphacentauri:/Data/SNM/AnimalStudies/Rambam0 20083868k finished (5:01:13) alphacentauri:/Data/SNM/AnimalStudies/Reports 0 4879k finished (19:02:41) alphacentauri:/Data/SNM/ClinicalStudies 2 3422k finished (19:03:44) alphacentauri:/Data/SNM/SyncStim0 1425761k finished (21:20:36) alphacentauri:/Data/Urology 0 420k finished (22:33:17) alphacentauri:/Shares 0 13715334k finished (0:32:02) alphacentauri:/boot 20k finished (19:02:26) alphacentauri:/etc 1 212k finished (19:04:00) alphacentauri:/home 0 64904785k wait for dumping mars:/Results 1 142k finished (19:02:44) mars:/boot 10k finished (19:02:24) mars:/etc 1 52k finished (19:02:11) mars:/home/shaia/BioControl 137000k finished (19:03:36) SUMMARY part real estimated size size partition : 21 estimated : 21162348597k flush : 0 0k failed : 00k ( 0.00%) wait for dumping: 1 64904785k ( 39.98%) dumping to tape : 00k ( 0.00%) dumping : 0 0k 0k ( 0.00%) ( 0.00%) dumped : 20 97802207k 97443812k (100.37%) ( 60.24%) wait for writing: 1 16807853k 16807978k (100.00%) ( 10.35%) wait to flush : 0 0k 0k (100.00%) ( 0.00%) writing to tape : 1 35962459k 35838227k (100.35%) ( 22.15%) failed to tape : 0 0k 0k ( 0.00%) ( 0.00%) taped : 18 45031895k 44797607k (100.52%) ( 27.74%) tape 1: 18 45031895k 44797607k ( 54.93%) archive8 4 dumpers idle : no-diskspace taper writing, tapeq: 1 network free kps: 2000 holding space : 26870082k ( 33.74%) dumper0 busy : 23:50:37 ( 49.81%) dumper1 busy : 0:00:36 ( 0.02%) taper busy : 2:14:03 ( 4.67%) 0 dumpers busy : 1+0:00:57 ( 50.17%)no-diskspace: 23:59:45 ( 99.92%) start-wait: 0:01:11 ( 0.08%) 1 dumper busy : 23:51:15 ( 49.83%)no-bandwidth: 23:48:29 ( 99.81%) start-wait: 0:02:46 ( 0.19%) 2 dumpers busy : 0:00:01 ( 0.00%) start-wait: 0:00:01 (100.00%) There is still a disk to write to the tape and nothing is written to the next tape. Please advice. On Sun, Mar 26, 2006 at 12:53:47AM +0200, Nathanel wrote: Ye, /usr/bin/Mail are correct. -bash-2.05b$ /usr/bin/Mail No mail for Amanda. -Original Message- From: Ian Turner [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 12:45 AM To: Nathanel Cc: amanda-users@amanda.org Subject: Re: Tape changer is not sending mail notification
Tape changer is not sending mail notification
Hi, I have following line in : -bash-2.05b$tail /var/lib/amanda/Weekly/log INFO taper tape archive8 kb 73908032 fm 19 writing file: No space left on device But I dont receive any mail notification about tape changer. I do able to receive mail for all other Amanda activity. Following processes are running: -bash-2.05b$ ps -ef | grep amanda amanda 18924 18923 0 Mar23 ? 00:03:12 taper Weekly amanda 18932 18923 0 Mar23 ? 00:00:00 dumper1 Weekly amanda 18933 18923 0 Mar23 ? 00:00:00 dumper2 Weekly amanda 18936 18923 0 Mar23 ? 00:00:00 dumper3 Weekly amanda 18931 18923 1 Mar23 ? 00:43:54 dumper0 Weekly amanda 10903 18925 0 Mar24 ? 00:00:00 /bin/sh /usr/lib/amanda/chg-manual -slot next amanda 18925 18924 0 Mar23 ? 00:02:24 taper Weekly root 16548 16516 0 23:48 pts/14 00:00:00 su - amanda amanda 16549 16548 0 23:48 pts/14 00:00:00 -bash amanda 18923 18914 0 Mar23 ? 00:00:04 /usr/lib/amanda/driver Weekly amanda 18914 1 0 Mar23 ? 00:00:00 /bin/sh /usr/sbin/amdump Weekly amanda 16588 16549 0 23:52 pts/14 00:00:00 ps ef Strace one of the processes shows: -bash-2.05b$ strace -fp 10903 Process 10903 attached - interrupt to quit write(2, /usr/lib/amanda/chg-manual: line..., 73 Here the part of the file where the line 73 is after: changerfile=`amgetconf$SUF changerfile is empty: -bash-2.05b$ vi /usr/lib/amanda/chg-manual MAILER=/usr/bin/Mail ]key[(]0x0[)]|sense key error = 0|^er=0$|, mt_erreg: 0x0|^Current Driver State: at rest$ REPORTTO=`amgetconf$SUF mailto` tape=`amgetconf$SUF tapedev` ORG=`amgetconf$SUF ORG` firstslot=1 lastslot=99 changerfile=`amgetconf$SUF changerfile` cleanfile=$changerfile-clean accessfile=$changerfile-access slotfile=$changerfile-slot The line 73 in /usr/lib/amanda/chg-manual is empty, What should I check to receive e-mail notification about tape change whiles it full?
Re: Tape changer is not sending mail notification
On Saturday 25 March 2006 16:49, Nathanel wrote: MAILER=/usr/bin/Mail Is this correct for your system? --Ian -- Zmanda: Open Source Data Protection and Archiving. http://www.zmanda.com
Re: Tape changer is not sending mail notification
On Sun, Mar 26, 2006 at 12:53:47AM +0200, Nathanel wrote: Ye, /usr/bin/Mail are correct. -bash-2.05b$ /usr/bin/Mail No mail for Amanda. -Original Message- From: Ian Turner [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 12:45 AM To: Nathanel Cc: amanda-users@amanda.org Subject: Re: Tape changer is not sending mail notification On Saturday 25 March 2006 16:49, Nathanel wrote: MAILER=/usr/bin/Mail Is this correct for your system? More important than whether /usr/bin/Mail will report no mail is whether it will send mail to the appropriate user. From the command line can you do: /usr/bin/Mail amanda_user and get a message to the amanda user? BTW you say the Mail program reported: No mail for Amanda. Is your amanda user actually Amanda with a capital 'A'? If not why is Mail reporting it capitalized? If yes, are your various config files consistant in specifying the amanda user with (or without) a capital? -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
RE: My Monthly archive config - issue (Trying to source and use a tape changer if possible)
Hi all and Scott I am trying a Monthly archive but in order to follow a setup similar to Scott I need a tape changer. I have found a SCSI tape drive spec below it was once used for backups prior to moving over to Amanda. External Seagate DAT subsystem for NT, Windows, NetWare, DDS-3 recording format, consists of STD124000N DAT drive (data transfer rate 2.2 MB/s, 24 GB capacity with DDS-DC data compression), tabletop enclosure, tape, 1 m cable with 50pin high density plug, Thus could this possible be used a a tape changer I have checked the Amanda homepage but doesn't mention any devices. Cheers Chuck On Fri, 2005-09-30 at 07:39 -0400, Scott R. Burns wrote: Hi Chuck, Sorry I don't have any experience without a changer. You would be best to ask the list about this one. There may be a way to have it pause and prompt for the next tape ? I do know that you can pick up the changer I have on Ebay usually for about $ 100 USD - $ 200 USD with a 30day warrenty. Unfortunately I bought mine brand new in it's day for about $ 3000 USD :-( Scott... Scott R. Burns NETCON Technologies Incorporated Suite 135 - 4474 Blakie Road London, Ontario, Canada N6L 1G7 Voice: +1.519.652.0401 Fax: +1.519.652.9275 Web: www.netcontech.com -Original Message- From: Chuck Amadi Systems Administrator [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 6:23 AM To: Scott R. Burns Subject: RE: My Monthly archive config - issue Hi I have received an error after running amcheck Monthly WARNING: if a tape changer is not available, runtapes must be set to 1 Thus I have not got a tape changer I just want to amflush data that cannot fit on tape 1 to 2,3 or in the future tape 4 to backup potential around 80GB. Cheers Chuck On Thu, 2005-09-29 at 12:23 -0400, Scott R. Burns wrote: I have a similar setup. I have HW compression turned off on the drive (HP DAT24X6 changer). In my monthly config: dumpcycle 0 weeks runspercycle 1 tapecycle 1000 tapes runtapes 3 Also, record is turned off so my normal daily amanda config does not think the level 0 has been completed after the monthly. We never re-use our monthly tapes we send them offsite and leave them so thats why I have it set to 1000. We use between 2-3 tapes on a monthly run so runtapes is at 3. Scott... Scott R. Burns NETCON Technologies Incorporated Suite 135 - 4474 Blakie Road London, Ontario, Canada N6L 1G7 Voice: +1.519.652.0401 Fax: +1.519.652.9275 Web: www.netcontech.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chuck Amadi Systems Administrator Sent: Thursday, September 29, 2005 12:01 PM To: Amanda List Subject: My Monthly archive config - issue Hi again Its that time for a monthly archive backup I have currently 80GB server and using a DAT DDS-4 20GB native 40GB compression I am aware that I cannot have both hardware compression and software compression on So Amanda usually behaviour is to have hardware compression turned off using the mt command. Thus my amanda.conf is as follows I want a full dump for archiving and this tape will pulled out. dumpcycle 4 weeks # the number of days in the normal dump cycle runspercycle 2 # the number of amdump runs in dumpcycle days # (4 weeks * 5 amdump runs per week -- just weekdays) tapecycle 12 tapes # the number of tapes in rotation to pull each monthly tape for archiving. runtapes 1 # number of tapes to be used in a normal run. Should I increase runtapes to 2 to ensure that I backup at a minimum 40GB. Also should I amend dumpcycle to dumpcycle 0 weeks for a full dump and not incremental. Please advice of the best setup to backup for a monthly archive. Cheers -- Unix/ Linux Systems Administrator Chuck Amadi The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Email chuck.smtl.co.uk Tel: +44 1656 752820 Fax: +44 1656 752830 -- Unix/ Linux Systems Administrator Chuck Amadi The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Email chuck.smtl.co.uk Tel: +44 1656 752820 Fax: +44 1656 752830 -- Unix/ Linux Systems Administrator Chuck Amadi The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Email chuck.smtl.co.uk Tel: +44 1656 752820 Fax: +44 1656 752830
Re: My Monthly archive config - issue (Trying to source and use a tape changer if possible)
Hi Gene I am using DDS-4 DAT tapes 20GM native and 40GB compression So I hope amanda using and amanda, using gzip, can probably put well over 40GB on the tape if your are correct. Cheers On Fri, 2005-09-30 at 11:33 -0400, Gene Heskett wrote: On Friday 30 September 2005 08:09, Chuck Amadi Systems Administrator wrote: Hi all and Scott I am trying a Monthly archive but in order to follow a setup similar to Scott I need a tape changer. I have found a SCSI tape drive spec below it was once used for backups prior to moving over to Amanda. External Seagate DAT subsystem for NT, Windows, NetWare, DDS-3 recording format, consists of STD124000N DAT drive (data transfer rate 2.2 MB/s, 24 GB capacity with DDS-DC data compression), tabletop enclosure, tape, 1 m cable with 50pin high density plug, Thus could this possible be used a a tape changer I have checked the Amanda homepage but doesn't mention any devices. Cheers Chuck It should work just fine, Chuck, as long as thats a large enough tape. With hardware compression off, it will hold 12GB, and amanda, using gzip, can probably put well over 24GB on the tape. The only caveat is the tape format. Its cheap, and in DDS2's at least, I had tape trouble after 20-50 passes per tape. They claim a million passes, but the drives heads are worn out long before that in my experience. Rotary heads, are like your vcr in design, and the lifetime is measured in a small number of thousands of hours, like 3 to 5 for the life of the head. I've had maybe 1% of the problems I had with DDS2 tapes since I switched to the FILE device on a 200GB drive. For rotating heads, the head wear and damage occurs as each head tip engages the edge of the tape at the start of the track, there is tape contact and bounce there, but once 'on' the tape, there is a micron thick air cushion between the tape and the head tip. Its that crash at the entrance edge of the tape that does the damage. I've looked at tips that were actually shattered in my many years of keeping broadcast recorders going. DVC-PRO heads are 1/3rd the size of a dat head, and they can read and write 100 MB/second these days. But the electronics in those is 1000x smarter in terms of error correction too. And the error correction doesn't have to be 100%, as long as the pixal coming out somewhat resembles what went in, thats good enough, the eye is a whole lot more forgiving than data storage. Todays tape drives are still in the horse and buggy era in comparison. On Fri, 2005-09-30 at 07:39 -0400, Scott R. Burns wrote: Hi Chuck, Sorry I don't have any experience without a changer. You would be best to ask the list about this one. There may be a way to have it pause and prompt for the next tape ? I do know that you can pick up the changer I have on Ebay usually for about $ 100 USD - $ 200 USD with a 30day warrenty. Unfortunately I bought mine brand new in it's day for about $ 3000 USD :-( Scott... Scott R. Burns NETCON Technologies Incorporated Suite 135 - 4474 Blakie Road London, Ontario, Canada N6L 1G7 Voice: +1.519.652.0401 Fax: +1.519.652.9275 Web: www.netcontech.com -Original Message- From: Chuck Amadi Systems Administrator [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 6:23 AM To: Scott R. Burns Subject: RE: My Monthly archive config - issue Hi I have received an error after running amcheck Monthly WARNING: if a tape changer is not available, runtapes must be set to 1 Thus I have not got a tape changer I just want to amflush data that cannot fit on tape 1 to 2,3 or in the future tape 4 to backup potential around 80GB. Cheers Chuck On Thu, 2005-09-29 at 12:23 -0400, Scott R. Burns wrote: I have a similar setup. I have HW compression turned off on the drive (HP DAT24X6 changer). In my monthly config: dumpcycle 0 weeks runspercycle 1 tapecycle 1000 tapes runtapes 3 Also, record is turned off so my normal daily amanda config does not think the level 0 has been completed after the monthly. We never re-use our monthly tapes we send them offsite and leave them so thats why I have it set to 1000. We use between 2-3 tapes on a monthly run so runtapes is at 3. Scott... Scott R. Burns NETCON Technologies Incorporated Suite 135 - 4474 Blakie Road London, Ontario, Canada N6L 1G7 Voice: +1.519.652.0401 Fax: +1.519.652.9275 Web: www.netcontech.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chuck Amadi Systems Administrator Sent: Thursday, September 29, 2005 12:01 PM To: Amanda List Subject: My Monthly archive config - issue Hi again Its that time for a monthly archive backup I have currently 80GB server and using a DAT DDS-4 20GB native 40GB compression I am aware that I cannot have both hardware
Re: My Monthly archive config - issue (Trying to source and use a tape changer if possible)
Chuck Amadi Systems Administrator wrote: I am using DDS-4 DAT tapes 20GM native and 40GB compression So I hope amanda using and amanda, using gzip, can probably put well over 40GB on the tape if your are correct. No, that won't work out. First of all, 40GB compressed is a purely imaginative figure that marketing pinheads have come up with in order to impress clients. It has no basis in reality; in fact they assume that your data is compressible (which might or might not be the case, but read on), and that it compresses at a 2:1 ratio (which will not be the case in real life). If you plan to use software compression via gzip, the data you feed to the tape is not compressible at all; the DDS' hardware compressor will actually expand the data before writing to tape, giving you an effective capacity of much *less* than 20GB after gzip compression, or just a little more than 20GB before gzip. Just use one *or* the other of hardware and software compression; general consensus on the list is that software compression is better if you can spare the cycles. Look in the archives for reasons if you are interested. Alex -- Alexander Jolk * BUF Compagnie * [EMAIL PROTECTED] Tel +33-1 42 68 18 28 * Fax +33-1 42 68 18 29
Re: My Monthly archive config - issue (Trying to source and use a tape changer if possible)
Chuck Amadi Systems Administrator wrote: I have found a SCSI tape drive spec below it was once used for backups prior to moving over to Amanda. External Seagate DAT subsystem for NT, Windows, NetWare, DDS-3 recording format, consists of STD124000N DAT drive (data transfer rate 2.2 MB/s, 24 GB capacity with DDS-DC data compression), tabletop enclosure, tape, 1 m cable with 50pin high density plug, Thus could this possible be used a a tape changer I have checked the Amanda homepage but doesn't mention any devices. I'm not acquainted with the device described above, but the description doesn't mention anywhere that it's a changer. Looks more like an external tape drive. If you can connect this to your existing backup server as a *second* tape drive, then you can most likely setup Amanda to use both drives. I've read that Amanda has a changer script for this purpose, called chg-multi, but I haven't used it with real tape drives myself. --- ... Error reading FAT record: Try the SKINNY one? (Y/N)
Re: Conf files for tape changer scripts (or bins)
On Tue, 9 Aug 2005, Gene Heskett wrote: On Monday 08 August 2005 22:41, Marcus wrote: I've been messing around with chg-mtx and chg-scsi and [..snip...] If you installed from the tarball (highly recommended) then there should be samples of these files in the src tree 'example' directory. There are 25 files in there from my latest build of 2.4.5-20050711 but unforch I do not see a chg-mtx.conf among them. However in the 'docs' directory, see 'tapechangers.txt' which might be helpfull as What the docs don't make clear is the fact that *only* chg-scsi complex variants use a changer.conf. chg-chio and chg-mtx for example, are relatively simplistic perl or bourne shell wrapper scripts, that do not. Also, chg-mtx requires a tapefile config and chg-chio does not (which is obvious from looking through the source code). On the same accord, chg-chio and chg-mtx also lack support for hardware / platform independant barcode reader support. Amanda really needs to cache the changer's status / barcode meta-data in a psuedo database somewhere to prevent the need to cycle the entire changer. ~BAS
Re: Conf files for tape changer scripts (or bins)
On Wednesday 10 August 2005 13:49, Brian A. Seklecki wrote: On Tue, 9 Aug 2005, Gene Heskett wrote: On Monday 08 August 2005 22:41, Marcus wrote: I've been messing around with chg-mtx and chg-scsi and [..snip...] If you installed from the tarball (highly recommended) then there should be samples of these files in the src tree 'example' directory. There are 25 files in there from my latest build of 2.4.5-20050711 but unforch I do not see a chg-mtx.conf among them. However in the 'docs' directory, see 'tapechangers.txt' which might be helpfull as What the docs don't make clear is the fact that *only* chg-scsi complex variants use a changer.conf. chg-chio and chg-mtx for example, are relatively simplistic perl or bourne shell wrapper scripts, that do not. Also, chg-mtx requires a tapefile config and chg-chio does not (which is obvious from looking through the source code). On the same accord, chg-chio and chg-mtx also lack support for hardware / platform independant barcode reader support. Amanda really needs to cache the changer's status / barcode meta-data in a psuedo database somewhere to prevent the need to cycle the entire changer. ~BAS What bothered me about using chg-scsi in my setup was that somewhere in the data path, rewind commands were gobbled up, rendering amcheck worthless unless you issued an 'mt -f /dev/nst0' rewind in front of it, and behind it so that when amdump went to check the tape, it could find that the label was ok and use it. Otherwise it cycled thru the magazine looking for the right tape, but never actually reloaded the one it found in the drive in the first place, at which point it would have found it had the right tape to start with since the reload would have rewound it. This puts a lot of war and tear on the tapes and on the changer too, probably having something to do with my own relatively poor experience with that Seagate changer. Even weirder, when it found the right label, its supposed to rewind it, and rewrite it with the new date, but because the rewind didn't work, you actually wound up with 2 label blocks written to the header of the tape, I verified that little item many times. Unforch, it appears that chg-scsi is now unmaintained as Thomas Hepper hasn't surfaced on this list in 2-3 years now. He was the last one to work on it I believe as I gave him root on my box at work so he could see if it could be improved. That was back in '99 maybe, but see the ChangeLog to be sure. If you are good at sorting spagetti code, please take a look at chg-scsi and see if its worth salvaging. I can often fix well organized code, because the organization makes it easy for this old man to visualize the codes flow. But thats spagetti, and I'm lost 40 lines into it. -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) 99.35% setiathome rank, not too shabby for a WV hillbilly Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
Re: Conf files for tape changer scripts (or bins)
If you installed from the tarball (highly recommended) then there should be samples of these files in the src tree 'example' directory. Found it in the tar, thanks much! However, I don't suppose someone could forward me a copy of they're working chg-scsi.conf, to peruse? (I quit chg-mtx btw) The problem I'm having is if I configure it per the manual it says I don't have a tape drive, if I configure it in a way that makes sense I get a segfault. Also the manual says to enter 0 for your tape drive device in amanda.conf, does that actually work? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Conf files for tape changer scripts (or bins)
On Tuesday 09 August 2005 20:15, Marcus wrote: If you installed from the tarball (highly recommended) then there should be samples of these files in the src tree 'example' directory. Found it in the tar, thanks much! However, I don't suppose someone could forward me a copy of they're working chg-scsi.conf, to peruse? (I quit chg-mtx btw) The problem I'm having is if I configure it per the manual it says I don't have a tape drive, if I configure it in a way that makes sense I get a segfault. Also the manual says to enter 0 for your tape drive device in amanda.conf, does that actually work? If you are using chg-scsi.conf, then yes. Because you are specifying which config setup to use from the chg-scsi.conf. You can have more than one in case your library has more than 1 drive. Here is a chg-scsi.conf I no longer use as my last changer took a long walk off a short pier about a year back and I converted to virtual tapes on a big hard drive, and which is working much better than the tapes ever did, they were cheap DDS2's. number_configs 1 eject 0 # Tapedrives need an eject command sleep 60 # Seconds to wait until the tape gets ready cleanmax 100 # How many times could a cleaning tape get used scsitapedev /dev/sg0 # test entry per Jean-Louis request changerdev /dev/sg1 debuglevel 9:0 # # Next comes the data for drive 0 # config 0 drivenum 0 dev /dev/nst0 # the device that is used for the tapedrive 0 startuse 0 # The slots associated with the drive 0 enduse 3 # statfile /usr/local/etc/amanda/tape-slot # The file where the actual # slot is stored #cleancart 3 # the slot where the cleaningcartridge for drive 0 is # located #cleanfile /usr/local/etc/amanda/tape-clean # The file where the # cleanings are recorded usagecount /usr/local/etc/amanda/totaltime # This is the end I've no idea if seeing it will do you any good, but there it is. The changer was a Seagate 4586N, 4 slot changer. I wore out 5 of them. Junk... -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) 99.35% setiathome rank, not too shabby for a WV hillbilly Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
Re: Conf files for tape changer scripts (or bins)
On Monday 08 August 2005 22:41, Marcus wrote: I've been messing around with chg-mtx and chg-scsi and finally discovered that not only were my config files not set up, but they were nowhere to be found on my system. Where do the config files for those two programs live, and is there a copy I can snag somewhere? I guess my install left them out, or something :} Thanks! If you installed from the tarball (highly recommended) then there should be samples of these files in the src tree 'example' directory. There are 25 files in there from my latest build of 2.4.5-20050711 but unforch I do not see a chg-mtx.conf among them. However in the 'docs' directory, see 'tapechangers.txt' which might be helpfull as it mentions mtx several times. -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) 99.35% setiathome rank, not too shabby for a WV hillbilly Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
which tape changer for Qualtstar TLS-4210
Hello. I've been trying to get a tape changer TLS-4210 to work for a while for amanda. I'm unable to get the tape changer to work. For now I've been using the mtx command on a linux machine. The problem is that as soon as I mount a drive. The tape gets stuck and will not eject. Am I using the wrong protocol. The jukebox has worked well before. thankyou Rich #mtx -f /dev/sg0 inquiry Product Type: Medium Changer Vendor ID: 'QUALSTAR' Product ID: 'TLS-4210' Revision: '2.12' Attached Changer: No # mtx -f /dev/sg0 status Storage Changer /dev/sg0:2 Drives, 12 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 5 Loaded) Data Transfer Element 1:Full (Storage Element 12 Loaded) Storage Element 1:Full Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Empty Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full Storage Element 11:Full Storage Element 12:Empty
Re: which tape changer for Qualtstar TLS-4210
On Fri, 8 Jul 2005 at 12:13pm, [EMAIL PROTECTED] wrote Hello. I've been trying to get a tape changer TLS-4210 to work for a while for amanda. I'm unable to get the tape changer to work. For now I've been using the mtx command on a linux machine. The problem is that as soon as I mount a drive. The tape gets stuck and will not eject. What do you mean mount a drive? You don't mount tape drives. Am I using the wrong protocol. The jukebox has worked well before. In general, remember that you use 'mtx' to drive the robotics and 'mt' to drive the tape drive(s). -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: which tape changer for Qualtstar TLS-4210
Please keep responses on the list, so that everyone can chip in. On Fri, 8 Jul 2005 at 12:48pm, [EMAIL PROTECTED] wrote Quoting Joshua Baker-LePain [EMAIL PROTECTED]: What do you mean mount a drive? You don't mount tape drives. by mount I mean load. For example. mtx -f /dev/sg0 load 12 1 # mtx -f /dev/sg0 unload 12 1 Unloading Data Transfer Element into Storage Element 12...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Illegal Request *snip* Am I using the wrong protocol. The jukebox has worked well before. In general, remember that you use 'mtx' to drive the robotics and 'mt' to drive the tape drive(s). Well, for me mt is another problem, I'm trying to find a way around this issue. # mt -f /dev/sg1 status (done as root) /dev/sg1: Operation not permitted mt works on tape devices, not generic SCSI devices. Try 'mt -f /dev/nst0'. I'd thought the command: # mtx -f /dev/sg0 unload 12 1 would not need to function together with mt. It depends on the loader (and, sometimes, the loader's firmware settings). Sometimes you can just send an 'unload' to the robot and it'll tell the tape drive to eject the tape, and sometimes you need to explicitly 'mt -f /dev/nst0 offline' before the 'mtx unload' will work. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: which tape changer for Qualtstar TLS-4210
mt works on tape devices, not generic SCSI devices. Try 'mt -f /dev/nst0'. I'd thought the command: # mtx -f /dev/sg0 unload 12 1 would not need to function together with mt. It depends on the loader (and, sometimes, the loader's firmware settings). Sometimes you can just send an 'unload' to the robot and it'll tell the tape drive to eject the tape, and sometimes you need to explicitly 'mt -f /dev/nst0 offline' before the 'mtx unload' will work. that seems to have been the case here. Thankyou very much. I'm off to the next problem. Rich
Re: which tape changer for Qualtstar TLS-4210
--On Friday, July 08, 2005 15:03:52 -0400 Joshua Baker-LePain [EMAIL PROTECTED] wrote: Please keep responses on the list, so that everyone can chip in. On Fri, 8 Jul 2005 at 12:48pm, [EMAIL PROTECTED] wrote Quoting Joshua Baker-LePain [EMAIL PROTECTED]: What do you mean mount a drive? You don't mount tape drives. by mount I mean load. For example. mtx -f /dev/sg0 load 12 1 # mtx -f /dev/sg0 unload 12 1 Unloading Data Transfer Element into Storage Element 12...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Illegal Request *snip* Am I using the wrong protocol. The jukebox has worked well before. In general, remember that you use 'mtx' to drive the robotics and 'mt' to drive the tape drive(s). Well, for me mt is another problem, I'm trying to find a way around this issue. # mt -f /dev/sg1 status (done as root) /dev/sg1: Operation not permitted mt works on tape devices, not generic SCSI devices. Try 'mt -f /dev/nst0'. I'd thought the command: # mtx -f /dev/sg0 unload 12 1 would not need to function together with mt. It depends on the loader (and, sometimes, the loader's firmware settings). Sometimes you can just send an 'unload' to the robot and it'll tell the tape drive to eject the tape, and sometimes you need to explicitly 'mt -f /dev/nst0 offline' before the 'mtx unload' will work. My Qualstars (a TLS-4480 and a RLS-4445) need an offline command to the drive before telling the changer to put away the tape. My changer conf handles this by specifying 'needeject 1'. I'm using chg-qs-mtx, which is a modified chg-mtx. You may need to add a 'sleep' in between, since the mt command can return before the tape is really unloaded. Frank -- Joshua Baker-LePain Department of Biomedical Engineering Duke University -- Frank Smith [EMAIL PROTECTED] Sr. Systems Administrator Voice: 512-374-4673 Hoover's Online Fax: 512-374-4501
Re: [OT] Tape changer recommendations
Hello! So, anyone have suggestions on external changer devices, 8 tape capacity? Any brands/model families you would particularly recommend, or would recommend we -avoid-? I vote for LTO (or LTO-2) too. In addition of the merits already listed by Alexander, it is worth mentioning that the hardware compression algorithm of LTO drives seems to be extremely efficient. I've seen as much as 440 GB of data being put on a 200 GB tape here, whereas my earlier DLT drive was rarely able to put more than 60 GB on 40 GB tape while backing up the same servers. I know that most folks recommend against using hardware compression with Amanda, but sometimes it does have its merits. As for brands or devices to avoid, I'd like to list an HP 818 DLT autoloader that we used to have. It's tape drive needed replacement after we had had it 1 year. This was done under warranty. Then the drive needed replacement again after 6 months, but the price of replacement was almost 2/3 of the price of entire autoloader. So we decided to buy an IBM 3582 LTO2 library. We've had it for a year now, and once we got it set up correctly it has given us no further problems. I must say, though, that we are not using this library with Amanda. Our Amanda setup is still using single DDS-3 drive ;-) -- Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/ * Work is for people who don't know how to fish.
Re: [OT] Tape changer recommendations
Daniel Bentley wrote: So, anyone have suggestions on external changer devices, 8 tape capacity? Any brands/model families you would particularly recommend, or would recommend we -avoid-? Also, as we've been dealing exlcusively with DDS here, what are pros- and cons- of the different media formats (AIT, DLT, LTO, etc) (linkage is appreciated too, I'm sure I'm not the first to ask this)? I have two LTO-2 libraries on two sites, one Dell PowerVault 132T and one Overland Neo 2000. Both of them work fine, although in direct comparison the Overland has a much more solid feel, and is a lot faster when charging magazines. Both of these are larger libraries though, 24 slots for the Dell, 30 for the Overland. I'm generally quite happy with LTO-2 tape drives; they read and write LTO-1 tapes just fine, tape prices are dropping to around 50EUR for a 200GB (uncompressed) LTO-2 tape. When I had to choose between the different formats, I chose LTO-2 because I didn't want to be locked into one vendor. (Bad experiences with Sony's DTF which are priced outrageously expensive. This alone made me avoid AIT and DTF-2.) Sorry I can't provide any links, just my 2 cents, etc. I do completely agree with Gene, though; amanda isn't really meant to use one single large-capacity tape for several runs. If your data (currently and for some time to come) fits comfortably on smaller DDS tapes, better use one of them per day. That would also allow you to take them to a secondary storage site much more quickly, because you need not wait for the huge tape to fill up. I'd also really recommend you get a library with a barcode reader. For both my changers I've come up with a GNU barcode script to print my own labels, and it's a real treat having the changer identify my tapes with their amanda-correct label. Alex -- Alexander Jolk / BUF Compagnie tel +33-1 42 68 18 28 / fax +33-1 42 68 18 29
[OT] Tape changer recommendations
The boss has just decreed that we need to increase retention for desktop backups, and has noted that we've been very good financially and need to spend more of our budget to keep it out of the hands of Uncle Sam. ;) So, anyone have suggestions on external changer devices, 8 tape capacity? Any brands/model families you would particularly recommend, or would recommend we -avoid-? Also, as we've been dealing exlcusively with DDS here, what are pros- and cons- of the different media formats (AIT, DLT, LTO, etc) (linkage is appreciated too, I'm sure I'm not the first to ask this)? Any thoughts/recommendations on larger capacity single-drive devices, rather than a multi-tape configuration? Our current changer is only an old DDS-3 Sony STL-9000 (1 tape a day), so using a large tape over the course of a week certainly isn't beyond the realm of possibility as well... Sorry to send this out to the Amanda list, I just figure it's one of the better collectives of tape-device users to ask... -- Daniel Bentley - Network Technician, QSI Corporation (www.qsicorp.com) Exploits care not whence the clicks come...
Re: [OT] Tape changer recommendations
On Tuesday 19 October 2004 17:00, Daniel Bentley wrote: The boss has just decreed that we need to increase retention for desktop backups, and has noted that we've been very good financially and need to spend more of our budget to keep it out of the hands of Uncle Sam. ;) So, anyone have suggestions on external changer devices, 8 tape capacity? Any brands/model families you would particularly recommend, or would recommend we -avoid-? Also, as we've been dealing exlcusively with DDS here, what are pros- and cons- of the different media formats (AIT, DLT, LTO, etc) (linkage is appreciated too, I'm sure I'm not the first to ask this)? Any thoughts/recommendations on larger capacity single-drive devices, rather than a multi-tape configuration? Our current changer is only an old DDS-3 Sony STL-9000 (1 tape a day), so using a large tape over the course of a week certainly isn't beyond the realm of possibility as well... Sorry to send this out to the Amanda list, I just figure it's one of the better collectives of tape-device users to ask... It generally is, however let me remind the questioner here that the amanda design precludes useing a tape for more than one session. Too much can happen to a device in between backup sessions that would destroy any chance of the tape being in a position so that the next backup was appended to an existing one. Because of that period when the tape is not under amandas direct control, its just not worth the chance to try to append when that append may inadvertantly wipe the rest of the tape if the operator had ejected it to read the label in the meantime. So amanda is quite happy with most of the changer robots. I, if in your shoes, would go for a larger library, one that could possibly hold the whole tapecycles worth of tapes, and equip it with a drive big enough to put each nights backup on a single tape. If the library can hold all the tapes at once, and has a lockable front access door, then that tends to remove the human curiosity, janitorial tinkering and Oh, I forgot errors from your backup protocol. I suspect that far more tapes have been damaged by human handling than by the robot unless the robot is out of adjustment, said mis-adjustment often being caused by human intervention in the first place. Most of us seem to migrate to a weeklong dumpcycle, and if changer robot equipt, use a runspercycle of that same 7 days which allows amanda to spread the load, equalizing the amount of data stored each night as best she can. To that end, a disklist that is many smaller pieces is preferable to one with only 6 entries of 25GB each as amanda must then try to juggle the schedueling in 25GB pieces, not terrible effective on a 50GB drive. Having several disklist entries that are only 1 to 5% of the tape give amanda much more freedom to plan and use the medium to its best advantage. Thats my $0.02 worth. I'm a fan of the lady obviously. -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) 99.27% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attorneys please note, additions to this message by Gene Heskett are: Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
tape changer status
hi, our backup didn't run the day before because our server crashed on that day. So last night when backup is running, it suppose to stored data in dailyset2, but it stored data in dailyset1 since it din't get run the day before and the file changer.stat say curslot 1 and curloaded 1. So tonight, it will store data in dailyset2, instead of dailyset3, I want to change the curslot to 2 and curloaded to 2, but the file changer.stat say DO NOT EDIT. What can I do so that backup is running in the right order, meaning running dailyset3 today, and dailyset4 tommorow, and soforth? Thanks
Re: tape changer status
Nina Pham wrote: hi, our backup didn't run the day before because our server crashed on that day. So last night when backup is running, it suppose to stored data in dailyset2, but it stored data in dailyset1 since it din't get run the day before and the file changer.stat say curslot 1 and curloaded 1. So tonight, it will store data in dailyset2, instead of dailyset3, I want to change the curslot to 2 and curloaded to 2, but the file changer.stat say DO NOT EDIT. What can I do so that backup is running in the right order, meaning running dailyset3 today, and dailyset4 tommorow, and soforth? amtape config slot prev But I don't think that's needed. What does amcheck say? Will it really skip dailyset2? If yes, then you probably have your tapecycle not correct. -- Paul Bijnens, XplanationTel +32 16 397.511 Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax +32 16 397.512 http://www.xplanation.com/ email: [EMAIL PROTECTED] *** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, * * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, * * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, * * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, * * kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ...* * ... Are you sure? ... YES ... Phew ... I'm out * ***
Re: Issue with tape changer configuration
On Tue, 23 Dec 2003 at 1:57pm, Henson, George Mr JMLFDC wrote We new to Amanda and are having an issue getting the bar code reader to work in our tape changer. We have an HP C7200 (2 LTO drives/20 media slots) connected to an N class HP Server (HP/UX 11i amanda-2.4.4). The HP supplied utils (ltt tools) are able to read the barcode info from the tape silo, move the tapes, and inventory the robot with no known issues. I have tried to configure the chg-scsi interface with marginal success. If I turn off the barcode reader (havebarcode 0) then I can get Amanda to run backups and amtape seems to act normal. If I understand correctly, this also means the system must do a linear search for the media in the silo, instead of using the barcode info. Have you tried mtx? See how well it controls your library, and then see how configuring it goes. And please throw some linebreaks into your messages... -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Issue with tape changer configuration
Title: Issue with tape changer configuration All, We new to Amanda and are having an issue getting the bar code reader to work in our tape changer. We have an HP C7200 (2 LTO drives/20 media slots) connected to an N class HP Server (HP/UX 11i amanda-2.4.4). The HP supplied utils (ltt tools) are able to read the barcode info from the tape silo, move the tapes, and inventory the robot with no known issues. I have tried to configure the chg-scsi interface with marginal success. If I turn off the barcode reader (havebarcode 0) then I can get Amanda to run backups and amtape seems to act normal. If I understand correctly, this also means the system must do a linear search for the media in the silo, instead of using the barcode info. Once I turn on the bar code reader (havebarcode 1) then I error messages from amtape and backups fail. When I try using the chg-scsi (chg-scsi -slot 3) command directly to move the media from slot n into the drive, it moves the media, but then reports an error: BarCode == 1 and enubarcode == 1 with and exit status of 2 If I issue the same command again it returns success. The other oddity I have noticed is if I issue the command to inventory the silo (chg-scsi -inventory) the label file grows very quickly to fill the disk. Thank you in advance, George Henson
Re: Issue with tape changer configuration
On Tuesday 23 December 2003 13:57, Henson, George Mr JMLFDC wrote: All, We new to Amanda and are having an issue getting the bar code reader to work in our tape changer. We have an HP C7200 (2 LTO drives/20 media slots) connected to an N class HP Server (HP/UX 11i amanda-2.4.4). The HP supplied utils (ltt tools) are able to read the barcode info from the tape silo, move the tapes, and inventory the robot with no known issues. I have tried to configure the chg-scsi interface with marginal success. If I turn off the barcode reader (havebarcode 0) then I can get Amanda to run backups and amtape seems to act normal. If I understand correctly, this also means the system must do a linear search for the media in the silo, instead of using the barcode info. Once I turn on the bar code reader (havebarcode 1) then I error messages from amtape and backups fail. When I try using the chg-scsi (chg-scsi -slot 3) command directly to move the media from slot n into the drive, it moves the media, but then reports an error: BarCode == 1 and enubarcode == 1 with and exit status of 2 The above is I hope a typu? enubarcode s/b emubarcode, but... I think they are mutually exclusive. Also, at one point I recall reading somebodies notes, maybe Thomas Hepper's, that because of a lack of access to barcode equipt changers, the barcode stuff had been turned off. But I haven't looked at that recently, and fixes could have come into the tree at any time in the last 18 months without my taking real note of it. Does anyone else recall the status of the barcode code? My ageing grey matter isn't very clear on this. If I issue the same command again it returns success. The other oddity I have noticed is if I issue the command to inventory the silo (chg-scsi -inventory) the label file grows very quickly to fill the disk. Thats certainly a no-no. :( Thank you in advance, George Henson -- Cheers, Gene AMD [EMAIL PROTECTED] 320M [EMAIL PROTECTED] 512M 99.22% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
Amanda tape changer, solaris9 and TEK9730
Hi all! I am trying to configure Amanda to run on a Sun box (SunBlade 150) running solaris 9 together with a TEK 9730 library. The problem is that I have not been able to get mtx to load a DLT tape. It is possible read the inventory and move tapes internally but the load statement fails. Here is the result from mtx: osbck1# ./mtx -f /dev/scsi/changer/c1t1d0 load 22 mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Illegal Request mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 30 mtx: Request Sense: Additional Sense Qualifier = 00 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 21 to 1030 Failed osbck1# ./mtx -f /dev/scsi/changer/c1t1d0 status Storage Changer /dev/scsi/changer/c1t1d0:2 Drives, 30 Slots ( 1 Import/Export ) Data Transfer Element 0:Empty Data Transfer Element 1:Empty Storage Element 1:Full :VolumeTag=CLN026 Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Empty Storage Element 6:Empty Storage Element 7:Empty Storage Element 8:Empty Storage Element 9:Empty Storage Element 10:Empty Storage Element 11:Empty Storage Element 12:Empty Storage Element 13:Empty Storage Element 14:Empty Storage Element 15:Empty Storage Element 16:Empty Storage Element 17:Empty Storage Element 18:Empty Storage Element 19:Empty Storage Element 20:Empty Storage Element 21:Empty Storage Element 22:Full Storage Element 23:Empty Storage Element 24:Empty Storage Element 25:Empty Storage Element 26:Empty Storage Element 27:Empty Storage Element 28:Empty Storage Element 29:Empty Storage Element 30 IMPORT/EXPORT:Full sbck1# ./tapeinfo -f /dev/rmt/0 Product Type: Tape Drive Vendor ID: 'QUANTUM ' Product ID: 'DLT7000 ' Revision: '276A' Attached Changer: No SerialNumber: 'CX944S1415' MinBlock:2 MaxBlock:16777214 Ready: no So the big question is how to get mtx working together with solaris 9 and TEK9730? I presume this must be working before I can move on with configuring the rest of the Amanda stuff. Any? Rgds Per Sverre Stiansen mailto:[EMAIL PROTECTED]
Re: Amanda tape changer, solaris9 and TEK9730
On Thu, Nov 20, 2003 at 04:49:37PM +0100, Stiansen, Per Sverre wrote: Hi all! I am trying to configure Amanda to run on a Sun box (SunBlade 150) running solaris 9 together with a TEK 9730 library. The problem is that I have not been able to get mtx to load a DLT tape. It is possible read the inventory and move tapes internally but the load statement fails. Here is the result from mtx: osbck1# ./mtx -f /dev/scsi/changer/c1t1d0 load 22 mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no ... mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 21 to 1030 Failed Is the attempt to load slot 22 and the changers attempt to move from slot 21 the expected behavior? Or is it an indication of an off by one error someplace? What if you put a tape in slot 21 and try the same 'load 22' command? ... Storage Element 20:Empty Storage Element 21:Empty Storage Element 22:Full Storage Element 23:Empty .. So the big question is how to get mtx working together with solaris 9 and TEK9730? I presume this must be working before I can move on with configuring the rest of the Amanda stuff. Any? Nice to see someone realizes this when starting with amanda. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
tape changer problem
hello again. i have amanda server 2.4.4 installed on sparc solaris 8 with one hp dds3 tape drive. i got error yestarday after nightly backup that amanda cannot dump data to tape caused by following debug information: changer.debug MT - /usr/local/sbin/ammt -f DD - /usr/local/sbin/amdd Args - -info - rewind /dev/rmt/0bn - status /dev/rmt/0bn /dev/rmt/0bn status: ONLINE er == 0x fileno == 0 blkno == 0 - loaded /dev/rmt/0bn status: ONLINE er == 0x fileno == 0 blkno == 0 Exit - 99 1 tape rewinded notrmaly, but 'exit 99 1' looks like that last slot used by chg-manual in previosly backup, and slot not rotated to first again. amlabel.debug contain next strings: changer: got exit: 1 str: /usr/local/libexec/chg-manual: test: argument expected amlabel: could not load slot current: test: argument expected amlabel: pid 10575 finish time Thu Oct 2 12:58:09 [EMAIL PROTECTED] in chg-manual script last available slot is 99. i may to increase this variable, and think this will be enough, but i not sure that right way. any ideas? vlad.
Re: Sg driver and tape changer.
This sounds suspiciously like either bad hardware or a bad SCSI chain. Are you sure everything is terminated properly? How's your cable length? Does it work on another machine or with a different SCSI card? What color was the goat? The tape drive was recently replaced, but I'd hate to replace it again... That driver has been undergoing some work from what I see in the kernels ChangeLog (I don't use it myself, my card is an advansys, bulletproof) and if he has the aic7xxx.old driver available, maybe he should give that one a try. My kernel is 2.4.21, and I don't recall if both drivers are still available or not. That would be my next suggestion, that he move on up to a newer kernel, thereby getting the latest code. Actually, I've narrowed it down to just having to rm/insmod the sg driver only, between every call. :P And since this is scsi we're talking about here, the goat must be pure white and a virgin. Not to mention that in a scsi setup, the last device on the cable must be on the last plug on the cable. A few inches of open cable past the device will make nearly all bets instant losers. Then of course it doesn't matter what color the goat was, the spell is broken... :) Damn. I've got a funky polkadotted goat, and I don't think its a virgin. Must I really obtain a new one? SCSI setup is very basic. One aic7000 card, one tape drive with termination. ;] Russell
Re: Sg driver and tape changer.
On Wednesday 02 July 2003 09:47, Russell Adams wrote: This sounds suspiciously like either bad hardware or a bad SCSI chain. Are you sure everything is terminated properly? How's your cable length? Does it work on another machine or with a different SCSI card? What color was the goat? The tape drive was recently replaced, but I'd hate to replace it again... That driver has been undergoing some work from what I see in the kernels ChangeLog (I don't use it myself, my card is an advansys, bulletproof) and if he has the aic7xxx.old driver available, maybe he should give that one a try. My kernel is 2.4.21, and I don't recall if both drivers are still available or not. That would be my next suggestion, that he move on up to a newer kernel, thereby getting the latest code. Actually, I've narrowed it down to just having to rm/insmod the sg driver only, between every call. :P Which is indeed weird. I can't do that, haveing long ago built it into the kernel. And since this is scsi we're talking about here, the goat must be pure white and a virgin. Not to mention that in a scsi setup, the last device on the cable must be on the last plug on the cable. A few inches of open cable past the device will make nearly all bets instant losers. Then of course it doesn't matter what color the goat was, the spell is broken... :) Damn. I've got a funky polkadotted goat, and I don't think its a virgin. Must I really obtain a new one? Chuckle... You did get the point I see :) SCSI setup is very basic. One aic7000 card, one tape drive with termination. ;] If you have a voltmeter, check to see if the term power available on the scsi cable is high enough, I consider anything below 4.7 volts to be pretty borderline, and you'd be amazed to see how many card makers will use a cheap si diode for the isolation. At nominally .65 volts drop acorss the si diode, that leaves about 4.3 to 4.4 for term power. They really should be useing a schotky diode, with its .2 volts drop there but they cost more. If the drive has a jumper that will allow it to supply its own term power, enabling that will sometimes help. The bottom line is that the TTL circuitry involved has a grey area where the outputs are not guaranteed, from about .7 volts to 2.4 volts. While MOST chips will switch at about .7 to .85 volts, some logic families will use the full range of the spec. As this, for regular scsi, not lvd, is an 'open collector' circuit, this means that a logic zero is done by turning on the output stage, which will pull the data line down to maybe .05 to .1 volts, so there is an adequate 'noise margin' of about .6 volts for the logic zero state. When using resistive terms, the ideal would be to have the cable both terminated in its characteristic impedance, which for this ribbon stuff is about 120 ohms, and maintained when at rest at a voltage high enough to give a decent noise margin for the turned off state. 2.4 + .6 = 3.0 (nominally) This would all normally be accomplished by connecting a 220 ohm resistor to the 5 volt line and the data line, and a 330 ohm resistor from the data line to ground. This would establish an at rest voltage of 3.0 volts even, giving that logic one state a noise margin of about .6 volts. And the parallel combo about matches the cable impedance, all done with standard off the shelf parts values, a huge cost advantage. Unforch, there must be isolation diodes to prevent a scene where a scsi device in an external box is powered up, but the main box is not. Without the isolation diodes the external box will try to supply power via the cable to the main box. The problem gets real hairy when the isolation diodes are silicon because they'll drop the voltage at the top ot the 330 ohm resistor to about 4.4 volts, and you wind up with only 2.5 to 2.6 volts at the 220-330 junction. At that point much of the noise margin has been used up, and any residual ringing on the cable will give false signals as there is nothing there to absorb them but the terminating resistors. Things head for the toilet pretty quickly in that event. In your case, I think I might be tempted to try a different scsi card, based as much on the fact that the aic7xxx cards seem to be generating more than their fair share of problems as anything else. Humm, nother thought. These things have a bios of their own, and sometimes they can become missconfigured. Reboot, and when the cards own bios comes up, hit the ctrl+a or whatever to get into it and check its config. Maybe its own terms have become disabled or something. They should be on if it and the tape drive are the only things on the bus. Maybe we can keep from sacrificing that polky-dotted goat yet :) Russell -- Cheers, Gene AMD [EMAIL PROTECTED] 320M [EMAIL PROTECTED] 512M 99.26% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are:
Sg driver and tape changer.
I'm having repeated problems with my tape changer and the sg device. I'm running a Dell Powervault 120T (DLT7000 w/ 7 tape changer) on an adaptec (aic7xxx driver) card. Every time I load a tape using mtx, subsequent calls to mtx report: cannot open SCSI device '/dev/sg0' - No such device or address /dev/sg0 still exists, but I can't seem to talk to the changer anymore. I can talk to the drive itself however. The only fix I've found for this is to rmmod all the scsi drivers (st,sr_mod,sg,aic7xxx) and then insmod them again. Anyone else have similar issues? This makes using amtape conf taper very difficult. Russell
Re: Sg driver and tape changer.
On Fri, 27 Jun 2003 at 9:40am, Russell Adams wrote I'm having repeated problems with my tape changer and the sg device. I'm running a Dell Powervault 120T (DLT7000 w/ 7 tape changer) on an adaptec (aic7xxx driver) card. Every time I load a tape using mtx, subsequent calls to mtx report: cannot open SCSI device '/dev/sg0' - No such device or address /dev/sg0 still exists, but I can't seem to talk to the changer anymore. I can talk to the drive itself however. Can you actually write to the drive? The only fix I've found for this is to rmmod all the scsi drivers (st,sr_mod,sg,aic7xxx) and then insmod them again. This sounds suspiciously like either bad hardware or a bad SCSI chain. Are you sure everything is terminated properly? How's your cable length? Does it work on another machine or with a different SCSI card? What color was the goat? -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: Sg driver and tape changer.
On Friday 27 June 2003 10:55, Joshua Baker-LePain wrote: On Fri, 27 Jun 2003 at 9:40am, Russell Adams wrote I'm having repeated problems with my tape changer and the sg device. I'm running a Dell Powervault 120T (DLT7000 w/ 7 tape changer) on an adaptec (aic7xxx driver) card. Every time I load a tape using mtx, subsequent calls to mtx report: cannot open SCSI device '/dev/sg0' - No such device or address /dev/sg0 still exists, but I can't seem to talk to the changer anymore. I can talk to the drive itself however. Can you actually write to the drive? The only fix I've found for this is to rmmod all the scsi drivers (st,sr_mod,sg,aic7xxx) and then insmod them again. This sounds suspiciously like either bad hardware or a bad SCSI chain. Are you sure everything is terminated properly? How's your cable length? Does it work on another machine or with a different SCSI card? What color was the goat? That driver has been undergoing some work from what I see in the kernels ChangeLog (I don't use it myself, my card is an advansys, bulletproof) and if he has the aic7xxx.old driver available, maybe he should give that one a try. My kernel is 2.4.21, and I don't recall if both drivers are still available or not. That would be my next suggestion, that he move on up to a newer kernel, thereby getting the latest code. And since this is scsi we're talking about here, the goat must be pure white and a virgin. Not to mention that in a scsi setup, the last device on the cable must be on the last plug on the cable. A few inches of open cable past the device will make nearly all bets instant losers. Then of course it doesn't matter what color the goat was, the spell is broken... :) -- Cheers, Gene AMD [EMAIL PROTECTED] 320M [EMAIL PROTECTED] 512M 99.26% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
What is the best way to use a second tape changer device?
Hello List, I just got a second ADIC fastor4000 tape changer. This modle has 8 slots and 1 drive. I'm wondering what is the best way to use a second tape drive. I'm using amanda 2.4.2p2 as the server and the rpm's that came with RH7.2 for clients. I'd like to have amanda control how and when to use the drives. So that one could fail and backups would still be ok. Is this possible? or should I setup another config for the new changer? Thanks, chrisj
RE: What is the best way to use a second tape changer device?
Good question. I would like to know too. Also, I would like to know if I can put the second drive as standby as well as for recovering--- just in case an urgent recovering is demanded while regular backup is going on. Thomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Johnson Sent: Tuesday, March 18, 2003 2:40 PM To: amanda-users Subject: What is the best way to use a second tape changer device? Hello List, I just got a second ADIC fastor4000 tape changer. This modle has 8 slots and 1 drive. I'm wondering what is the best way to use a second tape drive. I'm using amanda 2.4.2p2 as the server and the rpm's that came with RH7.2 for clients. I'd like to have amanda control how and when to use the drives. So that one could fail and backups would still be ok. Is this possible? or should I setup another config for the new changer? Thanks, chrisj
Re: What is the best way to use a second tape changer device?
Thanks for your relpy Jon, Ok. I kinda figured I have to upgrade a stabel server someday. What feature in a current amanda build would allow me to do this? Thanks, chrisj Jon LaBadie wrote: On Tue, Mar 18, 2003 at 01:39:41PM -0600, Chris Johnson wrote: Hello List, I just got a second ADIC fastor4000 tape changer. This modle has 8 slots and 1 drive. I'm wondering what is the best way to use a second tape drive. I'm using amanda 2.4.2p2 as the server and the rpm's that came with RH7.2 for clients. I'd like to have amanda control how and when to use the drives. So that one could fail and backups would still be ok. Is this possible? or should I setup another config for the new changer? I think with 2.4.2 the only way to use a second drive is to have separate configs for each drive. If their respective amdumps might be running simultaneously, you have to make sure the same client host does not appear in both configs.
RE: Solaris 8 Overland Tape changer config
Brian Um, no, I hadn't spotted my second typo! That explains why correcting the first typo didn't change the behaviour at all, it STILL couldn't find the device. (whoops) Now, amlabel works :) So, I'm now labelling the 9 tapes (I'll try to remember not to label the cleanertape!) Thanks for all the help. Nige -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian Cuttler Sent: 03 March 2003 20:29 To: Nigel Barker Cc: [EMAIL PROTECTED] Subject: Re: Solaris 8 Overland Tape changer config Jay On Mon, Mar 03, 2003 at 02:54:11PM -, Nigel Barker wrote: I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda 2.4.3 mtx 1.2.17 amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do ^ I assume the real amanda.conf doesn't have this typo. I copied it from the file, the typo was there, I've corrected it but it hasn't changed the behaviour at all (which feels like a clue to me...) Did you catch the 2nd typo ? You have an o rather than a 0 as the last character of the device name.
Re: Solaris 8 Overland Tape changer config
Nigel, I believe the only problem with labeling the cleaning tape is that you can't readilly check the tape label. Cleaning tapes are really physical device that emulate the SW device /dev/null, useful for some applications. That is what they do afterall, absorbe all the left over bits on the drive heads. Brian Um, no, I hadn't spotted my second typo! That explains why correcting the first typo didn't change the behaviour at all, it STILL couldn't find the device. (whoops) Now, amlabel works :) So, I'm now labelling the 9 tapes (I'll try to remember not to label the cleanertape!)
Solaris 8 Overland Tape changer config
Hi I know this is well trodden ground, believe me I've scanned the emails, please could someone tell me where I'm going wrong? I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda 2.4.3 mtx 1.2.17 I've identified the correct tape device, tested by :- $mt -f /dev/rmt/1n status Quantum DLT7000 tape drive: sense key(0x0)= No Additional Sense residual= 0 retries= 0 file no= 0 block no= 0 I've used sgen to get a device for the changer :- $./mtx status Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full The changer has a cleaning tape in slot 10. amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do I created a file chg-zd-mtx.conf containing :- firstslot=1 lastslot=9 cleanslot=10 Trying to follow the chg-zd-mtx instructions, I try :- $ ./chg-zd-mtx -info none could not determine current slot Logfile contains :- chg-zd-mtx: debug 1 pid 11255 ruid 0 euid 0: start at Mon Mar 3 14:31:47 2003 14:31:47 Arg info: $# = 1 $0 = ./chg-zd-mtx $1 = -info 14:31:47 Running: mtx status 14:31:47 Exit code: 0 Stdout: Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full 14:31:47 Config info: firstslot = 1 lastslot = 9 cleanslot = 10 cleancycle = 120 offline_before_unload = 0 unloadpause = 0 autoclean = 0 autocleancount = 99 havereader = 0 driveslot = 1 poll_drive_ready = 3 max_drive_wait = 120 14:31:47 WARNING - current slot 1 not available, setting current slot to next slot (2) 14:31:47 Exit (2) - none could not determine current slot chg-zd-mtx: pid 11340 finish time Mon Mar 3 14:31:47 2003 Now, checking chg-zd-mtx-slot, it contains 1, and doesn't change! (I then verified that the file was owned by backup, the amanda user, which it is, and that backup owns the entire config directory. Any help would be MUCH appreciated. Many thanks Nigel Barker
Re: Solaris 8 Overland Tape changer config
The first to do is to set your driveslot correctly, yours is 0. Jean-Louis On Mon, Mar 03, 2003 at 02:54:11PM -, Nigel Barker wrote: Hi I know this is well trodden ground, believe me I've scanned the emails, please could someone tell me where I'm going wrong? I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda2.4.3 mtx 1.2.17 I've identified the correct tape device, tested by :- $mt -f /dev/rmt/1n status Quantum DLT7000 tape drive: sense key(0x0)= No Additional Sense residual= 0 retries= 0 file no= 0 block no= 0 I've used sgen to get a device for the changer :- $./mtx status Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full The changer has a cleaning tape in slot 10. amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do I created a file chg-zd-mtx.conf containing :- firstslot=1 lastslot=9 cleanslot=10 Trying to follow the chg-zd-mtx instructions, I try :- $ ./chg-zd-mtx -info none could not determine current slot Logfile contains :- chg-zd-mtx: debug 1 pid 11255 ruid 0 euid 0: start at Mon Mar 3 14:31:47 2003 14:31:47 Arg info: $# = 1 $0 = ./chg-zd-mtx $1 = -info 14:31:47 Running: mtx status 14:31:47 Exit code: 0 Stdout: Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full 14:31:47 Config info: firstslot = 1 lastslot = 9 cleanslot = 10 cleancycle = 120 offline_before_unload = 0 unloadpause = 0 autoclean = 0 autocleancount = 99 havereader = 0 driveslot = 1 poll_drive_ready = 3 max_drive_wait = 120 14:31:47 WARNING - current slot 1 not available, setting current slot to next slot (2) 14:31:47 Exit (2) - none could not determine current slot chg-zd-mtx: pid 11340 finish time Mon Mar 3 14:31:47 2003 Now, checking chg-zd-mtx-slot, it contains 1, and doesn't change! (I then verified that the file was owned by backup, the amanda user, which it is, and that backup owns the entire config directory. Any help would be MUCH appreciated. Many thanks Nigel Barker -- Jean-Louis Martineau email: [EMAIL PROTECTED] Departement IRO, Universite de Montreal C.P. 6128, Succ. CENTRE-VILLETel: (514) 343-6111 ext. 3529 Montreal, Canada, H3C 3J7Fax: (514) 343-5834
Re: Solaris 8 Overland Tape changer config
[Posted and Cc'ed] On Mon, Mar 03, 2003 at 02:54:11PM -, Nigel Barker wrote: I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda2.4.3 mtx 1.2.17 amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do ^ I assume the real amanda.conf doesn't have this typo. Trying to follow the chg-zd-mtx instructions, I try :- $ ./chg-zd-mtx -info none could not determine current slot You seem to have installed mtx and chg-zd-mtx in /usr/local/share/amanda/Daily, make sure they are also installed where amanda's $PATH can find them. Then take the debugging to the next level with: $ sh -x chg-zd-mtx -info -- Jay Lessert [EMAIL PROTECTED] Accelerant Networks Inc. (voice)1.503.439.3461 Beaverton OR, USA(fax)1.503.466.9472
RE: Solaris 8 Overland Tape changer config
Jean-Louis Thanks for that :) I can now run through the mtx tests, as per chg-zd-mtx, which feels like a big step in the right direction. Moving onto amtape... $ amtape Daily reset amtape: could not reset changer: no slots available I'm looking through the script, but struggling to see what's wrong with my config. Cheers Nige -Original Message- From: Jean-Louis Martineau [mailto:[EMAIL PROTECTED] Sent: 03 March 2003 16:29 To: Nigel Barker Cc: [EMAIL PROTECTED] Subject: Re: Solaris 8 Overland Tape changer config The first to do is to set your driveslot correctly, yours is 0. Jean-Louis On Mon, Mar 03, 2003 at 02:54:11PM -, Nigel Barker wrote: Hi I know this is well trodden ground, believe me I've scanned the emails, please could someone tell me where I'm going wrong? I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda2.4.3 mtx 1.2.17 I've identified the correct tape device, tested by :- $mt -f /dev/rmt/1n status Quantum DLT7000 tape drive: sense key(0x0)= No Additional Sense residual= 0 retries= 0 file no= 0 block no= 0 I've used sgen to get a device for the changer :- $./mtx status Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full The changer has a cleaning tape in slot 10. amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do I created a file chg-zd-mtx.conf containing :- firstslot=1 lastslot=9 cleanslot=10 Trying to follow the chg-zd-mtx instructions, I try :- $ ./chg-zd-mtx -info none could not determine current slot Logfile contains :- chg-zd-mtx: debug 1 pid 11255 ruid 0 euid 0: start at Mon Mar 3 14:31:47 2003 14:31:47 Arg info: $# = 1 $0 = ./chg-zd-mtx $1 = -info 14:31:47 Running: mtx status 14:31:47 Exit code: 0 Stdout: Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full 14:31:47 Config info: firstslot = 1 lastslot = 9 cleanslot = 10 cleancycle = 120 offline_before_unload = 0 unloadpause = 0 autoclean = 0 autocleancount = 99 havereader = 0 driveslot = 1 poll_drive_ready = 3 max_drive_wait = 120 14:31:47 WARNING - current slot 1 not available, setting current slot to next slot (2) 14:31:47 Exit (2) - none could not determine current slot chg-zd-mtx: pid 11340 finish time Mon Mar 3 14:31:47 2003 Now, checking chg-zd-mtx-slot, it contains 1, and doesn't change! (I then verified that the file was owned by backup, the amanda user, which it is, and that backup owns the entire config directory. Any help would be MUCH appreciated. Many thanks Nigel Barker -- Jean-Louis Martineau email: [EMAIL PROTECTED] Departement IRO, Universite de Montreal C.P. 6128, Succ. CENTRE-VILLETel: (514) 343-6111 ext. 3529 Montreal, Canada, H3C 3J7Fax: (514) 343-5834
RE: Solaris 8 Overland Tape changer config
Jay On Mon, Mar 03, 2003 at 02:54:11PM -, Nigel Barker wrote: I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda 2.4.3 mtx 1.2.17 amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do ^ I assume the real amanda.conf doesn't have this typo. I copied it from the file, the typo was there, I've corrected it but it hasn't changed the behaviour at all (which feels like a clue to me...) Trying to follow the chg-zd-mtx instructions, I try :- $ ./chg-zd-mtx -info none could not determine current slot You seem to have installed mtx and chg-zd-mtx in /usr/local/share/amanda/Daily, make sure they are also installed where amanda's $PATH can find them. Where would these normally be installed? mtx was in the user backup's PATH, chg-zd-mtx wasn't, but is now, no change) Then take the debugging to the next level with: $ sh -x chg-zd-mtx -info Well, it produced a lot more info (attached), but having had a quick look through I don't see what's going wrong. Cheers Nige MT=//usr/bin/mt MTF=-f MTX=mtx + test -n TMPDIR=/tmp/amanda DBGDIR=/tmp/amanda argv0=chg-zd-mtx + expr chg-zd-mtx : .*/\(.*\) myname= + pwd config=/usr/local/share/amanda/Daily + expr /usr/local/share/amanda/Daily : .*/\(.*\) config=Daily + date +%H:%M:%S ds=17:06:01 + [ 0 -eq 0 -a -n 17:06:01 ] + echo 17:06:01 + sed s/./ /g logprefix= internal_call=0 mtx_status_valid=0 slot_list= prefix=/usr/local exec_prefix=/usr/local sbindir=/usr/local/sbin libexecdir=/usr/local/libexec PATH=/usr/local/sbin:/usr/local/libexec:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ucb:/usr/local/bin + export PATH USE_VERSION_SUFFIXES=no + test no = yes SUF= + amgetconf dbopen.chg-zd-mtx + grep -v BUGGY DBGFILE=/tmp/amanda/chg-zd-mtx.20030303170601.debug + [ -z /tmp/amanda/chg-zd-mtx.20030303170601.debug ] + amgetconf changerfile + grep -v BUGGY changerfile=/usr/local/share/amanda/Daily/chg-zd-mtx + [ -z /usr/local/share/amanda/Daily/chg-zd-mtx ] + amgetconf tapedev + grep -v BUGGY tape=/dev/rmt/1n + [ -z /dev/rmt/1n ] + expr /dev/rmt/1n : null: + [ /dev/rmt/1n = /dev/null -o 0 -eq 5 ] + amgetconf changerdev + grep -v BUGGY TAPE=/dev/scsi/changer/c1t6do + [ -z /dev/scsi/changer/c1t6do ] + [ /dev/scsi/changer/c1t6do = /dev/null ] + export TAPE configfile=/usr/local/share/amanda/Daily/chg-zd-mtx.conf cleanfile=/usr/local/share/amanda/Daily/chg-zd-mtx-clean accessfile=/usr/local/share/amanda/Daily/chg-zd-mtx-access slotfile=/usr/local/share/amanda/Daily/chg-zd-mtx-slot labelfile=/usr/local/share/amanda/Daily/chg-zd-mtx-barcodes + [ ! -s /usr/local/share/amanda/Daily/chg-zd-mtx-clean ] + [ ! -s /usr/local/share/amanda/Daily/chg-zd-mtx-access ] + [ ! -s /usr/local/share/amanda/Daily/chg-zd-mtx-slot ] + [ ! -f /usr/local/share/amanda/Daily/chg-zd-mtx-barcodes ] + cat /usr/local/share/amanda/Daily/chg-zd-mtx-clean cleancount=0 + cat /usr/local/share/amanda/Daily/chg-zd-mtx-access accesscount=2 varlist= varlist= firstslot varlist= firstslot lastslot varlist= firstslot lastslot cleanslot varlist= firstslot lastslot cleanslot cleancycle varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause AUTOCLEAN varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause AUTOCLEAN autoclean varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause AUTOCLEAN autoclean autocleancount varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause AUTOCLEAN autoclean autocleancount havereader varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause AUTOCLEAN autoclean autocleancount havereader driveslot varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause AUTOCLEAN autoclean autocleancount havereader driveslot poll_drive_ready varlist= firstslot lastslot cleanslot cleancycle OFFLINE_BEFORE_UNLOAD offline_before_unload unloadpause AUTOCLEAN autoclean autocleancount havereader driveslot poll_drive_ready max_drive_wait + cat /usr/local/share/amanda/Daily/chg-zd-mtx.conf + sed -n # Ignore comment lines (anything starting with a #). /^[ ]*#/d # Find the first var=val line in the file, print the value and quit. /^[ ]*firstslot[]*=[]*\([^ ][^ ]*\).*/ { s/^[]*firstslot[]*=[]*\([^ ][^ ]*\).*/\1/p q } val=1 + eval firstslot=1 firstslot=1 + sed -n # Ignore comment lines (anything starting with
Re: Solaris 8 Overland Tape changer config
On Mon, Mar 03, 2003 at 05:10:45PM -, Nigel Barker wrote: $ sh -x chg-zd-mtx -info Well, it produced a lot more info (attached), but having had a quick look through I don't see what's going wrong. + echo 17:06:02 Exit (0) - 2 9 1 + echo 2 9 1 2 9 1 Looks to me like it worked: Current slot = 2 Total slots = 9 Can go backwards = 1 (true) -- Jay Lessert [EMAIL PROTECTED] Accelerant Networks Inc. (voice)1.503.439.3461 Beaverton OR, USA(fax)1.503.466.9472
Re: Solaris 8 Overland Tape changer config
I may have been missing something in my config - something like an environmental variable, but I found that I wasn't able to run chg-zd-mtx successfully unless I was in the directory with the data information. That is, I configured amanda such that the chg-zd-mtx.* files where in the amanda config directory (/usr/local/etc/amanda/config) but the script was in the default /usr/local/libexec directory. In my case it was a matter of not locating the config files and I see from your execution line that you where probably in .../libexec. Hi I know this is well trodden ground, believe me I've scanned the emails, please could someone tell me where I'm going wrong? I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda2.4.3 mtx 1.2.17 I've identified the correct tape device, tested by :- $mt -f /dev/rmt/1n status Quantum DLT7000 tape drive: sense key(0x0)= No Additional Sense residual= 0 retries= 0 file no= 0 block no= 0 I've used sgen to get a device for the changer :- $./mtx status Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full The changer has a cleaning tape in slot 10. amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do I created a file chg-zd-mtx.conf containing :- firstslot=1 lastslot=9 cleanslot=10 Trying to follow the chg-zd-mtx instructions, I try :- $ ./chg-zd-mtx -info none could not determine current slot Logfile contains :- chg-zd-mtx: debug 1 pid 11255 ruid 0 euid 0: start at Mon Mar 3 14:31:47 2003 14:31:47 Arg info: $# = 1 $0 = ./chg-zd-mtx $1 = -info 14:31:47 Running: mtx status 14:31:47 Exit code: 0 Stdout: Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full 14:31:47 Config info: firstslot = 1 lastslot = 9 cleanslot = 10 cleancycle = 120 offline_before_unload = 0 unloadpause = 0 autoclean = 0 autocleancount = 99 havereader = 0 driveslot = 1 poll_drive_ready = 3 max_drive_wait = 120 14:31:47 WARNING - current slot 1 not available, setting current slot to next slot (2) 14:31:47 Exit (2) - none could not determine current slot chg-zd-mtx: pid 11340 finish time Mon Mar 3 14:31:47 2003 Now, checking chg-zd-mtx-slot, it contains 1, and doesn't change! (I then verified that the file was owned by backup, the amanda user, which it is, and that backup owns the entire config directory. Any help would be MUCH appreciated. Many thanks Nigel Barker
Re: Solaris 8 Overland Tape changer config
Jay On Mon, Mar 03, 2003 at 02:54:11PM -, Nigel Barker wrote: I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda 2.4.3 mtx 1.2.17 amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do ^ I assume the real amanda.conf doesn't have this typo. I copied it from the file, the typo was there, I've corrected it but it hasn't changed the behaviour at all (which feels like a clue to me...) Did you catch the 2nd typo ? You have an o rather than a 0 as the last character of the device name.
Re: Solaris 8 Overland Tape changer config
On Mon, Mar 03, 2003 at 03:28:54PM -0500, Brian Cuttler wrote: Jay On Mon, Mar 03, 2003 at 02:54:11PM -, Nigel Barker wrote: I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive. Amanda 2.4.3 mtx 1.2.17 amanda.conf contains :- tpchanger chg-zd-mtx tapedev /dev/rmt/1n changerfile /usr/local/share/amanda/Daily/chg-zd-mtx changerdev /dev/scsi/cganger/c1t6do ^ I assume the real amanda.conf doesn't have this typo. I copied it from the file, the typo was there, I've corrected it but it hasn't changed the behaviour at all (which feels like a clue to me...) Did you catch the 2nd typo ? You have an o rather than a 0 as the last character of the device name. And shouldn't the changer filename end with .conf as per your earlier post? jl -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Solaris 8 Overland Tape changer config
On Mon, Mar 03, 2003 at 01:37:12PM -0500, Brian Cuttler wrote: I may have been missing something in my config - something like an environmental variable, but I found that I wasn't able to run chg-zd-mtx successfully unless I was in the directory with the data information. That is normal. From docs/TAPE.CHANGERS: 3. DEVICE-SPECIFIC TAPE CHANGER SCRIPT The tape changer script/program is always run* from the directory with amanda.conf. It is never passed the configuration name it is running on behalf of, but since amgetconf works without a name from the current directory, that should be sufficient. * the word run was assumed to be missing and added for this email; do I need to submit a patch? :) -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Help getting tape changer to work on Solaris 2.8
On Wed, Feb 26, 2003 at 09:54:00AM -, Nigel Barker wrote: Thought 2. you did not say if you had a changer, make, model, /dev entry. If not, you needn't use any changer entries Overland XB with a DLT700 drive. dlt /dev/rmt/1n (I've had the tape respond to this, so i know its right) Well, at least it works. Does rmt/0 also work (say with tar or dd)? changer /dev/sq/c3t610 (created using Veritas stuff, I can't vouch for it) Guessing here, sq == sequential, which is one of the sgen driver types. An c3tXXX sounds like c == controller 3, t == target XXX, but certainly not target 610 as the target generally means scsi id, like 0-15. Are you sure that is not c3t6d0 (target 6 device, i.e. lun, 0). But the location is not what I've seen. What is /dev/sq/c3t610, a device, a symlink (to what?)? Is there a /dev/scsi/sequential/* with maybe the same information? How about /dev/changer/? Thought 3. you have changerfile set to chg-multi. that would suggest your tpchanger should also be chg-multi Done that, now playing with the chg-multi.conf file I should have written they need to match, not that you should choose chg-multi. multi is meant for multiple drives, not for a changer. Thought 4. for my Solaris system and drive chg-mtx worked fine. others have used chg-zd-mtx (note you will have to obtain and install mtx). Still others have configured the sgen (generic scsi?) driver and used chg-scsi, or the chg-mtx's I explored mtx and sgen, and was unable to get either to create a device for me. Not surprising that mtx didn't create a device. It doesn't. It operates on a changer device. Maybe your /dev/sq/* device. Thought 5. /dev/rmt/1n ? Do you have another tape drive at 0? /dev/rmt/1n responds as the tape drive, but I don't have anything I can get to respond at /dev/rmt/0n, even though all the files are there in /dev/rmt/ Is this something I should investigate, or can I ignore them? Do you only have one tape drive/changer? Is other software going to be screwed up in some important way if the device names change? If only 1 and no other software problems, you could get a complete device reconfiguation and likely move the drive to drive 0, removing all else. The stuff in /dev/rmt are just symlinks to stuff in /devices. A device reconfiguration at reboot would entail touch /reconfigure and reboot or at boot time, at the ok prompt, do a b -r (boot -r). Sometimes old stuff keeps reappearing. If so, rm all the /devices/.../*st* (st == scsi tape, or is it sequential tape) devices that are pointed to from /dev/rmt and all the /dev/rmt links. Then either the reconfiguration reboot or read up on devfsadm to recreate the devices without reboot. The deprecated, obscelescent command tapes would also do the same device recreation I think. Thought 6. the device /dev/rmt/1n is choosing the default density and/or compression for your tape drive. If that is what you want, fine, otherwise check into 1ln, 1mn, ... Ah, wondered what they all were! I'll investigate, thanks for the heads up prtconf -v will give lots of output including some stuff about st devices. Included will be what tape device(s) it recognizes at boot time. From this you can get pointers into the /kernel/drv/st.conf file to explore further the entries for that kind of tape drive. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
RE: Help getting tape changer to work on Solaris 2.8
Jon Thanks for the reply. I'm embarrassed that I missed so much essential info out of my initial email :( (I work in support, I should have known better) Thought 1, its good to specify which amanda version you are using. build: VERSION=Amanda-2.4.3 Thought 2. you did not say if you had a changer, make, model, /dev entry. If not, you needn't use any changer entries Overland XB with a DLT700 drive. dlt /dev/rmt/1n (I've had the tape respond to this, so i know its right) changer /dev/sq/c3t610 (created using Veritas stuff, I can't vouch for it) Thought 3. you have changerfile set to chg-multi. that would suggest your tpchanger should also be chg-multi Done that, now playing with the chg-multi.conf file Thought 4. for my Solaris system and drive chg-mtx worked fine. others have used chg-zd-mtx (note you will have to obtain and install mtx). Still others have configured the sgen (generic scsi?) driver and used chg-scsi, or the chg-mtx's I explored mtx and sgen, and was unable to get either to create a device for me. Thought 5. /dev/rmt/1n ? Do you have another tape drive at 0? /dev/rmt/1n responds as the tape drive, but I don't have anything I can get to respond at /dev/rmt/0n, even though all the files are there in /dev/rmt/ Is this something I should investigate, or can I ignore them? Thought 6. the device /dev/rmt/1n is choosing the default density and/or compression for your tape drive. If that is what you want, fine, otherwise check into 1ln, 1mn, ... Ah, wondered what they all were! I'll investigate, thanks for the heads up Cheers Nige Here's the current error :- $amtape Daily reset amtape: no tpchanger specified in /usr/local/etc/amanda/Daily/amanda.conf $ Here is the relevant section of the amanda.conf file :- #runtapes 1# number of tapes to be used in a single run of amdump #tpchanger chg-manual# the tape-changer glue script tapedev /dev/rmt/1n# the no-rewind tape device to be used #rawtapedev /dev/null# the raw device to be used (ftape only) changerfile /usr/local/share/amanda/Daily/chg-multi.conf #changerfile /usr/adm/amanda/DailySet1/changer-status #changerfile /usr/local/etc/amanda/DailySet1/changer.conf #changerdev /dev/null Assuming that I need to uncomment the tpchanger line, what should I point it at? Am I right customising and using chg-multi.conf? Any thoughts/guidance appreciated.
Help getting tape changer to work on Solaris 2.8
Hi I'm trying to set up amanda, struggling a bit. (My fault, I suspect, nothing to do with the software!) Here's the current error :- $amtape Daily reset amtape: no tpchanger specified in /usr/local/etc/amanda/Daily/amanda.conf $ Here is the relevant section of the amanda.conf file :- #runtapes 1# number of tapes to be used in a single run of amdump #tpchanger chg-manual# the tape-changer glue script tapedev /dev/rmt/1n# the no-rewind tape device to be used #rawtapedev /dev/null# the raw device to be used (ftape only) changerfile /usr/local/share/amanda/Daily/chg-multi.conf #changerfile /usr/adm/amanda/DailySet1/changer-status #changerfile /usr/local/etc/amanda/DailySet1/changer.conf #changerdev /dev/null Assuming that I need to uncomment the tpchanger line, what should I point it at? Am I right customising and using chg-multi.conf? Any thoughts/guidance appreciated. Cheers Nigel Barker - Technical Support Engineer - Cambridge, UK Applied Psychology Research http://www.youmeus.com
Re: Help getting tape changer to work on Solaris 2.8
On Tue, Feb 25, 2003 at 05:35:08PM -, APR Technical Support wrote: Hi I'm trying to set up amanda, struggling a bit. (My fault, I suspect, nothing to do with the software!) Here's the current error :- $amtape Daily reset amtape: no tpchanger specified in /usr/local/etc/amanda/Daily/amanda.conf $ Here is the relevant section of the amanda.conf file :- #runtapes 1# number of tapes to be used in a single run of amdump #tpchanger chg-manual# the tape-changer glue script tapedev /dev/rmt/1n# the no-rewind tape device to be used #rawtapedev /dev/null# the raw device to be used (ftape only) changerfile /usr/local/share/amanda/Daily/chg-multi.conf #changerfile /usr/adm/amanda/DailySet1/changer-status #changerfile /usr/local/etc/amanda/DailySet1/changer.conf #changerdev /dev/null Assuming that I need to uncomment the tpchanger line, what should I point it at? Am I right customising and using chg-multi.conf? Any thoughts/guidance appreciated. Thought 1, its good to specify which amanda version you are using. Thought 2. you did not say if you had a changer, make, model, /dev entry. if not, you needn't use any changer entries Thought 3. you have changerfile set to chg-multi. that would suggest your tpchanger should also be chg-multi Thought 4. for my Solaris system and drive chg-mtx worked fine. others have used chg-zd-mtx (note you will have to obtain and install mtx). still others have configured the sgen (generic scsi?) driver and used chg-scsi, or the chg-mtx's Thought 5. /dev/rmt/1n ? Do you have another tape drive at 0? Thought 6. the device /dev/rmt/1n is choosing the default density and/or compression for your tape drive. if that is what you want, fine, otherwise check into 1ln, 1mn, ... -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Choice for tape changer?
If I have to buy a new changer (or new to us...), what would be a good choice? The capacity of the TSL-S7000 is sufficient. A changer that there are specs for, that holds about 7 tapes, that is relatively inexpensive... what are my choices? -- John Oliver, CCNAhttp://www.john-oliver.net/ Linux/UNIX/network consulting http://www.john-oliver.net/resume/ *** sendmail, Apache, ftp, DNS, spam filtering *** Colocation, T1s, web/email/ftp hosting
tape-changer
Hello, I'm installing amanda 2.4.2p2 on Solaris 8 and would like to configure it to use an HP c7145 tape Jukebox. That is an LTO jukebox with a 9 tape capacity. So we need to configure a tape changer... tpchanger chg-mtx # the tape-changer glue script changerfile /usr/local/etc/amanda/ninfo/changer.conf I'm completely uncertain if I should be using chg-mtx or chg-multi, I'm guessing mtx as it is described as former hp-changer. Also I don't know where to look up the parameters for the drive, eject parameters, length, filemark, speed... The LTO is similar to the SDLT in physical appearance (not that that matters much) and also in capacity. Please tell me I'm not the first to try to use this particular jukebox and tape type. thanks, Brian --- Brian R Cuttler [EMAIL PROTECTED] Computer Systems Support(v) 518 486-1697 Wadsworth Center(f) 518 473-6384 NYS Department of HealthHelp Desk 518 473-0773
RE: Tape Changer Question
If I understand the working of Amanda correctly, Amanda will postpone some full dumps if the estimate of all the filesystems are larger than one tape even though the setup is to use two tape drives. Amanda will write to one tape until the full and write to the second tape. Correct me if I'm wrong. Can Amanda breaks up the backup job so it can spread the filesystems that are backup to multiple tapes? For example, amanda will backup those filesystems that fits on one tape and backup the rest of the filesystems to the other tape which will reduce the postpone of some full backups. Yan Lam - Systems Administrator Unify Corporation, http://www.unify.com T: 916 * 928-6226 E: [EMAIL PROTECTED] The brightest future will always be based on a forgotten past, you can't go on well in life until you let go of your past failures and heartaches. -Original Message- From: Jon LaBadie [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 9:57 PM To: '[EMAIL PROTECTED]' Subject: Re: Tape Changer Question On Fri, Nov 15, 2002 at 03:05:01PM -0800, Yan Lam wrote: Currently, I have Amanda doing backups with two tape drives ( both are DLT7000 drives). I noticed that Amanda deferred many level 0 backups with the ...[dumps too big, full dump delayed] in the log file. The first tape is filled; however, the second tape only taped 8GB of data. My question is that if Amanda is setup to use both tape drives (both tapes), wouldn't Amanda will try to fill up both tape as much as possible instead of postpone the level0 backups? More likely the estimated size of the dump of that disklist entry (DLE) was larger than would fit on the tape. Remember that amanda can not backup a DLE that is larger than a single tape. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Tape Changer Question
Currently, I have Amanda doing backups with two tape drives ( both are DLT7000 drives). I noticed that Amanda deferred many level 0 backups with the ...[dumps too big, full dump delayed] in the log file. The first tape is filled; however, the second tape only taped 8GB of data. My question is that if Amanda is setup to use both tape drives (both tapes), wouldn't Amanda will try to fill up both tape as much as possible instead of postpone the level0 backups? Yan Lam - Systems Administrator Unify Corporation, http://www.unify.com http://www.unify.com T: 916 * 928-6226 E: [EMAIL PROTECTED] May you have enough happiness to make you sweet, enough trials to make you strong, enough sorrow to keep you human, enough hope to make you happy.
Re: Tape Changer Question
On Fri, Nov 15, 2002 at 03:05:01PM -0800, Yan Lam wrote: Currently, I have Amanda doing backups with two tape drives ( both are DLT7000 drives). I noticed that Amanda deferred many level 0 backups with the ...[dumps too big, full dump delayed] in the log file. The first tape is filled; however, the second tape only taped 8GB of data. My question is that if Amanda is setup to use both tape drives (both tapes), wouldn't Amanda will try to fill up both tape as much as possible instead of postpone the level0 backups? More likely the estimated size of the dump of that disklist entry (DLE) was larger than would fit on the tape. Remember that amanda can not backup a DLE that is larger than a single tape. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: tape changer
At 11:27 03/10/2002 +0200, you wrote: Hm, are you shure /dev/sg0 is your changer? does it have scsi-id 0 or is the lowest id on your scsi-bus? if not count the devices with lower id's and use this number as x in /dev/sgx. Christoph I can successfully load and unload tape using mtx. So, yes, I'm sure sg0 is my changer. I've also switched to the chg-zd-mtx changer script as this seems more appropriate to my system. With tapedev as /dev/nst0 and changerdev as 0, I now get this error, which I'm not sure how to sort backup@amanda:/etc/amanda/Changer$ amtape Changer show amtape: could not get changer info: cannot determine first slot Regards Mart.
RE: tape changer
I don't use either, but I thought chg-mtx and chg-zd-mtx were different, and that difference was in the output of the two commands, hence what looks like a parsing error below. -Original Message- From: Martin A. Brooks [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 5:41 AM To: [EMAIL PROTECTED] Subject: Re: tape changer At 11:27 03/10/2002 +0200, you wrote: Hm, are you shure /dev/sg0 is your changer? does it have scsi-id 0 or is the lowest id on your scsi-bus? if not count the devices with lower id's and use this number as x in /dev/sgx. Christoph I can successfully load and unload tape using mtx. So, yes, I'm sure sg0 is my changer. I've also switched to the chg-zd-mtx changer script as this seems more appropriate to my system. With tapedev as /dev/nst0 and changerdev as 0, I now get this error, which I'm not sure how to sort backup@amanda:/etc/amanda/Changer$ amtape Changer show amtape: could not get changer info: cannot determine first slot Regards Mart.
tape changer
Hi there I'm trying to use a Dell Powervault T130 with AMANDA and I'm having some difficulties. Specifically... backup@amanda:~$ amtape Changer reset amtape: could not reset changer: /dev/sg0: failed backup@amanda:~$ amtape Changer taper amtape: scanning for a new tape. amtape: could not get changer info: /dev/sg0: failed I'm using the chg-scsi changer option - could anyone indicate what I've missed? Regards Mart.
RE: tape changer
Here's a few things to try: 1. make the tape changer work separately from any AMANDA components. You might need zd-mtx or similar. (I use the ch driver and utilities from http://www.strusel007.de/linux/changer.html.) I'm guessing you're using some flavor of linux based on the device name /dev/sg0. 2. Make AMANDA work with the tape drive in the changer using the chg-manual changer. This means that before every backup, you will have to use the control commands from step 1 to load the right tape, but your backups will be working. 3. try the AMANDA changer script that matches the changer-driver you've selected. If you're using the one I linked to above, search the list archives for my chg-userland perl script that glues it to AMANDA, or let me know if you can't find it, and I'll re-post it. -Original Message- From: Martin A. Brooks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 11:13 AM To: [EMAIL PROTECTED] Subject: tape changer Hi there I'm trying to use a Dell Powervault T130 with AMANDA and I'm having some difficulties. Specifically... backup@amanda:~$ amtape Changer reset amtape: could not reset changer: /dev/sg0: failed backup@amanda:~$ amtape Changer taper amtape: scanning for a new tape. amtape: could not get changer info: /dev/sg0: failed I'm using the chg-scsi changer option - could anyone indicate what I've missed? Regards Mart.
Qualstar 8000 -- request tape changer software recommendation
I'm considering using amanda with a Qualstar TLS-8111. If anyone has had success using tape changer software with a Qualstar 8000 series library, I would appreciate knowing which tape changer software was used. Does mtx (on Solaris8) work with this library?
Re: tape changer
On Mon, 2002-06-10 at 10:37, Craig Hancock wrote: Hello all I have a Overlan Ait-3 Library Pro. I beileve I have everything configured. When I attempt to issue a command such as amtape config update I always get this error could not load slot 2: Drive not ready after 120 seconds, rewind said /dev/st0: Input/output error I also get the same error when I run amlabel I am using the chg-zd-mtx Tape changer with one config If anyone can provide any assitance I'd greeatly appriciate it. The only recommendation about overland changers I can make is to check on the front-panel menus and see if it is set to SCSI-3 or SCSI-2 mode; try SCSI-2, as it seems to reject the SCSI-2 commands in SCSI-3 mode (which is not, to my knowledge how the standard reads, I think SCSI-3 commands are in *addition* to the SCSI-2 ones, but...)
Re: Fwd: tape changer problem
On Thursday 07 March 2002 09:18 am, Zhen Liu wrote: Zhen Liu Via Webmail [EMAIL PROTECTED] This is a repost. Did you not receive my reply from yesterday? That reply should have contained something helpfull... -- Forwarded message --- From: Zhen Liu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 04 Mar 2002 12:03:21 -0500 Hi, I am working on the amanda backup project now, and I am a newbie for both amanda and linux... right now, I have some problem with our tape changer...SOS!!! HELP!!! The OS I am working on is Linux RH7.1, the tape changer we have is Adic Fastor, Quantum 7000 tape drive. I guess that something must be wrong with my configuration...when i run amcheck i get amcheck-server: could not get changer info: open: /dev/sg0: success -relevant part from /etc/amanda/daily/amanda.conf runtapes 2 tpchanger chg-scsi tapedev 0 changerfile etc/amanda/DailySet1/changer.conf changerdev dev/sg0 - /etc/amanda/DailySet1/changer.conf- number_configs 1 # eject 1 sleep60 cleanmax 1000 changerdev /dev/sg0 # # Next comes the data for drive 0 # config 0 drivenum 0 dev /dev/nst0 startuse 0 enduse 6 statfile /etc/amanda/DailySet1/st0-slot cleancart-1 cleanfile/etc/amanda/DailySet1/st0-clean usagecount /etc/amanda/DailySet1/st0-totaltime So, I am totally lost...Help? Thanks... Zhen Liu Via Webmail [EMAIL PROTECTED] -- Cheers, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 98.6+% setiathome rank, not too shabby for a hillbilly
Re: amtape and tape changer problem
: pDeviceCapabilitiesPage == NULLChgExit in CheckMove, reason DeviceCapabilitiesPage == NULL [root@apple amanda]# --- Hi, On Thu, Mar 14, 2002 at 09:00:06AM -0500, Zhen Liu wrote: Hi, Thank you very much for your suggestion. Meanwhile, I got another problem...when I enter the command amtape daily show I got the following message: scanning all 7 slots in tape-changer rack: slot1: date X Label DailySet11 amtape: could not load slot DeviceCapabilitiesPage: == Null. Hmm, that is an indicator that the device for the robot is wrong. Can you send the debug output (/tmp/amanda) Thomas -- --- | Thomas Hepper[EMAIL PROTECTED] | | ( If the above address fail try ) | | ( [EMAIL PROTECTED])| --- Zhen Liu Via Webmail [EMAIL PROTECTED]
Re: Help please, tape changer under Linux
- Original Message - From: Stan Brown [EMAIL PROTECTED] To: amanda users lisr amanda [EMAIL PROTECTED] Sent: sabato 24 novembre 2001 04:03 Subject: Help please, tape changer under Linux I've been happily using Amanda for years now, and I finaaly have obtained a tape changer! It's a HP C1557A 6 slot DDS-3 slot adressable changer. I want to use this on Debian Linux. I'm using it too, it works well on my linux box ... I'v got a version of mtx that works this script corectly (using /dev/sg0). It seems to be the version that requiers :long: options. What chnager should I use? I'm using mtx too, but remember that the HP C1557A does not have a separate scsi id for the changer, but shares the some ID with the tape drive ... Does anyone have example config lines for amanda.conf for this? and a changer conf file alos if possible. This is mine, hope this is usefull for you too: # tape drive tapedev /dev/nst0 # the no-rewind tape device to be used changerdev /dev/nst0 # the no-rewind tape changer device tpchanger chg-zd-mtx # the tape-changer glue script My amanda tape server box is a linux redhat 5, amanda 2.4.1p1, zd-mtx. Sorry if this is a repeat. I posted it a few weeks agao, when this list was having problems, and never got enough inof to make it work. -- Stan Brown [EMAIL PROTECTED] 843-745-3154 Charleston SC. -- Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. - (c) 2000 Stan Brown. Redistribution via the Microsoft Network is prohibited.
MRU tape changer software from Compaq
Ref. an article from far, far away (Date: 2000/04/20): (article quoted below) I am trying to use the changer option with the MRU software from Compaq. This software has an entry point via the `robot` command and has syntax such these examples: robot load slot 0 drive 0 robot unload drive 0 slot 0 Does anyone have any more information about configuring Amanda for use with an MRU changer utility? Is it true that the changerfile and changerdev variables are unnecessary? (as shown below) I have a notion that simply providing a symlink to the robot utility in /Amanda_Installation_Location/libexec is overly simplistic and will probably not work as the interface Amanda expects may not be consistent with the MRU command interface. Tips...? Please send them to me via private e-mail. (if you prefer) or send to the list if appropriate... I really could use some help... Config files, etc... I will post a summary of the entire installation process, to help others find answers in the future... Thanx! JF From: Nick Manka ([EMAIL PROTECTED]) Subject: Re: Any good websites devoted to Amanda and DLT robotic tape changers In article [EMAIL PROTECTED], Edward Jong [EMAIL PROTECTED] writes: I used the media changer program and it works fine, but I am looking at the amanda.conf and tape changer examples that is supplied with amanda and I trying to figure them out. I looking at working implementation of amanda but it is only using a regular tape drive (single, not robotic) Here is the relevant section of our amanda.conf, pretty short: runtapes 9 # number of tapes to be used in a single run of amdump tpchanger chg-mru# the tape-changer glue script tapedev /dev/changer/nrmt0h # the no-rewind tape device to be used #changerfile /var/adm/amanda/conf/.../changer.conf #changerdev /dev/mc24 (the script we use, chg-mru, can pull the changer[dev|file] options via libexec/getconf but I hardcoded them during testing). stc-changer seems to have all it's configuration either hard-coded into the script itself and or pulled from the stctl.conf on your machine. Ideally, all you need is to define the tpchanger and runtapes values and then place the stc-changer script into the Amanda libexec directory.
Variables to control tape changer
Hello, I have just acquirred a Quantum/ATL L500 library. -yay- I believe I have it functioning correctly, but there sure appears to be some arcane information regarding the changerfile configuration for chg-scsi. Here are my thougts/questions: 1) why would I want to use scsitapedev instead of dev in my changer config file? 2) What is the purpose of the sleep variable? Is it the time amanda will wait from when the changer returns to when the tape can be used? I set mine to 140 seconds as the documentation for my tape drive shows an average of 133 seconds to load a blank tape. 3) it is not clear if I can tell amanda to tell the tape changer a barcode value to load instead of searching the slots... = Now here are the specifics My amanda server is a dual pIII redhat 7.0 linux box, running amanda-2.4.3b3. this machine has the following tape hardware attached: /dev/nst0: sony dds3 4mm drive only (currently used to do backups) /dev/nst1: quantum/atl dlt8000 (tape on library) /dev/sg1: Tape changer mechanism. #dev= scsitapedev=/dev/nst1 amcheck-server: slot n: tape_rdlabel: tape open: 0: no such file or directory my chg-scsi file showed: warning open of 0: failed #dev= scsitapedev=/dev/sg0 I can't recall, but it didn't work dev=/dev/nst1 #scsitapedev= This is where I got the thing working correctly. perhaps /dev/sg0 would have worked, if I had unloaded kernel module st, and reloaded sg. I didn't want to do that though since I am running backups on /dev/nst0. What do you all think? Should I also post this to amanda-developers? --jason -- ~~~ Jason Brooks ~ (503) 641-3440 x1861 Direct ~ (503) 924-1861 System / Network Administrator Wind River Systems 8905 SW Nimbus ~ Suite 255 Beaverton, Or 97008
tape changer
Hello all I have a Overlan Ait-3 Library Pro. I beileve I have everything configured. When I attempt to issue a command such as amtape config update I always get this error could not load slot 2: Drive not ready after 120 seconds, rewind said /dev/st0: Input/output error I also get the same error when I run amlabel I am using the chg-zd-mtx Tape changer with one config If anyone can provide any assitance I'd greeatly appriciate it. Craig Hancock
tape changer chg-scsi problem
Hi, I've being using amanda for a couple of years. Recently I upgrade amanda from 2.4.1 to 2.4.2p2. I also upgrade the clients to 2.4.2p2. Now I have problems with chg-scsi. I red once that the new version of amanda's chg-scsi changer supports Exabyte's X220 library. I configured amanda.conf with chg-scsi: tpchanger /usr/lib/amanda/chg-scsi tapedev 0 rawtapedev /dev/null # the raw device to be used (ftape only) changerfile /etc/amanda/Daily/chg-scsi.conf changerdev /dev/sg0 In chg-scsi.conf I set eject 0 (to use eject), changer to sg0, tape to nst0, cleancart to 1, rotate tapes between 10 and 19. Here is my chg-scsi.conf: number_configs 1 eject 2 # Tapedrives need an eject command sleep 25 # Seconds to wait until the tape gets ready changerdev /dev/sg0 # Next comes the data for drive 0 config 0 # Daily drivenum0 dev /dev/nst0 # the device that is used for the tapedrive 0 scsitapedev /dev/sg0 tapestatus /home/amanda/Daily/tapestatus labelfile /home/amanda/Daily/labelfile startuse10 enduse 19 statfile/home/amanda/Daily/statfile cleancart 1 cleanfile /home/amanda/Daily/tape-clean usagecount /home/amanda/Daily/totaltime 'chg-scsi -status' seems to recognize that the library has 21 elements: DecodeModeSense : Element Address Assignment Page Medium Transport Element Address 86 Number of Medium Transport Elements 1 First Storage Element Address 0 Number of Storage Elements 21 First Import/Export Element Address 0 Number of ImportExport Elements0 First Data Transfer Element Address 82 Number of Data Transfer Elements 1 but 'amtape config update' doesn't unload a tape to the slot from where it was previously loaded but unload it always to slot 1 (that is declared as cleancart and shouldn't be used). Than I get 'Input/output error': [amanda@craft83 amanda]$ amtape Daily update amtape: scanning all 10 slots in tape-changer rack: slot 0: date 20020520 label Daily_0039 slot 1: rewinding tape: Input/output error What is wrong with my configuration? Thanks in advance, Ted P.S. Here is the output from 'chg-scsi -status all' [amanda@craft83 amanda]$ chg-scsi -status all Ident = C1553A, type = HP Auto Loader [C1553A] Ident = EXB-10e, type = Exabyte Robot [EXB-10e] Ident = EXB-120, type = Exabyte Robot [EXB-120] Ident = EXB-230D, type = Exabyte Robot [EXB-230D] Ident = EXB-85058HE-, type = Exabyte Tape [EXB-85058HE-] Ident = TDS 1420, type = Tandberg Robot (TDS 1420) Ident = DLT7000, type = DLT Tape [DLT7000] Ident = DLT4000, type = DLT Tape [DLT4000] Ident = VLS DLT, type = ADIC VLS DLT Library [VLS DLT] Ident = VLS SDX, type = ADIC VLS DLT Library [VLS SDX] Ident = Scalar DLT 448, type = ADIC DLT 448 [Scalar DLT 448] Ident = 215, type = Spectra Logic TreeFrog[215] Ident = generic, type = Generic driver tape/robot [generic] Address Type Status From --- 086 MTE Empty -001 000 STE Empty 0082 001 STE Full -001 002 STE Full -001 003 STE Full -001 004 STE Full -001 005 STE Full -001 006 STE Full -001 007 STE Full -001 008 STE Full -001 009 STE Full -001 010 STE Full 0082 011 STE Full -001 012 STE Full -001 013 STE Full -001 014 STE Full -001 015 STE Full -001 016 STE Full 0082 017 STE Full 0082 018 STE Empty 019 STE Full -001 020 STE Full -001 082 DTE Full 0018 Sense Status from robot: # START DecodeExtSense Extended Sense # START DecodeSense Sense Keys ErrorCode 70 Valid 0 ASC 00 ASCQ 00 Sense key 00 No Sense Log Parameter Page Code 00 Log Parameter Code 00 Underrun/Overrun Counter00 Read/Write Error Counter1 Remaing 1024 byte tape blocks -128 Tracking Retry Counter 00 Read/Write Retry Counter12 Fault Sympton Code 00 Sense Status from tape: # START DecodeExtSense Extended Sense # START DecodeSense Sense Keys ErrorCode 70 Valid 0 ASC 00 ASCQ 00 Sense key 00 No Sense Log Parameter Page Code 00 Log Parameter Code 00 Underrun/Overrun Counter00 Read/Write Error Counter66 Formatted Buffer parity Error Error Counter Overflow TapeMotion Error Logical Beginning of tape
OpenBSD, AMANDA 2.4.2p2 and a HP 24x6 tape changer...
I have a HP SureStore DDS-3 24x6 tape changer. This changer worked as expected with AMANDA under Linux but I have huge problems getting it to work with chg-scsi. I can navigate the changer with chio and talk to the tape with mt. Is there someone using chg-scsi with a HP tape changer under a OpenBSD or another BSD? If so, could you please send me your config file? I have problems figureing out which devices I should use. Under Linux I used: changerdev /dev/sg0 dev /dev/nst0 scsitapedev/dev/sg1 Sven
Re: OpenBSD, AMANDA 2.4.2p2 and a HP 24x6 tape changer...
On Saturday 11 May 2002 06:55 pm, Sven Kirmess wrote: I have a HP SureStore DDS-3 24x6 tape changer. This changer worked as expected with AMANDA under Linux but I have huge problems getting it to work with chg-scsi. I can navigate the changer with chio and talk to the tape with mt. Is there someone using chg-scsi with a HP tape changer under a OpenBSD or another BSD? If so, could you please send me your config file? I have problems figureing out which devices I should use. Under Linux I used: changerdev /dev/sg0 dev /dev/nst0 scsitapedev/dev/sg1 Sven I'm not running the HP, but a Seagate 4 tape changer, with chg-scsi.conf as follows, there may be some help here. number_configs 1 # emubarcode0 debuglevel 0:0 eject 0 # Tapedrives need an eject command sleep 30 # Seconds to wait until the tape gets ready cleanmax 100 # How many times could a cleaning tape get used changerdev /dev/sg1 # # Next comes the data for drive 0 # config 0 drivenum 0 dev /dev/nst0 # the device that is used for the tapedrive 0 # scsitapedev /dev/sg1# apparently not required # amanda uses base 0 numbering, so startuse0 # The slots associated with the drive 0 enduse 2 # statfile/usr/local/etc/amanda/tape5-slot # The file where the actual slot is stored cleancart 3 # the slot where the cleaningcartridge for drive 0 is located cleanfile /usr/local/etc/amanda/tape0-clean # The file where the cleanings are recorded usagecount /usr/local/etc/amanda/backup/totaltime tapestatus /usr/local/etc/amanda/tapestatus # TH # TH Added the labelfile to record which tape is in which slot. # TH this will speed up things on large changer to # TH find a specific tape labelfile /usr/local/etc/amanda/labelfile # This is the end I'd start by adjusting the enduse and cleancart numbers to reflect your HP's 6 tape capacity. -- Cheers, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 98.89+% setiathome rank, not too shabby for a hillbilly
which tape changer glue script to use?
I have a Breece Hill Q2.15 with 15 slots and one drive. I cannot get amanda to see any tapes in the drive...even though mtx reports differently: any suggestions or references greatly appreciated. # mtx -f /dev/sg1 status Storage Changer /dev/sg1:1 Drives, 15 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full Storage Element 7:Full Storage Element 8:Full Storage Element 9:Full Storage Element 10:Full Storage Element 11:Full Storage Element 12:Full Storage Element 13:Full Storage Element 14:Full Storage Element 15:Full Here are the relevant lines from amanda.conf: runtapes 1 # number of tapes to be used in a single run of amdump tpchanger chg-multi # the tape-changer glue script #tpchanger chg-mtx #tpchanger chg-zd-mtx #use if mtx uses load, unload (unary error) tapedev /dev/nst0 # the no-rewind tape device to be used #rawtapedev /dev/null # the raw device to be used (ftape only) #changerfile /var/lib/amanda/DailySet1/changer #changerfile /var/lib/amanda/DailySet1/changer-status #changerfile /etc/amanda/DailySet1/changer.conf changerfile /etc/amanda/daily/changer.conf changerdev /dev/sg1 and from changer.conf: # Enumerate the device files that go with the particular tape changer # slots. Don't forget to specify the no-rewind version of the device. slot 0 /dev/nst0 slot 1 /dev/nst0 slot 2 /dev/nst0 slot 3 /dev/nst0 slot 4 /dev/nst0 slot 5 /dev/nst0 slot 6 /dev/nst0 slot 7 /dev/nst0 slot 8 /dev/nst0 slot 9 /dev/nst0 slot 10 /dev/nst0 slot 11 /dev/nst0 slot 12 /dev/nst0 slot 13 /dev/nst0 slot 14 /dev/nst0 slot 15 /dev/nst0 and the results of amcheck: bash-2.05$ /usr/sbin/amcheck daily Amanda Tape Server Host Check - Holding disk /usr/holdingdisk: 22639320 KB disk space available, that's plenty amcheck-server: slot 3: slot is empty amcheck-server: slot 4: slot is empty amcheck-server: slot 5: slot is empty amcheck-server: slot 6: slot is empty amcheck-server: slot 7: slot is empty amcheck-server: slot 8: slot is empty amcheck-server: slot 9: slot is empty amcheck-server: slot 10: slot is empty amcheck-server: slot 11: slot is empty amcheck-server: slot 12: slot is empty amcheck-server: slot 13: slot is empty amcheck-server: slot 14: slot is empty amcheck-server: slot 15: slot is empty amcheck-server: slot 0: slot is empty amcheck-server: slot 1: slot is empty amcheck-server: slot 2: slot is empty ERROR: new tape not found in rack (expecting a new tape) NOTE: skipping tape-writable test NOTE: info dir /var/lib/amanda/daily/curinfo: does not exist NOTE: it will be created on the next run NOTE: index dir /var/lib/amanda/daily/index: does not exist Server check took 1.258 seconds --snip-- thanks = Jonathan Murray Computer and Information Services Woods Hole Oceanographic Institution http://www.whoi.edu Woods Hole, MA 02543-1541 voice: (508) 289-2877 fax: (508) 457-2174 e-mail: [EMAIL PROTECTED] =
Elaboration on tape changer behavior
Can those with experience with changers elucidate some details for me? What is the AMANDA/amtape policy when rolling over from the last tape to the first tape in my Backup Set? My config specifies the following: dumpcycle 2 weeks runspercycle 5 tapecycle 10 tapes In my changer the slot numbering is zero-based. So I have tapes in slots 0 thru 9. Since I do not have a working changer script between amtape and my tape library manager sw layer, I am manually running robot load commands (etc...). I have three general questions: 1) Will amtape manage the rollover from tape slot 9 to slot 0, and, in general, do the right thing? Is there any manual intervention on tape slot rollover? For example. must the admin tell AMANDA that it is OK to write over a tape (tape 00)? 2) Is there any important information omitted from the document, AMANDA Tape Changer Support? Can it generally be trusted to specify the correct interfaces? I have found that some of the tape changer implementations in the AMANDA distribution do not correctly follow the API specifications in that document. 3) Do people with single tape robots use multiple tape magazines; swapping them out after one tapecycle... as in Magazine A then Magazine B, then back to A? Or do some people just keep running tapes through the magazine, ad infinitum? Or do most people leave the same magazine installed until the tapes wear out? I presume this last question (3) is largely dependent upon one's goals... So if anybody cares to elaborate on changer methodologies used to achieve particular goals, then I would be grateful. Other will surely benefit as this is not an area that is discussed in much depth. Thanks for your time... J
Re: Elaboration on tape changer behavior
--On Wednesday, April 24, 2002 13:23:08 -0700 John Koenig [EMAIL PROTECTED] wrote: Can those with experience with changers elucidate some details for me? What is the AMANDA/amtape policy when rolling over from the last tape to the first tape in my Backup Set? My config specifies the following: dumpcycle 2 weeks runspercycle 5 tapecycle 10 tapes In my changer the slot numbering is zero-based. So I have tapes in slots 0 thru 9. Since I do not have a working changer script between amtape and my tape library manager sw layer, I am manually running robot load commands (etc...). I have three general questions: 1) Will amtape manage the rollover from tape slot 9 to slot 0, and, in general, do the right thing? Is there any manual intervention on tape slot rollover? For example. must the admin tell AMANDA that it is OK to write over a tape (tape 00)? Yes, it knows to roll over from the last tape to the first, but see #3 below. 2) Is there any important information omitted from the document, AMANDA Tape Changer Support? Can it generally be trusted to specify the correct interfaces? I have found that some of the tape changer implementations in the AMANDA distribution do not correctly follow the API specifications in that document. I'll pass on this one. 3) Do people with single tape robots use multiple tape magazines; swapping them out after one tapecycle... as in Magazine A then Magazine B, then back to A? Or do some people just keep running tapes through the magazine, ad infinitum? Or do most people leave the same magazine installed until the tapes wear out? I presume this last question (3) is largely dependent upon one's goals... So if anybody cares to elaborate on changer methodologies used to achieve particular goals, then I would be grateful. Other will surely benefit as this is not an area that is discussed in much depth. You need at least a couple more tapes, since with your current setup if you ever have a tape error or an extra-large backup and need to amflush, it would need to overwrite an active tape. The other answer is, as you suspect, 'it depends'. If you do offsite rotations of your tapes, it is easier to do it a magazine at a time. If your robot holds several magazines you might want to cycle through one set for onsite backups and have a different Amanda config do offsite backups on another magazine that you replace each time. Even if you don't do offsite, swapping tapes a magazine at a time is much safer than swapping tapes. The tapes will last longer in a magazine (less likely to get banged around, dropped, dirtied, etc.), and you have fewer chances to get the tapes out of order. Magazines also stack better and are easier to store. I'm assuming your magazines can be swapped easily, if not then it might not be as favorable to swap them. Unfortunately, some vendors see magazines as an income opportunity and charge way too much for them. Also, do you need archival backups (to retrieve a file that was only around last June), or only the ability to restore what was there in the last few days or weeks. With your config, if a backup fails for some reason, and a file you need wasn't on the system in the last week, you may not have it (as you are just now about to overwrite your first tape, and whatever fulls it contains cannot be recreated with the following 4 incrementals so all you can recover from those filesytems of that week is the changed files. If the full of those filesystems can't be read from the one this week (due to a bad tape or whatever) you are SOL. I would recommend making sure you always have at least two full backups of everything, even if there are a couple of errors during your cycle. Good luck, Frank -- Frank Smith[EMAIL PROTECTED] Systems Administrator Voice: 512-374-4673 Hoover's Online Fax: 512-374-4501