Thanks to all that responded:
Sam Vilain
David Evans
Olivier Giraud
>Original Question:
>Is there a way to increase the /dev/pts for Solaris 2.6 without
> rebooting. I know that the pt_cnt parameter can be changed to whatever
> and rebooted and they will come up but I need to this online ASAP.
ANSWER:
Olivier sent me a sunsolve document that I could not find in my searches
describing the painful procedure, I'll tack it on at the end. But I
took part of this and then ran another command.
The main item is telling the kernel that you will now allow more than
the default 48 pty's. This can be done by
>
> 1. Use adb with -w flag to modify the running
> kernel
>
> # adb -k -w /dev/ksyms /dev/mem
>
> 2. Check the current number of pt_cnt (SysV pty''s)
> in both
> decimal and hexidecimal
>
> pt_cnt/D <= type
> pt_cnt: 48 # number in decimal
>
> pt_cnt/X <= type
> pt_cnt:
> pt_cnt: 30 # number in hexidecimal
>
> 3. Change the value of pt_cnt from 48 to 64 by
> convert 64 decimal
> to hexidecimal ( 64 dec = 40 hex )
>
> pt_cnt?W40 <= type
> pt_cnt: 0x30 = 0x40
>
> The operation will return the old value and the
> new value.
>
> 4. Quit out of adb
>
> $q <cr>
5. run the following 2 commands /usr/sbin/drvconfig and
/usr/sbin/devlinks. This will create the extra pty's and then link them
up. Once this is done all is well with the system.
Attached SUNSOLVE
SunSolve CD Document - Symptoms and
> Resolutions Article 17769
>
>
> Load Document as Plain Text
>
> SRDB ID: 17769
>
> SYNOPSIS: Need to increase pseudo ttys (pty's)
> interactively.
>
> DETAIL DESCRIPTION:
>
> Out of pseudo terminals, 'no available ptys'. Need
> to add more
> devices but can''t reboot the system because it is
> a mission critical
> database server. Need to increase ptys
> interactively
>
>
> SOLUTION SUMMARY:
>
> *** DISCLAIMER!!! This is not supported by Sun
> ***
> *** Microsystems Enterprise Services! Use at own
> risk. ***
>
> Following example is for increasing the number SysV
> pseudo
> terminals (pt_cnt) from default 48 to 64 ( 0 thru
> 63 ) on a
> live running system.
>
> --- Create the devices and devlinks
>
> 1. Create the character devices (as root). The
> major number for
> these devices is 24. The minor number will
> start with 48
> and increment to 63.
>
> Example:
> /usr/sbin/mknod /devices/pseudo/pts\@0:<minor>
> c <major> <minor>
>
> # mknod /devices/pseudo/pts\@0:48 c 24 48
> # mknod /devices/pseudo/pts\@0:49 c 24 49
> .
> .
> .
> # mknod /devices/pseudo/pts\@0:63 c 24 63
>
> 2. Update the mode and group of the new devices
>
> # chmod 644 /devices/pseudo/pts\@0:48 [thru
> 63]
> # chgrp sys /devices/pseudo/pts\@0:48 [thru
> 63]
>
> 3. Next, create the symlinks in /dev/pts
>
> Example:
> /usr/bin/ln -s
> ../../devices/pseudo/pts\@0:<minor> /dev/pts/<minor>
>
> # ln -s ../../devices/pseudo/pts\@0:48
> /dev/pts/48
> # ln -s ../../devices/pseudo/pts\@0:49
> /dev/pts/49
> .
> .
> .
> # ln -s ../../devices/pseudo/pts\@0:63
> /dev/pts/63
>
> 4. Update the group of the new links
>
> # chgrp -h root /dev/pts/48 [thru 63]
>
>
> --- Update the running kernel
>
> 5. Use adb with -w flag to modify the running
> kernel
>
> # adb -k -w /dev/ksyms /dev/mem
>
> 6. Check the current number of pt_cnt (SysV pty''s)
> in both
> decimal and hexidecimal
>
> pt_cnt/D <= type
> pt_cnt: 48 # number in decimal
>
> pt_cnt/X <= type
> pt_cnt:
> pt_cnt: 30 # number in hexidecimal
>
> 7. Change the value of pt_cnt from 48 to 64 by
> convert 64 decimal
> to hexidecimal ( 64 dec = 40 hex )
>
> pt_cnt?W40 <= type
> pt_cnt: 0x30 = 0x40
>
> The operation will return the old value and the
> new value.
>
> 8. Quit out of adb
>
> $q <cr>
>
> PRODUCT AREA: Bundled Network
> PRODUCT: Network Other
> SUNOS RELEASE: Solaris 2.6
> HARDWARE: Ultra 2 Creator
>
*************************** IMPORTANT MESSAGE
*********************************
-- Ray################################################################# # Raymond P. Delaney Jr. BroadBand Technologies, Inc. # # Sr. Systems Administrator PO Box 13737 # # Phone -> 919-405-4627 RTP, NC 27709-3737 # # 800-487-0015 ext. 44627 # # Beeper-> 919-506-1907 http://www.bbt.com # # Fax -> 919-405-4544 # # Email -> rdelaney@bbt.com # ################################################################# "Wisdom comes from lifetimes, not another day at the office!" -Dad
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:19 CDT