Operating System - HP-UX
1847212 Members
2364 Online
110263 Solutions
New Discussion

Increasing the primary swap spce

 
SOLVED
Go to solution
anisnadar
New Member

Increasing the primary swap spce

hi gurus
Please guide me increase the primary swap space of my system.I am very much new to HPUX.
Thanks in advance
Anis
5 REPLIES 5
Sยภเl Kย๓คг
Respected Contributor
Solution

Re: Increasing the primary swap spce

anis why do u want to increase the primaryswap,just review your decision

Due to the contigous allocation policy ,create a bigger LV and modifiey BDRA to make it primary
Follow the steps
1. #lvcreate -C y -L 500 /dev/vg00
notedown the name of the newly created LV
2. #lvnboot -v /dev/vg00
will display the current root and swap volumes
3. #lvnboot -s /dev/vg00/ /dev/vg00
is the LV which is created in 1st step
4. #lvnboot -R /dev/vg00
This will recover any missing links to all of the logical volumes specified in the BDRA and update the BDRA of each bootable PV in the Volume group

5.reboot

regards
SK
Your imagination is the preview of your life's coming attractions
Sridhar Bhaskarla
Honored Contributor

Re: Increasing the primary swap spce

Hi Anis,

There isn't any need to increase the primary swap. Create 'secondary swap' logical volume and add it. Make the priority 0.

lvcreate -n swap2 -L -C y -r N /dev/vgxx

(Do not run 'newfs' here)

Add the following line to your /etc/fstab and run the command 'swapon -a'

/dev/vgxx/swap2 / swap defaults pri=0 0

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Hoang Chi Cong_1
Honored Contributor

Re: Increasing the primary swap spce

Hi anisnadar.
I quite agree with Sridhar Bhaskarla.
No need increase primary swap space. just create the second space.
Follow him command to create.

Goodluck to you.

Jim
Looking for a special chance.......
anisnadar
New Member

Re: Increasing the primary swap spce

Sri is correct
You can try increasing the secondary swap only.
U can use this
#lvcreate -n swap2 -L -C y -r N /dev/vgxx

regards
SK


Sยภเl Kย๓คг
Respected Contributor

Re: Increasing the primary swap spce

Anil pls stop playing with this.This is too much.Why are u trying to fool others.very bad.


Your imagination is the preview of your life's coming attractions