1824072 Members
2435 Online
109668 Solutions
New Discussion юеВ

Re: Add more Swap space

 
Isaac_4
Frequent Advisor

Add more Swap space

hi to all

I have some cuestion about Swap in hpux 11i v3.

1. Can create swap space from SAM o the new tools SMH i guest
2. If the first question its negative, someone know the procedure.
3. its posible active the swap space now y next boot , how to !!!

Tks allot

The time is gold
4 REPLIES 4
Johnson Punniyalingam
Honored Contributor

Re: Add more Swap space

Hi Isaac,

Create a logical volume (Make sure you have atleast 4 GB of space in any volume group)

Follow as example :-

#lvcreate -n swap -L 4000 vg01
Edit /etc/fstab and place the entry
/dev/vg01/swap ... swap pri=0 0 0
#swapon -a

#swapinfo -t

and make sure you have the swap listed.

Easy by command line also .. :)

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Ganesan R
Honored Contributor

Re: Add more Swap space

Hi,

Use SAM to create additional swap if you are not comfortable with command line. Follow the below steps.

Findout which volumegroup(VG) is having enough free space using vgdisplay command.

For VG01 use the following command. Look at the values of Free PE and PE size.
PE size*No of Free PE├в s is the space available on that VG

#vgdisplay /dev/vg01

Create the logical volume for your secondary swap.

#lvcreate -L 8000 -n swap -C y -r n /dev/vg01 ->Here the size is 8GB

Note the above commad. It should be contigious( -C y), bad block reallocation off(-r n). Once you created the logical volume use SAM to configure it.

#sam
Disks And File Systems
Swap
Actions ->Add Device Swap
Using the Logical Volume Manager

Select the lvol from the list of Unused Logical Volumes

/dev/vg01/swap

select:
When to Enable
[X] Now
[X] At Every System Boot
OK

Then system will rebuilt the kernel and reboot the system.

Best wishes,

Ganesh.
Torsten.
Acclaimed Contributor

Re: Add more Swap space

Because there is no SAM in 11.31 (11iv3) and I can't find this option in SMH you need to go with the manual procedure - see previous posts and

http://docs.hp.com/en/B2355-90950/ch06s03.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frank de Vries
Respected Contributor

Re: Add more Swap space

Don't forget to use lvnlboot if it concerns primary swap

lvlnboot - prepare LVM logical volume to be root, boot, primary swap,
or dump volume

SYNOPSIS
/usr/sbin/lvlnboot [[-A autobackup]
{ -b boot_lv | -d dump_lv | -r root_lv | -R | -s swap_lv }]
[-v] [vg_name]


Look before you leap