Operating System - HP-UX
1820238 Members
2514 Online
109620 Solutions
New Discussion юеВ

Re: How to change terminal device file ?

 
Sir T S S
Advisor

How to change terminal device file ?

Dear experts,
we have a clustered environment,
one of our binary is tied to /dev/tty2a8 on node 1. We are trying to failover to node 2, but /dev/tty2a8 is not created, we have /dev/tty4a8 instead. is there any way to change the tty4a8 to tty2a8 or somehow make a linkage?
7 REPLIES 7
Stephen Keane
Honored Contributor

Re: How to change terminal device file ?

# ln -s /dev/tty4a8 /dev/tty2a8
should do it.

HP-UX doesn't care what the name of the device is, provided the major/minor numbers are OK.
Peter Godron
Honored Contributor

Re: How to change terminal device file ?

Hi,
after you have created the link make sure you have the access priviledges you need.
ls -l /dev/tty2a8
If you have not, remove the link, change your umask and then recreate the link.
Regards
Elmar P. Kolkman
Honored Contributor

Re: How to change terminal device file ?

The other solution would be to change the instance number of the multi-serial device... Not the easiest solution, but it is the neatest, especially if you add a new device in the nodes which would create a tty4a8 on node 1.

Something else to keep in mind: what's behind the tty2a8 on node 1? Is this also accessable on node 2?
Every problem has at least one solution. Only some solutions are harder to find.
Sir T S S
Advisor

Re: How to change terminal device file ?

Hi Peter,

Do u mean by changing it all to rwxrwxrwx , ? i try the command cu -l /dev/tty2a8 ( a link created on node 1 ) but it gave error. pls refer to attachment . anyone can advise on this.

Sir T S S
Advisor

Re: How to change terminal device file ?

sorry all, attachment is here..

Hi Elmar,

Any step to change to instance number as u suggested?
Elmar P. Kolkman
Honored Contributor

Re: How to change terminal device file ?

Take a look at ioinit. There should be multiple documents on the ITRC or net to use it to re-assign instance numbers to hardware.
Every problem has at least one solution. Only some solutions are harder to find.
Sir T S S
Advisor

Re: How to change terminal device file ?

thanks