[btw. i was not able to send you an email to the adress below:
"user unknown" - ok but now to the content ...]
Thomas Hepper <[EMAIL PROTECTED]> wrote:
> Hi,
> On Tue, Jul 31, 2001 at 11:13:15AM +0200, thomas graichen wrote:
> [...]
>> use inside of amanda ... any help would be appreciated
> First which version of amanda ?. Lets assume 2.4.2p2 from cvs, if
> not please get the cvs version.
i am using the latest source tarball from amanda.org - i.e. 2.4.2p2
> Next try the following (From the 2.5.0 docs, i must update the 2.4.2 docs :-))
> Solaris with sst kernel module, which is not any longer needed in solaris 2.8.
> See in the contrib/sst directory
> The configuration on solaris 2.8 with the sgen driver is done by creating
> the file /kernel/drv/sgen.conf
> This file should contain at the beginning the following
> device-type-config-list="changer","sequential"
> This will force the driver to attach only to the devices with type
> either changer (the robot) and sequential (the tape).
> Next you must tell the driver on which id it should check for devices
> (in this example tape on id 5, robot on id 6),
> name="sgen" class="scsi" target=5 lun=0;
> name="sgen" class="scsi" target=6 lun=0;
> This will create the 2 device files
> /dev/scsi/sequential/c0t5d0 (scsitapedev option in chg-scsi.conf)
> /dev/scsi/changer/c0t6d0 (changer option in chg-scsi.conf)
> So the complete sgen.conf looks like:
> device-type-config-list="changer","sequential
> name="sgen" class="scsi" target=5 lun=0;
> name="sgen" class="scsi" target=6 lun=0;
> Now you must create the chg-scsi.conf file, take a look in the examples
> directory for an starting point. To enable chg-scsi you need the
> following in amanda.conf
> tpchanger "chg-scsi" # the tape-changer glue script
> tapedev "0"
> changerfile "path_to_your_config/chg-scsi.conf"
> Now change to your config directory (where amanda.conf is in) and
> try to call there chg-scsi
> path_to_chg-scsi/chg-scsi -info
> If you get an result you can try
> path_to_chg-scsi/chg-scsi -reset
> and see if the first tape is loaded.
> Try this an report back success/failures :-)
thanks a lot - i got a big step further - i now get the
changer recognized by solaris and basic communication with
it seems to work but it still does not work completely
ok - here some details:
chg-scsi.cfg:
number_configs 1
eject 1 # Tapedrives need an eject command
sleep 60 # Seconds to wait until the tape gets
ready
cleanmax 10 # How many times could a cleaning tape
get used
changerdev /dev/scsi/changer/c2t4d1
#
# Next comes the data for drive 0
#
config 0
drivenum 0
dev /dev/rmt/1cbn # the device that is used for
the tapedrive 0 (BSD type, no rewind, no compression)
startuse 0 # The slots associated with the drive 0
enduse 4 #
statfile /usr/local/amanda/etc/amanda/fptsys/tape0-slot #
The file where the actual slot is stored
cleancart 5 # the slot where the cleaningcartridge
for drive 0 is located
cleanfile /usr/local/amanda/etc/amanda/fptsys/tape0-clean #
The file where the cleanings are recorded
usagecount /usr/local/amanda/etc/amanda/fptsys/totaltime
tapestatus /usr/local/amanda/etc/amanda/fptsys/tape0-status
#labelfile /usr/local/amanda/etc/amanda/fptsys/labelfile #
Use this if you have an barcode reader
tapeident C1553A
changerident C1553A
#scsitapedev /dev/scsi/sequential/c2t4d0
[amanda@fptapp02 fptsys]$ ../../../libexec/chg-scsi -status all
Ident = C1553A, type = HP Auto Loader [C1553A]
Ident = EXB-10e, type = Exabyte Robot [EXB-10e]og[215]
Ident = generic, type = Generic driver tape/robot [generic]
Address Type Status From
-------------------------------------------
0000002 STE Empty -001
0000003 STE Full -001
0000004 STE Full -001
0000005 STE Full -001
0000006 STE Full -001
0000007 STE Full -001
0000001 DTE Full 0002
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 Counter 00
Read/Write Error Counter 0
Remaing 1024 byte tape blocks 0
Tracking Retry Counter 00
Read/Write Retry Counter 00
Fault Sympton Code 00
DecodeModeSense : Disconnect/Reconnecss 0
Number of ImportExport Elements 0
First Data Transfer Element Address 1
Number of Data Transfer Elements 1
DecodeModeSense : MT can store data cartridges 0
DecodeModeSense : ST can store data cartridges 1
DecodeModeSense : IE can store data cartridges 0
DecodeModeSense : DT can store data cartridges 1
DecodeModeSense : MT to MT 0
DecodeModeSense : MT to ST 0
DecodeModeSense : MT to IE 0
DecodeModeSense : MT to DT 0
DecodeModeSense : ST to MT 0
DecodeModeSense : ST to MT 0
DecodeModeSense : ST to DT 1
DecodeModeSense : IE to MT 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : DT to MT 0
DecodeModeSense : DT to ST 1
DecodeModeSense : DT to IE 0
DecodeModeSense : DT to DT 0
changer_dev /dev/scsi/changer/c2t4d1
changer_file /usr/local/amanda/etc/amanda/fptsys/tape0-slot
tape_device /dev/rmt/1cbn
pTapeDev Devicefd 5
pTapeDev Can SCSI 0
pTapeDev Device /dev/rmt/1cbn
pTapeDev ConfigName tape_device
pTapeDevCtl Null Pointer ....
pChangerDev Devicefd 4
pChangerDev Can SCSI 1
pChangerDev Device /dev/scsi/changer/c2t4d1
pChangerDev ConfigName changer_dev
the problems are that it has as it looks like some problems with
moving and ejecting tapes etc.:
[amanda@fptapp02 fptsys]$ amtape fptsys show
amtape: scanning all 5 slots in tape-changer rack:
slot 4: no tape online
slot 0: slot 0 is empty
amtape: could not load slot 1: slot 1 move failed <----- ???
[amanda@fptapp02 fptsys]$ amtape fptsys eject
amtape: slot 1 is ejected. <----- !
[amanda@fptapp02 fptsys]$ ../../../libexec/chg-scsi -status robot
Address Type Status From
-------------------------------------------
0000002 STE Empty -001
0000003 STE Full -001
0000004 STE Full -001
0000005 STE Full -001
0000006 STE Full -001
0000007 STE Full -001
0000001 DTE Full 0002 <----- ???
[amanda@fptapp02 fptsys]$
do you have any idea where to look further?
a lot of thanks in advance
t
--
thomas graichen <[EMAIL PROTECTED]> ... perfection is reached, not
when there is no longer anything to add, but when there is no
longer anything to take away. --- antoine de saint-exupery