Solved

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

Posted on 1998-07-13
4
7,425 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:laraj
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
jos010697 earned 50 total points
ID: 2008759
Kill the getty; it's connected to that tty and tries to fork a login if someone types
something at that line ... (the grep in your ps list is not important here).

kind regards,

Jos aka jos@and.nl
0
 

Author Comment

by:laraj
ID: 2008760
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
0
 
LVL 4

Expert Comment

by:jos010697
ID: 2008761
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 ...
0
 

Author Comment

by:laraj
ID: 2008762
Thank you. That worked.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question