Originally posted by: nancy2
hi all i want help to write the script thatti check rmt drive serial number if the same in two site Production and HA, the recomended like the follwing:
The : AIX script to set up tape devices on OS to be identical on both nodes
- define a rule, according to the renaming of the tape devices on AIX will occur (this is for a case when the library(s) get changed, so that the script can handle that too)
- the comparison of the tape devices should be on one side on the tape library, through tapeutil, on the other side on AIX
Recommended steps
- list smcX devices and divide them according to their serials (you can route data in text files temporary )
- call tapeutil with one smcX device for each library and list the drives (you can route data in text files temporary )
- list the drives on AIX and compare them with the ones from the tapeutil command to see all are present
- define a rule/naming convention to differentiate the drives and robot of the seperate libraries. I'll give one example, you can define your own, if you like.
for example the libraries: smcX_L<library series number (manual setting), or other unique identification based on HW data, like serial number>
this would mean for example: smc0_L1
smc1_L1
smc2_L1
smc3_L1
smc0_L2
smc1_L2
smc2_L2
smc3_L2
for example the drives: L<library series number, as above>_<drive serial's last five (or more) character>_<drive series number>
this would mean for example: L1_12435_01
L1_12435_02
...
...
L1_21342_01
...
L2_32211_01
...
The drives series numbers are to see the different paths to a drive, the library series number is to see the drives association to libraries (example 2), and which robot paths are present for a library (example 1).
- Rename the devices accordingly.
- Check for accuracy.
Because of the device name changes on AIX, on TSM, paths, drives and libraries will have to be redefined after this change, one last time again.
any on ehave an idea about this?
#AIX-Forum