1825764 Members
1999 Online
109687 Solutions
New Discussion

Swap addition

 
kps gill
Occasional Advisor

Swap addition

Hi I need to secondary device on my hp ux box..what all steps do i need to follow. pls guide
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Swap addition

Shalom,

Been done here many times.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=715846

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
kps gill
Occasional Advisor

Re: Swap addition

does addition of secondary swap required a reboot of server?
Gurumanickam
Frequent Advisor

Re: Swap addition

hi gill,

To create a secondary swap

pvcreate /dev/rdsk/cXtYdZ #(Use the appropriate new disk device)
vgcreate vg_name /dev/dsk/cXtYdZ
lvcreate -L 1000 -n lv_name vg_name
Edit the /etc/fstab & insert the following
/dev/vg_name/lv_name ... swap pri=0 0 0
Then run
swapon -a

regds

Guru

Be an expert
spex
Honored Contributor

Re: Swap addition

> does addition of secondary swap required a
> reboot of server?

As long as the storage you intend to use has already been detected by the kernel (i.e. you see a "CLAIMED" hardware path and device file with 'ioscan -fnC disk'), no reboot will be required.

PCS