[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 1998-07-13
4
Medium Priority
?
7,894 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 150 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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.
Suggested Courses

656 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