Operating System - HP-UX
1753814 Members
7607 Online
108805 Solutions
New Discussion юеВ

Adding 4GB swap in HP-UX 11.23

 
kmkstss
Occasional Contributor

Adding 4GB swap in HP-UX 11.23

I am following below steps,let me know if any issues on this.

Add 4GB swap as per request.

#lvcreate -C y -L 4093MB -n swap2 /dev/vg00 /dev/dsk/c2t1d0

#lvextend -m 1 /dev/vg00/swap2 /dev/dsk/c3t0d0

#swapon /dev/vg00/swap2

#Add the entries in /etc/fstab


/dev/vg00/swap2 ... swap pri=1 0 0
5 REPLIES 5
AnthonySN
Respected Contributor

Re: Adding 4GB swap in HP-UX 11.23

Michal Kapalka (mikap)
Honored Contributor

Re: Adding 4GB swap in HP-UX 11.23

hi,

if the second swap is on the disk where is already the primary swap, you could have performance issue.

the best way is to create the ignite and restore in advanced mode of ignite, increase the primary swap space.

mikap
johnsonpk
Honored Contributor

Re: Adding 4GB swap in HP-UX 11.23

>>#lvcreate -C y -L 4093MB -n swap2 /dev/vg00 /dev/dsk/c2t1d0

command has got syntax error .

and it should be

lvcreate -C y -L 4093 -n swap2 /dev/vg00 /dev/dsk/c2t1d0



Also consider create swap area in another VG for better performance ..

Regards!
johnson
Akif_1
Super Advisor

Re: Adding 4GB swap in HP-UX 11.23

Hello,

I followed the same way but for new volume group not vg00. You can hit below commands it is successful in my production environment.


Add 4GB swap as per request.

#lvcreate -L 4093MB -n swap2 ex: swap2 vg00
#lvextend -m 1 /dev/vg00/swap2 /dev/dsk/c3t0d0

#swapon /dev/vg00/swap2

#Add the entries in /etc/fstab
/dev/vg00/swap2 ... swap pri=1 0 0

Rgd's
T(ogether) E(very one) A(chive) M(ore)
Akif_1
Super Advisor

Re: Adding 4GB swap in HP-UX 11.23

Hi,

Update this with previous entry as :

#lvcreate -L 4093 -n swap2 ex: swap2 vg00


Rgd's
T(ogether) E(very one) A(chive) M(ore)