Re: SV: Library unavailable
Hi, I am using the command line. As for the serial number, I´ll remove the defined library and redefine it without using this clause, and then create the path...and see what happens. I´ve already removed TSM and reinstalled it. The IBMtaped daemon is up and running. IBMtaped version is 1.5.3 and I ran the IBMtapeutil facility to check the Media Changer and Drives and everything seems to be ok, at least at OS level. Mario From: Christian Svensson To: ADSM-L@VM.MARIST.EDU Sent: Tuesday, July 7, 2009 2:48:34 AM Subject: SV: Library unavailable Hi, I normally don't use the ISC or WebGUI to define any drives or libraries. But you need to define the path between. Another thing I see is that the Serial number that you specify on both strings is different. Try to use the command line instead of the GUI, >define libr LIBLT01 libtype=SCSI >define path TSMSERVER liblt01 srct=server destt=libr device=/dev/X >define dr liblt0 DRIVE0 >define path TSMSERVER drive0 srct=server destt=dr libr=liblt01 device=/dev/ >define dr liblt0 DRIVE1 >define path TSMSERVER drive1 srct=server destt=dr libr=liblt01 device=/dev/ >define dr liblt0 DRIVE2 >define path TSMSERVER drive2 srct=server destt=dr libr=liblt01 device=/dev/ If it still don't work. Make a search in the message file for your drives or look in /proc for more information. You maybe also need to upgrade your drivers for your IBM drives. Best Regards Christian Svensson Cell: +46-70-325 1577 E-mail: christian.svens...@cristie.se Skype: cristie.christian.svensson Från: ADSM: Dist Stor Manager [ads...@vm.marist.edu] för Mario Behring [mariobehr...@yahoo.com] Skickat: den 7 juli 2009 07:04 Till: ADSM-L@VM.MARIST.EDU Ämne: Library unavailable Hi list, When trying to define drives I get the following message: DEFINE DRIVE LIBLTO1 LIB1DRIVE0 ELEMENT=256 ONLINE=Yes WWN="500308FF421B4001" SERIAL="1110165508" ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE DRIVE LIBLTO1 LIB1DRIVE0 ELEMENT=256 ONLINE=Yes WWN=500308FF421B4001 SERIAL=1110165508 ANR8444E DEFINE DRIVE: Library LIBLTO1 is currently unavailable. The library is defined... DEFINE LIBRARY LIBLTO1 LIBTYPE=SCSI SERIAL="013203721000" SHARED=NO ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE LIBRARY LIBLTO1 LIBTYPE=SCSI SERIAL=013203721000 SHARED=NO ANR8400I Library LIBLTO1 defined. The library is an IBM ULT3583-TL with 3 drives. TSM is 5.2.2.2 running on Linux SuSE. I cannot upgrade it due to license issues...not at this time anyway. TSM Server was running fine until a week ago when it stopped at some point...not clear to me. I removed it completely and I am trying to install it again, but it keeps telling me the library is unavailable. The TSM Device Driver was installed, but I believe it was not being used because it does not support the current Linux Kernel version. tsmlinux:/opt/tivoli/tsm/devices/bin # ./tsmscsi TSM device driver not available for kernel release 2.4.21-241-smp Any help is appreciated. Mario
Re: Library unavailable
I don't know about 3583, but with 3584 one shouldn't use the TSM supplied drivers. IBM provides a so called 'lintape' (ex IBMtape) driver on their FTP. Also you said that the setup was working properly and then suddenly ceased without you changing anything, right? If so, your infrastructure could turn out to be the culprit. Reinstalling software components without attempting to discern the true cause of the problem might not be the most helpful approach. -- Warm regards, Michael Green On Tue, Jul 7, 2009 at 8:04 AM, Mario Behring wrote: > > TSM Server was running fine until a week ago when it stopped at some > point...not clear to me. I removed it completely and I am trying to install > it again, but it keeps telling me the library is unavailable. The TSM Device > Driver was installed, but I believe it was not being used because it does not > support the current Linux Kernel version. > > tsmlinux:/opt/tivoli/tsm/devices/bin # ./tsmscsi > TSM device driver not available for kernel release 2.4.21-241-smp > > Any help is appreciated. > > Mario >
SV: Library unavailable
Hi, I normally don't use the ISC or WebGUI to define any drives or libraries. But you need to define the path between. Another thing I see is that the Serial number that you specify on both strings is different. Try to use the command line instead of the GUI, >define libr LIBLT01 libtype=SCSI >define path TSMSERVER liblt01 srct=server destt=libr device=/dev/X >define dr liblt0 DRIVE0 >define path TSMSERVER drive0 srct=server destt=dr libr=liblt01 device=/dev/ >define dr liblt0 DRIVE1 >define path TSMSERVER drive1 srct=server destt=dr libr=liblt01 device=/dev/ >define dr liblt0 DRIVE2 >define path TSMSERVER drive2 srct=server destt=dr libr=liblt01 device=/dev/ If it still don't work. Make a search in the message file for your drives or look in /proc for more information. You maybe also need to upgrade your drivers for your IBM drives. Best Regards Christian Svensson Cell: +46-70-325 1577 E-mail: christian.svens...@cristie.se Skype: cristie.christian.svensson Från: ADSM: Dist Stor Manager [ads...@vm.marist.edu] för Mario Behring [mariobehr...@yahoo.com] Skickat: den 7 juli 2009 07:04 Till: ADSM-L@VM.MARIST.EDU Ämne: Library unavailable Hi list, When trying to define drives I get the following message: DEFINE DRIVE LIBLTO1 LIB1DRIVE0 ELEMENT=256 ONLINE=Yes WWN="500308FF421B4001" SERIAL="1110165508" ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE DRIVE LIBLTO1 LIB1DRIVE0 ELEMENT=256 ONLINE=Yes WWN=500308FF421B4001 SERIAL=1110165508 ANR8444E DEFINE DRIVE: Library LIBLTO1 is currently unavailable. The library is defined... DEFINE LIBRARY LIBLTO1 LIBTYPE=SCSI SERIAL="013203721000" SHARED=NO ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE LIBRARY LIBLTO1 LIBTYPE=SCSI SERIAL=013203721000 SHARED=NO ANR8400I Library LIBLTO1 defined. The library is an IBM ULT3583-TL with 3 drives. TSM is 5.2.2.2 running on Linux SuSE. I cannot upgrade it due to license issues...not at this time anyway. TSM Server was running fine until a week ago when it stopped at some point...not clear to me. I removed it completely and I am trying to install it again, but it keeps telling me the library is unavailable. The TSM Device Driver was installed, but I believe it was not being used because it does not support the current Linux Kernel version. tsmlinux:/opt/tivoli/tsm/devices/bin # ./tsmscsi TSM device driver not available for kernel release 2.4.21-241-smp Any help is appreciated. Mario
Library unavailable
Hi list, When trying to define drives I get the following message: DEFINE DRIVE LIBLTO1 LIB1DRIVE0 ELEMENT=256 ONLINE=Yes WWN="500308FF421B4001" SERIAL="1110165508" ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE DRIVE LIBLTO1 LIB1DRIVE0 ELEMENT=256 ONLINE=Yes WWN=500308FF421B4001 SERIAL=1110165508 ANR8444E DEFINE DRIVE: Library LIBLTO1 is currently unavailable. The library is defined... DEFINE LIBRARY LIBLTO1 LIBTYPE=SCSI SERIAL="013203721000" SHARED=NO ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE LIBRARY LIBLTO1 LIBTYPE=SCSI SERIAL=013203721000 SHARED=NO ANR8400I Library LIBLTO1 defined. The library is an IBM ULT3583-TL with 3 drives. TSM is 5.2.2.2 running on Linux SuSE. I cannot upgrade it due to license issues...not at this time anyway. TSM Server was running fine until a week ago when it stopped at some point...not clear to me. I removed it completely and I am trying to install it again, but it keeps telling me the library is unavailable. The TSM Device Driver was installed, but I believe it was not being used because it does not support the current Linux Kernel version. tsmlinux:/opt/tivoli/tsm/devices/bin # ./tsmscsi TSM device driver not available for kernel release 2.4.21-241-smp Any help is appreciated. Mario
Re: Detect whether L700 tape library unavailable
Gerald, That's a cool script... I've never quite gotten that interface working in batch. The only thing I would worry about is what if TSM tries to open the library while the script has it open? Will it go offline? I guess having it in a script would be less exposure than an interactive run (of lbtest) since it runs at CPU speed. BTW, our L700 (we have two actually, one here in NJ and one in CA) is really an HP 20/700, so it doesn't need the dongle for the web interface to work. Not sure if there are any functional differences, as I've never used the real StorageTek web page. We went to StorageTek when we wanted to upgrade from DLT to LTO and HP could/would not do it. So it's not purple, but beige. Regards, Robin Sharpe Berlex Labs Gerald Michalak <[EMAIL PROTECTED] COM> To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Re: Detect whether L700 tape library unavailable 08/17/2006 03:37 PM Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] .EDU> The L700 does have an optional "personality" module which allows the library to be connected to the network. You can then open a browser to this address and see the whole library, slots, drives, i/o ports, errors. We have it on all our L700 libraries. Also, I've created a Perl script which uses the lbtest command to get the list of tapes in the i/o slots. ( see below ) It may not be pretty but it works. I use this list in scripts to checkin offsite tapes and load/label new scratch tapes. Gerald Michalak TSM - Certified V5 Administrator == lib_cap_inv.pl == #!/usr/bin/perl # lib_cap_inv.pl # open (LIBV, "/usr/tivoli/tsm/devices/bin/lbtest -f lbtest.in -d /dev/lb0 -o /tmp/lbinv.out |") || die(" * * * Library Busy "); close (LIBV); `rm -f /adsm_restore/lib_cap_inv`; open (INV,"/tmp/lbinv.out"); open (CAPINV,">>/adsm_restore/lib_cap_inv"); while () { $line=$_; chop($line); ($type,$dummy,$dummy,$dummy,$slot,$stat ) = split(" ",$line); if ( $type eq "Import" and $stat eq "FULL)" ) { $line=; $line=; $line=; chop($line); ($dummy,$dummy,$f1,$f2,$f3 ) = split(" ",$line); print CAPINV "$f1 \n"; print " slot=".$slot." f1=".$f1." f2=".$f2." f3=".$f3."\n" ; } } close (INV); close (CAPINV); exit; == lbtest.in == command open $D command return_elem_count command return_lib_inventory_all command close
Re: Detect whether L700 tape library unavailable
The L700 does have an optional "personality" module which allows the library to be connected to the network. You can then open a browser to this address and see the whole library, slots, drives, i/o ports, errors. We have it on all our L700 libraries. Also, I've created a Perl script which uses the lbtest command to get the list of tapes in the i/o slots. ( see below ) It may not be pretty but it works. I use this list in scripts to checkin offsite tapes and load/label new scratch tapes. Gerald Michalak TSM - Certified V5 Administrator == lib_cap_inv.pl == #!/usr/bin/perl # lib_cap_inv.pl # open (LIBV, "/usr/tivoli/tsm/devices/bin/lbtest -f lbtest.in -d /dev/lb0 -o /tmp/lbinv.out |") || die(" * * * Library Busy "); close (LIBV); `rm -f /adsm_restore/lib_cap_inv`; open (INV,"/tmp/lbinv.out"); open (CAPINV,">>/adsm_restore/lib_cap_inv"); while () { $line=$_; chop($line); ($type,$dummy,$dummy,$dummy,$slot,$stat ) = split(" ",$line); if ( $type eq "Import" and $stat eq "FULL)" ) { $line=; $line=; $line=; chop($line); ($dummy,$dummy,$f1,$f2,$f3 ) = split(" ",$line); print CAPINV "$f1 \n"; print " slot=".$slot." f1=".$f1." f2=".$f2." f3=".$f3."\n" ; } } close (INV); close (CAPINV); exit; == lbtest.in == command open $D command return_elem_count command return_lib_inventory_all command close
Re: Detect whether L700 tape library unavailable
Thanks for the tip Len. I don't use show commands in scripts, because A) we're warned that they are unsupported and subject to change without notice, and B) they're a pain to parse. But that does indeed show the library status. As for the ANR8440 msg, that would only happen during TSM startup, woudn't it? When it tries to initialize the library? Off-topic (a little) -- another thing I'd like to be able to see is what tapes (if any) are in the import/export slots. The 'show slots' command lists what slots exist, but not what tapes are in them. Some libraries provide a telnet interface that would probably work, but not the L700 (sigh). Robin Sharpe Berlex Labs Len Boyle <[EMAIL PROTECTED] M> To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Re: Detect whether L700 tape library unavailable 08/17/2006 12:38 PM Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] .EDU> Hello Robin, There is an undocumented command show library that has the online status. See the archives for more info on undocumented commands. Here is the partial output from the show library command and the query path command. Autolib is an stk 9710 which was not connected. But at least with a connected library the show library command will show the library as offline if it can not talk to it. You do get the following message in the tsm log for an unconnected library 08/09/2006 09:09:05 ANR8440E Initialization failed for SCSI library AUTOLIB; will retry in 2 minute(s). len - tsm: ADSMNT04>show library MMSV->libList: head=03059FB8, tail=0305A5E0 Library AUTOLIB (type SCSI): reference count = 0, online = 0, borrowed drives = 0, update count = 0 basicCfgBuilt = 1, libInfoBuild = 0, definingPathToLibrary = 0 addLibPath = 0, driveListBusy = 0 libvol_lock_id=0, libvolLock_count=0, SeqnBase=0 library extension at 03053960 autochanger list: dev=lb0.0.0.3, busy=0, online=0 Drive detail and second library output deleted. --- tsm: ADSMNT04>q path Source Name Source Type Destination Destination On-Line NameType --- --- --- --- --- ADSMNT04SERVER AUTOLIB LIBRARY Yes ADSMNT04SERVER TAPE1 DRIVE Yes ADSMNT04SERVER TAPE2 DRIVE Yes ADSMNT04SERVER BORGLIBRARY Yes ADSMNT04SERVER TAPEB1 DRIVE Yes ADSMNT04SERVER TAPEB2 DRIVE Yes For others: Has anyone asked IBM to move the function of the show library command to a documented command. len -Original Message- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Robin Sharpe Sent: Thursday, August 17, 2006 11:03 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] Detect whether L700 tape library unavailable The path definition is the only TSM reference I could find that has a library status: ONLINE=YES or NO. Example: ANS8000I Server command: 'q path' Source Name: TSM_WAYNE_LM Source Type: SERVER Destination Name: WATL26 Destination Type: LIBRARY On-Line: Yes I'm not sure if TSM will set it off line if there is a problem. Another approach is to use the lbtest utility that comes with TSM, but I don't know if I'd want to be firing that up automatically it could interfere with TSM activities. BTW, we also have an L700. Ours is attached to an HP rp7410, running HP-UX 11i. We have 14 LTO2 drives, and 4 LTO3's on order. Robin Sharpe Berlex Labs "Martin, Roy J" <[EMAIL PROTECTED] OM>To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Detect whether L700
Re: Detect whether L700 tape library unavailable
Hello Robin, There is an undocumented command show library that has the online status. See the archives for more info on undocumented commands. Here is the partial output from the show library command and the query path command. Autolib is an stk 9710 which was not connected. But at least with a connected library the show library command will show the library as offline if it can not talk to it. You do get the following message in the tsm log for an unconnected library 08/09/2006 09:09:05 ANR8440E Initialization failed for SCSI library AUTOLIB; will retry in 2 minute(s). len - tsm: ADSMNT04>show library MMSV->libList: head=03059FB8, tail=0305A5E0 Library AUTOLIB (type SCSI): reference count = 0, online = 0, borrowed drives = 0, update count = 0 basicCfgBuilt = 1, libInfoBuild = 0, definingPathToLibrary = 0 addLibPath = 0, driveListBusy = 0 libvol_lock_id=0, libvolLock_count=0, SeqnBase=0 library extension at 03053960 autochanger list: dev=lb0.0.0.3, busy=0, online=0 Drive detail and second library output deleted. --- tsm: ADSMNT04>q path Source Name Source Type Destination Destination On-Line NameType --- --- --- --- --- ADSMNT04SERVER AUTOLIB LIBRARY Yes ADSMNT04SERVER TAPE1 DRIVE Yes ADSMNT04SERVER TAPE2 DRIVE Yes ADSMNT04SERVER BORGLIBRARY Yes ADSMNT04SERVER TAPEB1 DRIVE Yes ADSMNT04SERVER TAPEB2 DRIVE Yes For others: Has anyone asked IBM to move the function of the show library command to a documented command. len -Original Message- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Robin Sharpe Sent: Thursday, August 17, 2006 11:03 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] Detect whether L700 tape library unavailable The path definition is the only TSM reference I could find that has a library status: ONLINE=YES or NO. Example: ANS8000I Server command: 'q path' Source Name: TSM_WAYNE_LM Source Type: SERVER Destination Name: WATL26 Destination Type: LIBRARY On-Line: Yes I'm not sure if TSM will set it off line if there is a problem. Another approach is to use the lbtest utility that comes with TSM, but I don't know if I'd want to be firing that up automatically it could interfere with TSM activities. BTW, we also have an L700. Ours is attached to an HP rp7410, running HP-UX 11i. We have 14 LTO2 drives, and 4 LTO3's on order. Robin Sharpe Berlex Labs "Martin, Roy J" <[EMAIL PROTECTED] OM>To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Detect whether L700 tape library unavailable 08/11/2006 11:46 AM Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] .EDU> We have a TSM server (5.2.2) running on a Solaris box with a SCSI attached STK L700 tape library. TSM interfaces directly with the tape library. Does anyone have any relatively simple method to detect whether the tape library becomes unavailable? I was thinking of enabling some events, have them directed to a log file & have a monitoring tool watch for them, but it seems like it would be difficult to identify all of them. Is there some simply way to achieve this? Perhaps "query drive" or something on a regular basis would generate a particular error if the library was down. I suppose a script could just see if "q drive" returns valid response within some timeframe. Any thoughts or experience doing this? Roy J. Martin Global Client Engineering GM (BUR group) mailto:[EMAIL PROTECTED]
Re: Detect whether L700 tape library unavailable
The path definition is the only TSM reference I could find that has a library status: ONLINE=YES or NO. Example: ANS8000I Server command: 'q path' Source Name: TSM_WAYNE_LM Source Type: SERVER Destination Name: WATL26 Destination Type: LIBRARY On-Line: Yes I'm not sure if TSM will set it off line if there is a problem. Another approach is to use the lbtest utility that comes with TSM, but I don't know if I'd want to be firing that up automatically it could interfere with TSM activities. BTW, we also have an L700. Ours is attached to an HP rp7410, running HP-UX 11i. We have 14 LTO2 drives, and 4 LTO3's on order. Robin Sharpe Berlex Labs "Martin, Roy J" <[EMAIL PROTECTED] OM>To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Detect whether L700 tape library unavailable 08/11/2006 11:46 AM Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] .EDU> We have a TSM server (5.2.2) running on a Solaris box with a SCSI attached STK L700 tape library. TSM interfaces directly with the tape library. Does anyone have any relatively simple method to detect whether the tape library becomes unavailable? I was thinking of enabling some events, have them directed to a log file & have a monitoring tool watch for them, but it seems like it would be difficult to identify all of them. Is there some simply way to achieve this? Perhaps "query drive" or something on a regular basis would generate a particular error if the library was down. I suppose a script could just see if "q drive" returns valid response within some timeframe. Any thoughts or experience doing this? Roy J. Martin Global Client Engineering GM (BUR group) mailto:[EMAIL PROTECTED]
Detect whether L700 tape library unavailable
We have a TSM server (5.2.2) running on a Solaris box with a SCSI attached STK L700 tape library. TSM interfaces directly with the tape library. Does anyone have any relatively simple method to detect whether the tape library becomes unavailable? I was thinking of enabling some events, have them directed to a log file & have a monitoring tool watch for them, but it seems like it would be difficult to identify all of them. Is there some simply way to achieve this? Perhaps "query drive" or something on a regular basis would generate a particular error if the library was down. I suppose a script could just see if "q drive" returns valid response within some timeframe. Any thoughts or experience doing this? Roy J. Martin Global Client Engineering GM (BUR group) mailto:[EMAIL PROTECTED]