Operating System - HP-UX
1753773 Members
5390 Online
108799 Solutions
New Discussion юеВ

directory removed, processes still running writing to removed directory?

 
SOLVED
Go to solution
Randy_9
Regular Advisor

directory removed, processes still running writing to removed directory?

Question:
Processes that are running and are/were writing to NFS mounted files in a directory
that got removed, the directory got restored
and the log files are dated at the last backup
time. The processes on the client system are
still running, are no longer writing to these
log files. I figured the file descriptors got
lost in the shuffle, is it possible the still
running processes are wrinting their data to somewhere that can be retreived (I doubt it, but had to ask). Will the client processes need
to be restarted to link them back to the original files. I believe the directory disappeared about 8 hours afters the last backup.

Thanks Randy
4 REPLIES 4
Simone Benzi_1
Frequent Advisor

Re: directory removed, processes still running writing to removed directory?

Hi,

Yes, I think you have to do at least a:

kill -HUP

of your writing procsses.

Simone
Zeev Schultz
Honored Contributor
Solution

Re: directory removed, processes still running writing to removed directory?

Generally,you can use tusc -vp on
your proccesses,and if you see write(),read()
calls - means they're doing I/O.Where?Depends on applications,some can use buffers.And if it
shows sleep(),most probably proccess is sleeping and should be no harm to kill.
Obtain tusc here:
http://hpux.cs.utah.edu

Zeev

So computers don't think yet. At least not chess computers. - Seymour Cray
Randy_9
Regular Advisor

Re: directory removed, processes still running writing to removed directory?

Simone,
I tried the "kill -HUP " against all of
the PID's associated with the NFS filesystem. I
did not see a continuation of data to the log files. Good suggestion though!

Zeev,
I downloaded "tusc" but I am not sure if the
application writes to a buffer or what. I know it would be all to kill them and restart them.
If I find out the application is writing to a buffer, how could I retrieve them. Does "tusc"
do this or just identfy what/where the I/O is
going?.

Thanks,

Randy
Zeev Schultz
Honored Contributor

Re: directory removed, processes still running writing to removed directory?

Late reply :)
Ok,tusc itself shows system calls (like read or write).Its not a tool to salvage data.
I can guess that the data is most probably lost here :(

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray