1834650 Members
1815 Online
110069 Solutions
New Discussion

Re: primary swap

 
mukkala
Advisor

primary swap

how to check primary swap logical volume / out of two logical volumes.

# swapinfo -a
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 77148 4117156 2% 0 - 1 /dev/vg00/lvol2
dev 26640384 76168 26564216 0% 0 - 1 /dev/vg00/lvol9
reserve - 3499724 -3499724
memory 4792088 2208040 2584048 46%
#
8 REPLIES 8
GGA
Trusted Contributor

Re: primary swap

Adisuria Wangsadinata_1
Honored Contributor

Re: primary swap

Hi,

Normally, the first swap (by default) is /dev/vg00/lvol2 and the additional swap logical volume on your system is /dev/vg00/lvol9.

But from the output (swapinfo -a), you can see that both swap logical volume set as 1, so this mean both swap will work together since the priority given are the same.

Check the manpage of swapinfo for more details :

# man swapinfo

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Orhan Biyiklioglu
Respected Contributor

Re: primary swap

What do you mean by primary? By default /dev/vg00/lvol2 is the primary swap space however all swap devices and file systems enabled for swap have a priority between 0 to 10, indicating the order that swap space from a device or file system is used.

Check SWAP SPACE MANAGEMENT
http://docs.hp.com/en/5965-4641/ch01s09.html

hth
Adisuria Wangsadinata_1
Honored Contributor

Re: primary swap

Hi,

I saw on this url below :

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=BR892123&listType=unassigned&forumId=1

You assigned 0 of 20 responses.

Please assign points to the person who spend their time to help you, this will encourage them and make them happy.

Thanks & Cheers,
AW
now working, next not working ... that's unix
VIKAS AGRAWAL
Frequent Advisor

Re: primary swap

hi ,

Primary swap is always /dev/vg00/lvol2 , which is created at the time of system installation .

Vikas
Borislav Perkov
Respected Contributor

Re: primary swap

Hi Mukkala,

Primary swap is usually /dev/vg00/lvol2.
You can change it by command:

lvlnboot -s swap_lv

Where swap_lv should be the primary swap volume the next time the system is booted on the volume group. swap_lv must be a contiguous logical volume, and a root logical volume must have been previously defined with this command. The previously defined swap area must be removed with lvrmboot.

Regards,
Borislav
Ted Buis
Honored Contributor

Re: primary swap

You can change the priority of swap devices if desired. You may want to use 'sam' or try the 'swapon' command.
Mom 6
Geoff Wild
Honored Contributor

Re: primary swap

"primary" swap can be displayed with a lvlnboot -v vg00

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.