Operating System - HP-UX
1833953 Members
2429 Online
110063 Solutions
New Discussion

If session terminated accidently, can i still see the output of the terminated session

 
SOLVED
Go to solution
Gaurav Verma
Occasional Contributor

If session terminated accidently, can i still see the output of the terminated session

Hi!!!

While taking Backup of my Database server, my session accidently got terminated, Backup is still running, now i m unable to check wht is happening. Can any one suggest me how to open/check that particular running output?

4 REPLIES 4
Bill Hassell
Honored Contributor
Solution

Re: If session terminated accidently, can i still see the output of the terminated session

When a connection is destroyed, child processes are normally terminated with the SIGHUP signal. top is useless to determine the state of your backup session because it does not show the parent process ID. If your copy of fbackup was run with the nohup command and puj into the background, then fbackup is now owned by init. But since your terminal device does not exist, any output from fbackup is lost. You can't get your terminal reconnected to a running program.

That is why a long-running process like a backup must be scripted and all the output redirected into a logfile.


Bill Hassell, sysadmin
Gaurav Verma
Occasional Contributor

Re: If session terminated accidently, can i still see the output of the terminated session

hi!!!

Thnx for the support, but still can u tell me hw i can read /dev/rmt/0mn while taking backup to know hw many files are left. or can I see any warning or error message in any perticular log????
i use this cmd:-
fbackup -v -f /dev/rmt/0mn -i /d/db/oradata -i /d/db/8.1.7.3
Yogeeraj_1
Honored Contributor

Re: If session terminated accidently, can i still see the output of the terminated session

hi,

try:
frecover -f /dev/rmt/0mn -v -r -N
==> -v = verbose; -r = everything; -N = just list the files.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Bill Hassell
Honored Contributor

Re: If session terminated accidently, can i still see the output of the terminated session

Once you are disconnected from the fbackup process, you cannot see any status at all (unless it was started with stdout redirected into a logfile -- then you would use the tail command on the logfile to monitor progress). You can't read anything from the devicefile for the tape because it is being written by fbackup. You'll just have to wait for fbackup to complete or kill the process and restart it, but this time, redirect the output into a file.


Bill Hassell, sysadmin