Operating System - HP-UX
1751730 Members
5571 Online
108781 Solutions
New Discussion

Re: swap space increase in hp-ux11.23

 
rajesh73
Super Advisor

swap space increase in hp-ux11.23

 

Physical ram is 8 GB

Primary swap is /dev/vg00/lv012 -8GB

I want to extend my swap is another 5 GB. Please help

My vg00 have 20 GB free space

 

Vg00 have software raid, please help me

9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: swap space increase in hp-ux11.23

You would be better off creating a new swap device as it is not easy to extend /dev/vg00/lvol2 since lvol1, lvol2 and lvol3 MUST be contiguous.

 

Create a new logical volume:

 

lvcreate -L 5120 vg00

 

Then activate it:

 

swapon /dev/vg00/lvol#

Use whatever lvol name that was assigned above.

 

Don't forget to add it to your /etc/fstab file like:

 

/dev/vg00/lvol# ... swap pri=1 0 0

 

 

rajesh73
Super Advisor

Re: swap space increase in hp-ux11.23

thanks for your update

 

now the i create the lv and add the lv using swapon command

 

my lv name is /dev/vg00/swap2

 

please find the below entry is correct or not

 

/dev/vg00/swap2 swap pri=1 0 0

Nighwish
Frequent Advisor

Re: swap space increase in hp-ux11.23

Hi

 

 

Don't forget to replicate de mirror to he new lvol ( this is important to have redundancy in the disks )

 

lvextend -m 1 /dev/vg00/lvol_created /dev/dsk/disk_device_for_mirror

 

 

Regards.

rajesh73
Super Advisor

Re: swap space increase in hp-ux11.23

hi,
please reply my sugesstion

below entry is correct or not
/dev/vg00/swap2 swap pri=1 0 0

Hi Nighwish,

we need to create one more lv to mirrow the new lv is right.please advice.
rajesh73
Super Advisor

Re: swap space increase in hp-ux11.23

please help this is urgent

after swapon lv , how to add the entry in fstab and mirror
Dennis Handly
Acclaimed Contributor

Re: swap space increase in HP-UX 11.23

>how to add the entry in fstab

 

You just edit /etc/fstab.

rajesh73
Super Advisor

Re: swap space increase in HP-UX 11.23

thanks for reply, but i need nfs file system entry in /etc/fstab
Dennis Handly
Acclaimed Contributor

Re: swap space increase in HP-UX 11.23

>but I need NFS file system entry in /etc/fstab

 

What has this to do with adding that swap entry?  Another new question?

You can have all sorts of entries in /etc/fstab.

Pramod M
Regular Advisor

Re: swap space increase in hp-ux11.23

Rajesh,

 

Edit the /etc/fstab file add the below line to the end.

 

# vi /etc/fstab

/dev/vg00/swap2 . swap pri=1 0 0

 

Mirroring

lvextend -m 1 /dev/vg00/swap2 /dev/dsk/cxtxdx

the cxtxdx should be replaced with your lternate disk name.

 

Regds,

Pramod