1832552 Members
5873 Online
110043 Solutions
New Discussion

Re: swap space problem

 
Hoang Minh Tuan
Regular Advisor

swap space problem

Hi all,
I have a problem about my server HP9000 A500 HP-UX. I dont no why when I start my server to level 3, after 2 or 3 minutes I can not execute any command and it display in the console message " sh: can not fork: no swap space". and sometimes it give out message " resetting SCSI : lbolt ..."
I created another swap space in vg01 (default is vg00) but it stay the same.
Do you have any recommendation or guides. Your clues is many thanks.
Regards.
Bus wait at bus station, Work wait at my work station
10 REPLIES 10
bhavin asokan
Honored Contributor

Re: swap space problem

hi,

try lvlnboot -v command.is it showing like following(having lvol2 as swap).

/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c2t2d0, 0

if not try
#lvlnboot -s /dev/vg00/lvol2

if it is not solving problem post the output of swapinfo -t

regds,
Suraj_2
Valued Contributor

Re: swap space problem

Hi

resetting SCSI:lbolt..seems to be some hard disk problem..

Check the errors in syslog.log files
(/var/adm/syslog/syslog.log)

Rgds
Suraj
Hoang Minh Tuan
Regular Advisor

Re: swap space problem

I used command lvlnboot -v: it 's OK with the same as you show above (excepted it 's not mirrored)so that my server has swap on lvol2.
An abnormal signal is that I has created second swap space in vg01 and up it to run level 3 but after 2 to 3 minutes, I can't do any commands (eg. bdf, ls, pvdisplay) and it only show on console
" sh: can not fork: no swap space
Error reading from the input file (205) read() returned error code 5 - I/O error. Check your input parameters and try again. Current input file position (in bytes): 34745"
and then server automatically dump.
Bus wait at bus station, Work wait at my work station
Fred Ruffet
Honored Contributor

Re: swap space problem

What does swapinfo -tam tells ?
what is content of /etc/fstab ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Massimo Bianchi
Honored Contributor

Re: swap space problem

Hi,
try to start in single user, a to determine what is consuming memory.

Stop it at boot, and issue

hpux -is ....

Then,
think:

did you installed anything ?

did you changed some kernel parameter ?

did you increased, for example, and oracle SGA ?

What is the content of your rc.log ? Maybe there a re some clues, some strange process starting...


HTH,
Massimo
Hoang Chi Cong_1
Honored Contributor

Re: swap space problem

Hi Tuan.

I quite agree with Massimo Bianchi.
It seems that there some strange processes is running...
You can check from GlancePlus to determine whether strange process.
Could you show me the output for the swapinfo -a command?
Post again!

Best and regard,

Jimkery
Looking for a special chance.......
Steven E. Protter
Exalted Contributor

Re: swap space problem

lbolt has two causes that I know of:

1) A disk has failed. If you have swap on it that pretty much explains everything.

2) You recently replaced a hot-swapable disk. That lbolt will stay around until next boot.

I suggest, based on circumstances a reboot in short order. If that doesn't clear the lbolt, take a look at some disk reports and see if swap was sitting on the missing disk.

strings /etc/lvmtab

then pvdisplay -v /dev/dsk/c1t1d0 | more on each one.

cstm mstm or xstm might be useful in diagnosing which disk has gone.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Nguyen Anh Tien
Honored Contributor

Re: swap space problem

Hi Tuan.
Iam sure that you disk (that contains swap logical volume) has fail.
If you have 2 internal disk and mirrored together. you should shutdown server, unplug faild disk and boot.
You can check your hardware on system by using stm, cstm, xstm (x mode),syslog.
If you do not want to unplug disk, put your server in single mode and check disk,swaplv again by:
pvdisplay -v /dev/dsk/cxtxdx
swapinfo
vi /var/adm/syslog/syslog.log
tienna
HP is simple
Hoang Minh Tuan
Regular Advisor

Re: swap space problem

Thanks all,

swapinfo display with lvol2 and /vg01/lvswap and as I talk above, I setted swap on lvswap with priority 0 (greater than 1 in lvol2) so I think that it will not use lvol2 as swapspace except lvswap used full.
In /etc/fstab I editted it automatically mount /dev/vg01/lvswap as swap space.

Up to now, I have not changed any parameters of OS and Oracle.
I started to single user mode and checked system but there 's no warning/abnormal signal in syslog.log, rc.log, /tombstones/ts99 and shutdownlog.

I don't have glance tool and it's OK when pvdisplay with the disk including O.S

Hi Tien and happy to meet a Vietnam person. Following your question, disks are not mirrored and I can't unplug the fail disk because it containt HP-UX O.S.

Some days ago, I decided replacing a new one and used ignite tape to recover O.S in new disk. It has worked well till now.
Many thanks for all of your help
Bus wait at bus station, Work wait at my work station
Hoang Minh Tuan
Regular Advisor

Re: swap space problem

Thanks to all
Bus wait at bus station, Work wait at my work station