Solved

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

Posted on 1998-07-13
4
7,319 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you. That worked.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now