This is a discussion on LTO Tape Drive query within the AIX Operating System forums, part of the Unix Operating Systems category; --> Runninx AIX 4.3.3.0 I have 2 IBM Ultrium LTO tape drives and do a double backup of the entire ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Runninx AIX 4.3.3.0 I have 2 IBM Ultrium LTO tape drives and do a double backup of the entire system each night. I am having problems with the assistant S.A not swapping out the tapes each day. Other than beating him into submission, is there a way to query the tape drives to see if they are ready for use so I can tell if he has put in new tapes? We are using CPIO to copy files. -- Posted via http://dbforums.com |
| |||
| what we do is after every backup we make sure that the tape is rewinded and ejected. as we scheduled the jobs using crontab, we run a script which checks if the tape is ready in the tapedrive, if its not the user would be sent a email saying that he needs to take care of the tape. this script is triggered couple of hours before the backup, may be you can write a script which mails the operator informing to take care of the tape. -- Posted via http://dbforums.com |
| |||
| what command do you use to check if the tape is in the drive and the drive is ready? That is what I'm looking for. -- Posted via http://dbforums.com |
| |||
| "sengstock3" <member25238@dbforums.com> wrote in message news:3495268.1066422630@dbforums.com... > > what command do you use to check if the tape is in the drive and the > drive is ready? That is what I'm looking for. Just do a rewind and check the shell return status. If it is 0, there is a tape in the drive, if not, there isn't. mt -f /dev/rmt? rewind REWSTATUS=$? then check $REWSTATUS |
| |||
| On Fri, 17 Oct 2003 08:58:48 -0400, sengstock3 wrote: > > Runninx AIX 4.3.3.0 > > I have 2 IBM Ultrium LTO tape drives and do a double backup of the > entire system each night. > > > > I am having problems with the assistant S.A not swapping out the tapes > each day. Other than beating him into submission, is there a way to > query the tape drives to see if they are ready for use so I can tell if > he has put in new tapes? We are using CPIO to copy files. > > > -- > Posted via http://dbforums.com If you have the ATape drivers installed, you could use 'tapeutil.' Or, if you know anything about C coding, download GC35-0346, which documents the ioctl() functions for the tape libraries. |
| |||
| sengstock3, try to look into tapechk command. One way is to check the first two files of the tape using tapechk 2, this command rewinds the tape and checks the first two files available on the tape. So you can write a script so that tapechk command after rewinding could check the first two files it returns error and you can send an email to your operator saying to load tapes, thats my take on this issue. Hope that will help you out the output will be # tapechk 2 118-008 The tapechk command is rewinding the tape. Please wait. /dev/rmt0: The device is not ready for operation. 118-009 The tapechk command could not rewind the tape. Please refer to the messages reference book. -- Posted via http://dbforums.com |
| |||
| if the tape IS in the drive, does it get reset after tapechk is done? In other words, will the tape still be ready to back up if tapechk is done on it? -- Posted via http://dbforums.com |
| ||||
| sengstock3 tapechk just rewinds the tape and checks for the file constitency. it doesn't eject the tape.take a look at man tapechk for further help. -- Posted via http://dbforums.com |