1826420 Members
3170 Online
109692 Solutions
New Discussion

Not enough space

 
Yan Wong
Frequent Advisor

Not enough space

Hi Folks,

I have a server with HP-UX 11.0. When I run gpm and sam as root, I get the following weirded messages:

$gpm &
/usr/lib/dld.sl: Call to mmap() failed - TEXT /lib/libXm.4
/usr/lib/dld.sl: Not enough space
$sam
sam: FATAL ERROR: Unable to load library "/usr/obam/lib/libIDMawrt.1": Not enough space

Any ideas...





8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor

Re: Not enough space

Hi,

Looks like you are running out of swap space. Do a swapinfo -t and see if it is showing 100%. If so, you will need to add more swap.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ian Kidd_1
Trusted Contributor

Re: Not enough space

check your swap space - you might have run out.

Another suggestion is to look at dbc_max_pct kernel parameter. The default is 50. Try something like 8 and see if that helps (reboot required)
If at first you don't succeed, go to the ITRC
Yan Wong
Frequent Advisor

Re: Not enough space

It seems my server is running out of the swap space. Can you show me the commands?

Thanks in advance
Michael Tully
Honored Contributor

Re: Not enough space

You will need to either create a new volume group or utilise an existing one. Here is an example.

# lvcreate -n swap1 /dev/vgswap
# lvextend -L L 2048 /dev/vgswap/swap1
# swapon /dev/vgswap/swap1
vi /etc/fstab
add this line

/dev/vgswap/swap1 ... swap pri=1 0 0

Save the file, this will ensure that the swapis turned on for the next reboot.
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: Not enough space

Hi,

#swapinfo -t

to look at your swap space. To add more swap, identify a volume group that is least used and has space in it. For ex., on vg01

#vgdisplay vg01

Look at "Free PE" value and multiply it with "PE Size" value. It gives the amount of space available in MB. Create a logical volume with some size.

#lvcreate -n swap2 -L size_in_mb -r N vg01

Now add the swap on it

#swapon -p 0 /dev/vg01/swap2

This should add the swap. This is only a temporary solution to get your system going.

When you get a maintenance window, add a disk or two, create a new volume group and make a new logical volume and add it as swap with the above procedure. Once you got the permanent swap volume, edit /etc/fstab and keep an entry "/dev/vg01/swap2 ... swap pri=0 0 0". Modify the entry with the correct ones.

You will first need to reboot the box to get rid of this temporary swap that you added now.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Yan Wong
Frequent Advisor

Re: Not enough space

I create additional lvol space with lcreate -L XXXX vgXX and then add it to existing swap space. I want to add this newly created swap space to existing /etc/fstab. Would the following be the right entry?

/etc/fstab
[existing]/dev/vg00/lvol10 ... swap defaults 0 0
[new]/dev/vg06/lvol10 ... swap defaults 0 0


Ian Kidd_1
Trusted Contributor

Re: Not enough space

provided you configured dev/vg06/lvol10 correctly, that's about it.

Did you issue a swapon to enable your new swap? If not, you can test your entry in /etc/fstab by issuing a swapon -a.

Even if you already enabled swap you can issue a swapon -a command to test your entry in /etc/fstab. you will get an error message like:
Enabling device paging on /dev/vg06/lvol10.
swapon: /dev/vg06/lvol10 is already enabled for paging

If at first you don't succeed, go to the ITRC
Yan Wong
Frequent Advisor

Re: Not enough space

Yes, the swapon -a show the following message:
Enabling device paging on /dev/vg06/lvol0.
swapon: /dev/vg06/lvol10 is already enabled for paging.

Thanks very much.
Yan