Amanda-Users

Solaris 8, Amanda 2.4.2p2, chg-zd-mtx - amtape commands not working

2003-04-10 19:07:17
Subject: Solaris 8, Amanda 2.4.2p2, chg-zd-mtx - amtape commands not working
From: "Raymond Keckler" <kecklerr AT homes DOT com>
To: <amanda-users AT amanda DOT org>
Date: Thu, 10 Apr 2003 16:26:10 -0400

I have an E220 with a L1000 hooked up. The configurations is Solaris 8, Amanda 2.4.2p2 and chg-zd-mtx

The chg-zd-mtx script runs without a hitch. It will unload and load tapes with all its commands.

The amtape command does not however work.

 

-----------------

> mtx -f /dev/scsi/changer/c6t0d0 status

  Storage Changer /dev/scsi/changer/c6t0d0:2 Drives, 31 Slots ( 1 Import/Export )

Data Transfer Element 0:Full (Storage Element 9 Loaded):VolumeTag =                                

Data Transfer Element 1:Empty

      Storage Element 1:Full :VolumeTag=                               

      Storage Element 6:Full :VolumeTag=                               

      Storage Element 7:Full :VolumeTag=                               

      Storage Element 8:Full :VolumeTag=                               

      Storage Element 9:Empty

      Storage Element 10:Full :VolumeTag=                               

      Storage Element 11:Full :VolumeTag=                               

      Storage Element 30:Full :VolumeTag=                               

      Storage Element 31 IMPORT/EXPORT:Empty

-------------------

As you can see the tape is SE 9 is loaded into Drive 0.

I do the chg-zd-mtx command to load the next one and it works.

 

-------------------

> chg-zd-mtx -slot next

10 /dev/rmt/0n

> mtx -f /dev/scsi/changer/c6t0d0 status

  Storage Changer /dev/scsi/changer/c6t0d0:2 Drives, 31 Slots ( 1 Import/Export )

Data Transfer Element 0:Full (Storage Element 10 Loaded):VolumeTag =                                

Data Transfer Element 1:Empty

      Storage Element 1:Full :VolumeTag=                                

      Storage Element 7:Full :VolumeTag=                               

      Storage Element 8:Full :VolumeTag=                                

      Storage Element 9:Full :VolumeTag=                               

      Storage Element 10:Empty

      Storage Element 11:Full :VolumeTag=                               

      Storage Element 30:Full :VolumeTag=                               

      Storage Element 31 IMPORT/EXPORT:Empty

 

------------------

Now tape SE 10 is loaded into Drive 0.

Now the amtape command

 

------------------

> amtape daily slot next

amtape: could not load slot Unknown: option next

> amtape daily slot 12

amtape: could not load slot 0: illegal request

> amtape daily show

amtape: scanning all 20 slots in tape-changer rack:

slot 10: not an amanda tape

amtape: could not load slot Unknown: option next

---------------------

 

The configuration files are as follows.

----------------------

Amanda.conf:

org "daily"         # organization name for reports

dumpuser "amanda"   # the user to run dumps under

inparallel 1       # maximum dumpers run in parallel (max 63)

netusage  2000 Kbps # maximum net bandwidth for Amanda

dumpcycle 1 weeks   # days in the normal dump cycle

runspercycle 6      # number of amdump runs in dumpcycle days

tapecycle 2 tapes   # number of tapes in rotation

bumpsize 50 Mb      # minimum savings to bump level 1 -> 2

bumpdays 2          # minimum days at each level

bumpmult 2          # threshold = bumpsize * bumpmult^(level-1)

etimeout 300        # seconds per filesystem for estimates.

dtimeout 1800       # idle seconds before a dump is aborted.

tapebufs 20

runtapes 4          # number of tapes in a single run of amdump

tapedev "/dev/rmt/0n" # the no-rewind tape device to be used

changerdev "/dev/scsi/changer/c6t0d0"

tpchanger "chg-zd-mtx"

changerfile "/etc/amanda/daily/CHANGER"

tapetype DLT7000    # what kind of tape it is

labelstr "^VOL[0-9][0-9]*$" # label constraint regex

holdingdisk hd1 {

    comment "main holding disk"

    directory "/AMANDA/hold"    # where the holding disk is

    use 2 Gb       # how much space can we use on it

    chunksize 1Gb   # size of chunk if you want big dump to be

    }

infofile "/var/adm/amanda/daily/curinfo" # database DIRECTORY

logdir   "/var/adm/amanda/daily"         # log directory

indexdir "/var/adm/amanda/daily/index"   # index directory

 

CHANGER.conf:

firstslot=3

lastslot=20

cleanslot=1

 

AUTOCLEAN=0

autocleancount=99

havereader=1

offlinestatus=0

OFFLINE_BEFORE_UNLOAD=1

------------------------

 

Debug info:

 

# cat changer.debug.drive0

Thu Apr 10 16:24:33 EDT 2003 Invoked with args '-slot next'

2

-slot

STATUS -> currently loaded slot = 9

LOADSLOT -> load tape from slot next

         -> unload 9 from /dev/rmt/0n

         -> status 0, result 'Unloading Data Transfer Element into Storage Element 9...done'

         -> loading tape from slot 10 to /dev/rmt/0n

         -> status 0, result ''

         -> readyStatus = Quantum DLT7000 tape drive:

   sense key(0x6)= Unit Attention   residual= 0   retries= 0

   file no= 0   block no= 0

         -> rewind 10

Thu Apr 10 16:27:08 EDT 2003 Invoked with args '-slot next'

2

-slot

STATUS -> currently loaded slot = 10

LOADSLOT -> load tape from slot next

Thu Apr 10 16:27:19 EDT 2003 Invoked with args '-slot 12'

2

-slot

STATUS -> currently loaded slot = 10

LOADSLOT -> load tape from slot 12

Thu Apr 10 16:27:32 EDT 2003 Invoked with args '-info'

1

-info

STATUS -> currently loaded slot = 10

INFO -> current slot 10, last slot 20, can go backwards 1

Thu Apr 10 16:27:33 EDT 2003 Invoked with args '-slot current'

2

-slot

STATUS -> currently loaded slot = 10

LOADSLOT -> load tape from slot current

Thu Apr 10 16:27:37 EDT 2003 Invoked with args '-slot next'

2

-slot

STATUS -> currently loaded slot = 10

LOADSLOT -> load tape from slot next

 

---------------------------------

# cat amtape.20030410162732.debug

amtape: debug 1 pid 24524 ruid 400 euid 400 start time Thu Apr 10 16:27:32 2003

changer: got exit: 0 str: 10 20 1 1

changer: got exit: 0 str: 10 /dev/rmt/0n

changer: got exit: 2 str: Unknown option next

could not load slot Unknown: option next

amtape: pid 24524 finish time Thu Apr 10 16:27:39 2003

 

 

 

Any help is appreciated!

 

Thanks

 

Ray Keckler

<Prev in Thread] Current Thread [Next in Thread>
  • Solaris 8, Amanda 2.4.2p2, chg-zd-mtx - amtape commands not working, Raymond Keckler <=