ritl
June 22nd, 2007, 01:10 PM
Hi,
I'm using zmanda on a linux sytem with an exabyte 1x7 tape drive. I keep getting an error of drive not ready and don't understand why? Have increase the wait times but still the same -
Example - debug list
--------------------------------------------------------------------------
1182541382.704743: chg-zd-mtx: debug 1 pid 14529 ruid 0 euid 0: start at Fri Jun
22 15:43:02 2007
15:43:02 Using config file /etc/amanda/daily/changer.conf
15:43:02 Arg info:
$# = 2
$0 = "/usr/lib/amanda/chg-zd-mtx"
$1 = "-slot"
$2 = "next"
15:43:02 Running: mtxRunning: status
15:43:02 Exit code: 0
Stdout:
Storage Changer /dev/sg0:1 Drives, 7 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = A00001
Storage Element 1:Empty:VolumeTag=
Storage Element 2:Full :VolumeTag=A00002
Storage Element 3:Full :VolumeTag=A00003
Storage Element 4:Full :VolumeTag=A00004
Storage Element 5:Full :VolumeTag=A00005
Storage Element 6:Full :VolumeTag=A00006
Storage Element 7:Full :VolumeTag=A00007
15:43:02 Config info:
firstslot = "1"
lastslot = "6"
cleanslot = "7"
cleancycle = "120"
offline_before_unload = "0"
unloadpause = "240"
autoclean = "0"
autocleancount = "99"
havereader = "1"
driveslot = "0"
poll_drive_ready = "240"
initial_poll_delay = "240"
max_drive_wait = "240"
15:43:02 LOADSLOT -> load drive 0 (/dev/sg0) from slot next
15:43:02 STATUS -> currently loaded slot = 1
-> currently loaded barcode = "A00001"
15:43:02 EJECT -> ejecting tape from /dev/sg0
15:43:02 STATUS -> currently loaded slot = 1
-> currently loaded barcode = "A00001"
15:43:03 EJECT -> moving tape from drive 0 to storage slot 1
15:47:03 Running: mtxRunning: unloadRunning: 1Running: 0
15:47:23 Exit code: 0
15:47:03 Running: mtxRunning: unloadRunning: 1Running: 0
15:47:23 Exit code: 0
Stdout:
Unloading drive 0 into Storage Element 1...done
15:47:23 -> status 0, result "Unloading" -> status drive, result "0" -> status i
nto, result "Storage" -> status Element, result "1...done"
15:47:23 Return (0) -> 1 /dev/sg0
15:47:23 LOADSLOT -> loading tape from slot 2 to drive 0 (/dev/sg0)
15:47:23 Running: mtxRunning: loadRunning: 2Running: 0
15:47:42 Exit code: 0
Stdout:
Loading media from Storage Element 2 into drive 0...done
15:47:42 -> status 0, result "Loading" -> status media, result "from" -> status
Storage, result "Element" -> status 2, result "into" -> status drive, result "0.
..done"
15:51:42 Running: mtRunning: -fRunning: /dev/sg0Running: rewind
15:51:42 Exit code: 2
Stderr:
/dev/sg0: Operation not permitted
15:55:42 Exit (2) -> 2 Drive not ready after 240 seconds, rewind said "/dev/sg0:
"Drive not ready after Operation seconds, rewind said "not"Drive not ready after
permitted seconds, rewind said ""
1182542142.852422: chg-zd-mtx: pid 15386 finish time Fri Jun 22 15:55:42 2007
--------------------------------------------------------------------------
Any help would be appreicated, think i'm really close to making this work.
Rich
I'm using zmanda on a linux sytem with an exabyte 1x7 tape drive. I keep getting an error of drive not ready and don't understand why? Have increase the wait times but still the same -
Example - debug list
--------------------------------------------------------------------------
1182541382.704743: chg-zd-mtx: debug 1 pid 14529 ruid 0 euid 0: start at Fri Jun
22 15:43:02 2007
15:43:02 Using config file /etc/amanda/daily/changer.conf
15:43:02 Arg info:
$# = 2
$0 = "/usr/lib/amanda/chg-zd-mtx"
$1 = "-slot"
$2 = "next"
15:43:02 Running: mtxRunning: status
15:43:02 Exit code: 0
Stdout:
Storage Changer /dev/sg0:1 Drives, 7 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = A00001
Storage Element 1:Empty:VolumeTag=
Storage Element 2:Full :VolumeTag=A00002
Storage Element 3:Full :VolumeTag=A00003
Storage Element 4:Full :VolumeTag=A00004
Storage Element 5:Full :VolumeTag=A00005
Storage Element 6:Full :VolumeTag=A00006
Storage Element 7:Full :VolumeTag=A00007
15:43:02 Config info:
firstslot = "1"
lastslot = "6"
cleanslot = "7"
cleancycle = "120"
offline_before_unload = "0"
unloadpause = "240"
autoclean = "0"
autocleancount = "99"
havereader = "1"
driveslot = "0"
poll_drive_ready = "240"
initial_poll_delay = "240"
max_drive_wait = "240"
15:43:02 LOADSLOT -> load drive 0 (/dev/sg0) from slot next
15:43:02 STATUS -> currently loaded slot = 1
-> currently loaded barcode = "A00001"
15:43:02 EJECT -> ejecting tape from /dev/sg0
15:43:02 STATUS -> currently loaded slot = 1
-> currently loaded barcode = "A00001"
15:43:03 EJECT -> moving tape from drive 0 to storage slot 1
15:47:03 Running: mtxRunning: unloadRunning: 1Running: 0
15:47:23 Exit code: 0
15:47:03 Running: mtxRunning: unloadRunning: 1Running: 0
15:47:23 Exit code: 0
Stdout:
Unloading drive 0 into Storage Element 1...done
15:47:23 -> status 0, result "Unloading" -> status drive, result "0" -> status i
nto, result "Storage" -> status Element, result "1...done"
15:47:23 Return (0) -> 1 /dev/sg0
15:47:23 LOADSLOT -> loading tape from slot 2 to drive 0 (/dev/sg0)
15:47:23 Running: mtxRunning: loadRunning: 2Running: 0
15:47:42 Exit code: 0
Stdout:
Loading media from Storage Element 2 into drive 0...done
15:47:42 -> status 0, result "Loading" -> status media, result "from" -> status
Storage, result "Element" -> status 2, result "into" -> status drive, result "0.
..done"
15:51:42 Running: mtRunning: -fRunning: /dev/sg0Running: rewind
15:51:42 Exit code: 2
Stderr:
/dev/sg0: Operation not permitted
15:55:42 Exit (2) -> 2 Drive not ready after 240 seconds, rewind said "/dev/sg0:
"Drive not ready after Operation seconds, rewind said "not"Drive not ready after
permitted seconds, rewind said ""
1182542142.852422: chg-zd-mtx: pid 15386 finish time Fri Jun 22 15:55:42 2007
--------------------------------------------------------------------------
Any help would be appreicated, think i'm really close to making this work.
Rich