Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Swap Space alert question

SOLVED
Go to solution
rmueller58
Valued Contributor

Swap Space alert question

I am troubleshooting an error that is coming up for user that are logging on to one of our old library systems..

The OS is OSF1 V4.0878 Alpha

The system is virtually untouched by human hands the DEC guy in our shop left a while ago, I am the HP/UX-Linux head and have been asked to look into the error to see if I can resolve it.

I don't know what utilities to use to look at it and fix it other then swapinfo.. Will a reboot clear the problem?

How does one group swap space on a OSF/DEC system?

6 REPLIES
Hein van den Heuvel
Honored Contributor

Re: Swap Space alert question

What is the exact error message?

man -k swap should get you going.

To view swap usage typically one uses: swapinfo -s

The swap devices are defined in /etc/sysconfigtab (or /etc/fstab)

There may be a process with small memory leak which over months/years ate all swap space. Use some ps variant (or top if installed) to find out... or like you mention reboot to reset all.

hth,
Hein.
Geert Van Pamel
Regular Advisor
Solution

Re: Swap Space alert question

What error do you get (I did not read any error in your previous message?)

To see the amount of free & allocated swap:

swapon -s

To create additional swap space you need an empty partition

swapon /dev/re3b

Then add the additional swap to /etc/fstab to make it permanen.

grep swap /etc/fstab
/dev/re2b swap1 ufs sw 0 2
/dev/re3b swap2 ufs sw 0 2

Note: to remove swap space you need to edit the /etc/fstab file and reboot Tru64.
rmueller58
Valued Contributor

Re: Swap Space alert question

We have swap space set aside on the file system but is wasn't setup to see it..

we did a swapon /dev/rz## and mounted those in the /etc/fstab.. My question is why would it not read /etc/fstab?

/dev/rz2a / ufs rw 1 1
#/dev/rz2g /usr ufs rw 1 2
/dev/rz2b swap1 ufs sw 0 2
#/dev/rz2g swap2 ufs sw 0 2
/dev/rz8c /usr ufs rw 1 2
/dev/rz18c /dnx3 ufs rw 1 2
/dev/rz11c /dnx4 ufs rw 1 2
/dev/rz22c /usr/dnx1 ufs rw 1 2
/dev/rz14c swap3 ufs sw 0 2

Hein van den Heuvel
Honored Contributor

Re: Swap Space alert question

rex, is it working now? or is all intended swapspace still not there.
What does 'swapon -s' show?
'swapon -a' should read /etc/fstab
[on OSF 5.0 swap info is in /etc/sysconfig]

The /etc/fstab you shared shows that /dev/rz2g once was used to hold /usr, but /rz8c has that role now.
It looks as if rz2g is now ready to become more swap, but someone did not dare to go there just yes and commented that line.
So you should have just 2 swap files.
- swap1 - a small one on rz2b (500mb?)
- sawp3 - all of rz14 (4.3gb? 9gb?)

any errors in /var/adm/messages ?

if you decide to post swapon -s data, then maybe also show 'dk -k' and perhaps disklabel -r rz2

Silly question... rz2 _is_ still the boot disk is it? That /etc/fstab would not be stale info, where the real boot disk is rz0?
In that case swap1 would not work would it now?


Hein.


rmueller58
Valued Contributor

Re: Swap Space alert question

Yes! thank you all we got it working ..

rmueller58
Valued Contributor

Re: Swap Space alert question

Thanks All.