Solved

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

Posted on 1998-07-13
4
7,662 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

717 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