Compatible Support Forums: How do I reinitialise a device ?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do I reinitialise a device ?

#1 User is offline   deathrider 

  • stranger
  • Group: Members
  • Posts: 4
  • Joined: 06-June 00

Posted 23 October 2002 - 03:20 AM

I have a tape drive that I use for backups and occasionally it fails for various reasons. I kill the process but the device (/dev/st0) is still showing up as busy (mt status). The only way I have been able to get it back up and running is by rebooting the server. Is there a way to reinitialise the device so that a reboot is not required?

Thanks in advance.
0

#2 User is offline   punkisdead 

  • member
  • Group: Members
  • Posts: 118
  • Joined: 08-August 02

Posted 29 October 2002 - 06:03 AM

What is your current working directory ( $PWD) when trying to umount the drive? Because if your directory is under the mount point when you try to umount it won't work..
0

#3 User is offline   gfolkert 

  • journeyman
  • Group: Members
  • Posts: 64
  • Joined: 03-January 03

Posted 04 January 2003 - 06:40 AM

a bit of sh work should fix your dilemma:

as root, do
Code:
lsof | grep -e "/dev/st0" | less


That should tell you the Process that still has the device open. If it iz zombie'd or won't die... a reboot is about the only thing you can do... Except editing memory space and hash tables manually....

But, I am guessing you are *NOT* a Expert UNIX GEEK like me with 15+ years of *NIX (DEC OSF/1, Tru64, HP-UX, Solaris, AIX, BSDi, *BSD, IRIX, SunOS, Linux... etc...) I'd be nervous doing that... laugh
0

#4 User is offline   deathrider 

  • stranger
  • Group: Members
  • Posts: 4
  • Joined: 06-June 00

Posted 05 February 2003 - 01:59 AM

Thanks for your comments smile

I am not competent enough to edit memory space or hash tables (at least at this point in time).

Looks like a reboot is the only solution for me for the time being.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users