RE: [U2] [UV] Locked tape drive
try ps -ef | grep rmt (whatever the tape is) in aix that might give you a pid and user whio has it -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steve Ferries Sent: 24 January 2007 14:36 To: u2-users@listserver.u2ug.org Subject: [U2] [UV] Locked tape drive Hi All, AIX 5.3 UV 10.1.14 We have a tape drive that we cannot access. It appears to be locked and barring a reboot, we don't know how to clear it. At the Unix prompt: server:/u1/dbms/TCR# tctl -f /dev/rmt1 rewind /dev/rmt1: Resource temporarily unavailable server:/u1/dbms/TCR# At the uv prompt: ASSIGN MT1 TO MTU 0 --- I'm stuck here We did LIST.READU, and cleared the locks that were set against my id: unlock user 313 all Clearing Record locks. Clearing GROUP locks. Clearing FILE locks. There is obviously someone else who had locked the drive before I arrived, but there are no more users listed in LIST.READU, or PORT.STATUS that show a tape drive being used. PORT.STATUS: 519788 t.stevef 313 /dev/pts/37 ASSIGN MT1 TO MTU 0 Any suggestions? Thanks, Steve Chief Cook/Bottle Washer --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] Locked tape drive
SH out and get to su (su -) and then do: fuser -u /dev/rmt1 That should give you a list of PIDs 'attached' to the device. Do: ps -ef | grep PID where PID = one of the PIDs the fuser command returned. You can then determine of those processes can be killed or not. Be careful. HTH Karl quote who=Steve Ferries Hi All, AIX 5.3 UV 10.1.14 We have a tape drive that we cannot access. It appears to be locked and barring a reboot, we don't know how to clear it. At the Unix prompt: server:/u1/dbms/TCR# tctl -f /dev/rmt1 rewind /dev/rmt1: Resource temporarily unavailable server:/u1/dbms/TCR# At the uv prompt: ASSIGN MT1 TO MTU 0 --- I'm stuck here We did LIST.READU, and cleared the locks that were set against my id: unlock user 313 all Clearing Record locks. Clearing GROUP locks. Clearing FILE locks. There is obviously someone else who had locked the drive before I arrived, but there are no more users listed in LIST.READU, or PORT.STATUS that show a tape drive being used. PORT.STATUS: 519788 t.stevef 313 /dev/pts/37 ASSIGN MT1 TO MTU 0 Any suggestions? Thanks, Steve Chief Cook/Bottle Washer --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- karl _/ _/ _/ _/_/_/ __o _/ _/ _/ _/_/ _-\._ _/_/_/ _/_/_/ (_)/ (_) _/ _/ _/ _/ .. _/ _/ arl _/_/_/ _/ earson[EMAIL PROTECTED] -- IT Director, ATS Industrial Supply, Inc. http://www.atsindustrial.com Toll-free: 800-789-9300 x29 Direct2Desk: 801-978-4429 Facsimile: 801-972-3888 -- To mess up your Linux PC, you have to really work at it; to mess up a microsoft PC you just have to work on it. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UV] Locked tape drive
Hi Karl, Forgot about fuser... As root, I entered the following: server:/u1/dbms/TCR# fuser -u /dev/rmt1 /dev/rmt1: server:/u1/dbms/TCR# It did not return any users. Then: server:/u1/dbms/TCR# fuser -u /dev/rmt1.1 /dev/rmt1.1: 1503458(t.luisu) server:/u1/dbms/TCR# Luis is in my group. Right now I have him in a headlock. Killed him, I mean his process. Thank you very much! Steve SH out and get to su (su -) and then do: fuser -u /dev/rmt1 That should give you a list of PIDs 'attached' to the device. Do: --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UV] Locked tape drive
Be careful with fuser - you need to make sure you get the right device. You may need to check if rmt1 is linked (hard or soft) to any other devices. If you do an ls -l what is the numeric value after the permissions column? If that is anything other than 1 then it would indicate that the file is linked to/from other files - and that could be why fuser doesn't give you the information you expect. Robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Ferries Sent: 24 Jan 2007 16:02 To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UV] Locked tape drive Hi Karl, Forgot about fuser... As root, I entered the following: server:/u1/dbms/TCR# fuser -u /dev/rmt1 /dev/rmt1: server:/u1/dbms/TCR# It did not return any users. Then: server:/u1/dbms/TCR# fuser -u /dev/rmt1.1 /dev/rmt1.1: 1503458(t.luisu) server:/u1/dbms/TCR# Luis is in my group. Right now I have him in a headlock. Killed him, I mean his process. Thank you very much! Steve SH out and get to su (su -) and then do: fuser -u /dev/rmt1 That should give you a list of PIDs 'attached' to the device. Do: --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UV] Locked tape drive
HI Robert, Here is the display: crw-rw-rw- 1 root system 24, 8 Jan 11 13:05 rmt1 crw-rw-rw- 1 root system 24, 9 Jan 11 13:56 rmt1.1 crw-rw-rw- 1 root system 24, 10 Jan 11 13:05 rmt1.2 crw-rw-rw- 1 root system 24, 11 Jan 11 13:05 rmt1.3 crw-rw-rw- 1 root system 24, 12 Jan 11 13:05 rmt1.4 crw-rw-rw- 1 root system 24, 13 Jan 11 13:05 rmt1.5 crw-rw-rw- 1 root system 24, 14 Jan 11 13:05 rmt1.6 crw-rw-rw- 1 root system 24, 15 Jan 11 13:05 rmt1.7 The major and minor numbers are not 1. The 'c' means it is a special device file, but no links. Steve Be careful with fuser - you need to make sure you get the right device. You may need to check if rmt1 is linked (hard or soft) to any other devices. If you do an ls -l what is the numeric value after the permissions column? If that is anything other than 1 then it would indicate that the file is linked to/from other files - and that could be why fuser doesn't give you the information you expect. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] Locked tape drive
We have a tape drive that we cannot access. It appears to be locked and barring a reboot, we don't know how to clear it. Keep any eye on the frequency of these. In our case this turned out to be the tape drive slowly failing (actually the scsi back plane adapter on the tape drive). If it is hardware, you may be stuck with a reboot. Adrian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] Locked tape drive
Hi all, I had unsubcribe from this u2 list.. but I am still getting email.. is there anyway to stop this? Regards Frederick Please respond to u2-users@listserver.u2ug.org Sent by:[EMAIL PROTECTED] To: u2-users@listserver.u2ug.org cc: Subject:Re: [U2] [UV] Locked tape drive We have a tape drive that we cannot access. It appears to be locked and barring a reboot, we don't know how to clear it. Keep any eye on the frequency of these. In our case this turned out to be the tape drive slowly failing (actually the scsi back plane adapter on the tape drive). If it is hardware, you may be stuck with a reboot. Adrian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UV] Locked tape drive
Cod buy a tipo unsubscribe Garry L. Smith Dir Info Systems Charles McMurray Company V# 559-292-5782 F# 559-346-6169 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 2:00 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] Locked tape drive Hi all, I had unsubcribe from this u2 list.. but I am still getting email.. is there anyway to stop this? Regards Frederick Please respond to u2-users@listserver.u2ug.org Sent by:[EMAIL PROTECTED] To: u2-users@listserver.u2ug.org cc: Subject:Re: [U2] [UV] Locked tape drive We have a tape drive that we cannot access. It appears to be locked and barring a reboot, we don't know how to clear it. Keep any eye on the frequency of these. In our case this turned out to be the tape drive slowly failing (actually the scsi back plane adapter on the tape drive). If it is hardware, you may be stuck with a reboot. Adrian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/