Operating System - HP-UX
1854699 Members
5766 Online
104102 Solutions
New Discussion

tty not waiting for a input

 
Anand Sreenivasan
Regular Advisor

tty not waiting for a input

Hello,
Instead of running the make_tape_recovery manually every week, I thought I would put it in a script so that my production control guys can run it. I gave them sudo access and they were able to run it but the problem is when the time comes for the second tape, the TTY shows the message but is not waiting for the prodcution control guys to enter. What am I doing wrong. I have attached the message below.


pax: home/cpr/home/cpr/cobol : No such file or directory
pax: Ready for volume 2
pax: Type "go" when ready to proceed (or "quit" to abort):
pax: Unable to prompt user: /dev/tty is unavailable.
WARNING: The pax command returned a non-zero exit status (exit status 1)
* Creation of system archive complete
7 REPLIES 7
Christian Tremblay
Trusted Contributor

Re: tty not waiting for a input

How big is your vg00 ? so that it requires a second tape ? or how small is you tape so that vg00 doesn't fit on one tape.

make-tape recovery should not be used to backup a whole system, just your vg00 which is normally small enough to fit one tape.
Anand Sreenivasan
Regular Advisor

Re: tty not waiting for a input

I have six network images stored on my vg00 on this system, My disaster recovery is to recover this system and then push the image out to other six systems. Just as an FYI...
Bill Hassell
Honored Contributor

Re: tty not waiting for a input

Very strong suggestion: vg00 should contain just the OS, perhaps 10-25Gb total. All those network images need to be on a separate VG just like databases. Dedicate a disk or two to hold all the images, create the VG and an lvol for the Ignite images, move copy all the images to the new lvol. Now re-mount the new lvol at the point where the images reside.

Alternatively, use the exclude feature in Ignite to eliminate the Ignite directories. Note that Ignite is not a backup program, it is a system recovery tool for an unbootable computer. Data should always be separated since there are much better tools for backing up data (such as fbackup).


Bill Hassell, sysadmin
Anand Sreenivasan
Regular Advisor

Re: tty not waiting for a input

Technicians always don't win over the management. I am in the same situation . I am working towards it but it ie very important for me to make this work. what do I have to do so that the tty will wait for the input.. Thanks.
Victor BERRIDGE
Honored Contributor

Re: tty not waiting for a input

Hi,
The best would be you show us the script and how your prod guys use it (batch via a centralized scheduler?...)
Then we can start brainstorming together...


All the best
Victor
Steven Schweda
Honored Contributor

Re: tty not waiting for a input

I know nothing, but if "pax" is trying to use
"/dev/tty" directly (rather than using stdin
and stdout), and if "sudo" prevents that from
working, then you may be doomed.

"pax ... -y ..." may give you a way to test
things faster than writing a whole tape.

Give everyone the "root" password?

A Google search for 'hp-ux pax "/dev/tty"'
turned up this (among other things):

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=992370
OldSchool
Honored Contributor

Re: tty not waiting for a input

I'd suggest that you consider Bill H's recommendations very carefully.

Ignite is intended as a system recovery tool only. There are other utilities, such as fbackup or DataProtector (and many others) that are far better than Ignite when it comes to archiving / recovering data.

Please consider relocating data to non-vg00 disks, excluding directories/trees.

Usually, questions like this are followed by "How to I extract file X from an Ignite tape"