Operating System - HP-UX
1833723 Members
2998 Online
110063 Solutions
New Discussion

tar hanngs during i/o operations

 
Lukasz Geleta
Occasional Contributor

tar hanngs during i/o operations

tar hanngs during i/o operations and it cannto be killed any subseqent process trying to write to the same tape device hang as well.
I there anything that can be done to get this tape device back in use (except of booting the machine)?
Any suggestions highly appreciated.

Lukasz
5 REPLIES 5
Michael Tully
Honored Contributor

Re: tar hanngs during i/o operations

You can only have one process controlling a particular tape drive at any one time. If you have physical access to the actual drive, then press the eject button on the drive.
Anyone for a Mutiny ?
Jeff Schussele
Honored Contributor

Re: tar hanngs during i/o operations

Hi Lukasz,

Try holding the eject button on the tape drive for 5 - 10 seconds to see if that forces ejection. If that doesn't work & it's in an external enclosure, you can try power cycling the tape drive & repeating the ejection attempt.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: tar hanngs during i/o operations

ps -ef | grep process name

kill -9 process number from prior output.

You should never have to power cycle a working drive to regain use of the drive.

You might wish to try looking at the process to see why its hanging.

There is a tar patch that fixes a lot of bugs and lets you tar 8 Gig files.

PHCO_24633 for 11.00
PHCO_24623 for 11.11

Good luck.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Lukasz Geleta
Occasional Contributor

Re: tar hanngs during i/o operations

Hi,
neither of solutions suggested above seemed to work. Killing of the process was not possible since it seem to hang during some I/O operation although it was possible to remove a tape from the drive (with eject button). Finally I had to restart the system.

Thanks anyway,

Lukasz
Pete Randall
Outstanding Contributor

Re: tar hanngs during i/o operations

Kill won't affect a process that's waiting for I/O completion. The ONLY way around it is to re-boot.

Pete

Pete