Date: Wed, 25 Apr 2001 16:32:05 +0200 (CEST) From: "Hartmann, O." <ohartman@klima.physik.uni-mainz.de> To: <afbackup@afbackup.org> Cc: <freebsd-questions@freebsd.org> Subject: afbackup and tape changers under FreeBSD 4.3 Message-ID: <Pine.BSF.4.33.0104251545470.5586-100000@klima.physik.uni-mainz.de>
next in thread | raw e-mail | index | archive | help
Dear Sirs. At the moment of writing this email we try to move from AMANDA to AFBACKUP as AFBACKUP promises some more support in the manner of writing large file systems to more than one tape were tape size is smaller than filesystem size. Our servers run all FreeBSD 4.3 and the core system has about 250 GB to backup. The tape system is a HP SureStore 6x40i with a six slot magazine system. Here some configuration data: Changer device under FreeBSD is /dev/ch0. Tape device under FreeBSD is /dev/nsa0. The status output of 'chio -f /dev/ch0' is: slot 0: <ACCESS,FULL> slot 1: <ACCESS,FULL> slot 2: <ACCESS,FULL> slot 3: <ACCESS,FULL> slot 4: <ACCESS,FULL> slot 5: <ACCESS,FULL> drive 0: <ACCESS> That means in this case: all slots are filled up with tapes, drive 0 is empty (no tape loaded). An output with a loaded tape looks like this: slot 0: <ACCESS,FULL> slot 1: <ACCESS,FULL> slot 2: <ACCESS,FULL> slot 3: <ACCESS> slot 4: <ACCESS,FULL> slot 5: <ACCESS,FULL> drive 0: <ACCESS,FULL> That means, slot 3 (the fourth cartridge) is empty and loaded to the tape (FULL marks a filled up device). The command for moving tapes from a slot into the drive is: chio -f /dev/ch0 move slot X into drive 0 The command for moving a tape back to its slot is chio -f /dev/ch0 move drive 0 to slot X Now the problem: I set up already a complete server side configuration an tried to fiddle around moving tapes, because this seems the elemental thing to do (as it was in AMANDA, too). Fact is, I can not move tapes around! This is my changer.conf file: Move Drive To Slot Command: chio -f %D move drive %n slot %M Move Slot To Drive Command: chio -f %D move slot %m drive %N ListEmpty Slots Command: chio -f %D status | grep '^slot [0-9]*: <ACCESS>$' | awk '{print $2}' | sed 's/:*$//g' The ListEmpty Slots Command reports exactly what it should, the empty slot! In the second instance given above it reports '3', as this is the empty slot. With the above given status from chio status, cart_ctl -l reports this (as this reflects a correct tape configuration): 1 /dev/ch0 slot 0 2 /dev/ch0 slot 1 3 /dev/ch0 slot 2 4 /dev/ch0 drive 1 5 /dev/ch0 slot 4 When typing cart_ctl -m -C 0 -D it reports: chio: /dev/ch0: CHIOMOVE: Operation not supported by device The command to operate the cartridge in changer /dev/ch0 failed with status 256. Error: Moving cartridge 4 to slot 3 in /dev/ch0 failed with status 256 Error: Moving cartridge 0 failed. It seems, that the configuration is almost right - but maybe there is a problem in numbering (0 and 1 seems to be problemacy). Where to get logoutput? I can not find any suitable logfiles where I can see what the command cart_ctl is doing and where it fails. -- MfG O. Hartmann ohartman@klima.physik.uni-mainz.de ---------------------------------------------------------------- IT-Administration des Institut fuer Physik der Atmosphaere (IPA) ---------------------------------------------------------------- Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinensaal) Tel: +496131/3924144 FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0104251545470.5586-100000>