ADSM-L

Re: [ADSM-L] TSM Library Manager

2009-03-10 16:12:46
Subject: Re: [ADSM-L] TSM Library Manager
From: Kelly Lipp <lipp AT STORSERVER DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 10 Mar 2009 14:11:24 -0600
And always consider what the truly smart guys have to say first when reading 
the list!  Thanks Paul.

Kelly Lipp
CTO
STORServer, Inc.
485-B Elkton Drive
Colorado Springs, CO 80907
719-266-8777 x7105
www.storserver.com


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of 
Paul Zarnowski
Sent: Tuesday, March 10, 2009 1:41 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: [ADSM-L] TSM Library Manager

At 03:17 PM 3/10/2009, Schneider, John wrote:
>Greetings,
>         I have a solution to the problem of library sharing and
>different rmt names.


We have a similar, but different solution.  We have a script we use to
rename AIX tape devices to a predictable name, based on the last 4
characters of the WWN.  After running it on each AIX system, the device
names will be the same on each system.  After running "tsmchrmt rmt0", the
device will have a name similar to:
rmt.f0c6.0.0
where "f0c6" are the last 4 chars of the device's WWN.

I don't recall where we got the seed for this script, but here is our
version, which we call "tsmchrmt":

----
#!/bin/sh
if [ $# != 1 ]
then
   echo "must specify 1 rmt device name as an argument."
   exit 4
fi
d=$1

WWN=`/usr/sbin/lsattr -El $d -a ww_name|cut -f2 -d" "|cut -c15-`
LUN=`/usr/sbin/lsattr -El $d -a lun_id|cut -f2 -d" "|cut -c3`
root=`echo $d|cut -c1-3`
new_name=$root.$WWN.$LUN.0
let "j=0"
while [[ -e /dev/$new_name ]]
do
         let "j=j+1"
         new_name=$root.$WWN.$LUN.$j
done
/usr/sbin/chdev -l $d -a new_name=$new_name
----

..Paul



--
Paul Zarnowski                            Ph: 607-255-4757
Manager, Storage Services                 Fx: 607-255-8521
719 Rhodes Hall, Ithaca, NY 14853-3801    Em: psz1 AT cornell DOT edu