Link to home
Start Free TrialLog in
Avatar of laraj
laraj

asked on

rmdev: Method error 0514-062 "...device is busy"

Hello:
Scenario
-------------
I am trying to remove a tty and free up a port on our system (AIX 3.25) by using rmdev (rmdev -d -l tty17) and I am receiving the following error:
Method error "(/etc/methods/ucfgtty): 0514-062 Cannot perform the requested function because the specified device is busy."
I have checked the processes on the device with 'ps -ef | grep tty17' and found only two root processes running:
"/etc/getty/dev/tty17" and "grep tty17" which are related I think to my ps -ef call.

Question
-------------
What I am wondering is what are the steps to removing  this tty? I know that it is still in the 'available' state, but I can not figure out how to change it to either the 'defined' or 'stopped' state.

Any help would be greatly appreciated!
Regards,
Lara
ASKER CERTIFIED SOLUTION
Avatar of jos010697
jos010697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of laraj
laraj

ASKER

Hi Jos,
    Thanks for your help. I'm still having trouble though.  I have tried to Kill the Getty connected to tty17, however, everytime I do, it restarts automatically, spawning a new Getty process. I'm sure there is an easy answer to this... I thought about modifying the inittab (removing "respawn tty17"), but wanted to find an easier way first.

Regards,
Lara
Yes, sloppy of me not to mention this ... init starts gettys periodically if one
happens to be gone for some reason (like you killing one of them). Check
your gettytab in /etc and remove (comment out) the line for tty17. This will
prevent a new getty to get started after killing its predecessor ...
Avatar of laraj

ASKER

Thank you. That worked.