Operating System - HP-UX
1833130 Members
3224 Online
110051 Solutions
New Discussion

Re: how do you create more /dev/pts files

 
SOLVED
Go to solution
John Jimenez
Super Advisor

how do you create more /dev/pts files

Hi I hope someone can help me quickly. Last night we upgraded our processor. I was able to log in last night, but as people are coming in this morning they cannot because I ran out of /dev/pts/* files. How do I create more of these drivers? I checked the old system and there are many. But these are driver files and cannot be copied over.
Hustle Makes things happen
6 REPLIES 6
Peter Godron
Honored Contributor
Solution

Re: how do you create more /dev/pts files

John,

you can create /dev/pts files with :
cd /dev
insf -e
insf -d telm
insf -d tels

But it could depend on your kernel configuration whether new ones are created
Court Campbell
Honored Contributor

Re: how do you create more /dev/pts files

make the kernel parameter npty a higher value, rebuild the kernel, and reboot.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
John Jimenez
Super Advisor

Re: how do you create more /dev/pts files

thanks for the kernal info. I was looking for something in the lines of maxpts not npts. But that parameter was okay

I had tried an insf by itself with no luck. but using the -e did the trick.

I was here past 2 am doing the conversion yesterday, so this morning I am really brain dead and cannot think clearly. Thank you for helping me out.
Hustle Makes things happen
John Jimenez
Super Advisor

Re: how do you create more /dev/pts files

thanks again
Hustle Makes things happen
Patrick Wallek
Honored Contributor

Re: how do you create more /dev/pts files

There are 3 paramters that must be changed:

npty
nstrpty
nstrtel

You should make all 3 of these equal. Check the values on your old system.

These are all static parameters (iirc) and as such will require a reboot after the kernel is rebuilt.
Bill Hassell
Honored Contributor

Re: how do you create more /dev/pts files

The easiest way is to use SAM. You need to change three (3) kernel parameters:

npty
nstrtel
nstrpty

Increase these a lot, perhaps 500 or 1000 so you don't have to go back again. These param changes require a reboot. SAM will not only change the kernel values but also run insf to create the additional device files in all the right directories.

Doing it by hand requires generating a new kernel *AND* running insf to create the additional files...too many steps for the casual sysadmin. Let SAM do it.


Bill Hassell, sysadmin