Operating System - HP-UX
1834021 Members
2292 Online
110063 Solutions
New Discussion

Re: Changing Primary swap priority

 
SOLVED
Go to solution
Jayesh shah
Frequent Advisor

Changing Primary swap priority

How can I change the priority of primary swap?
through command line?

Thanks,
shah
6 REPLIES 6
Christopher McCray_1
Honored Contributor

Re: Changing Primary swap priority

I think it's :

# lvlnboot -s /dev/vg??/

Hope this helps

Chris
It wasn't me!!!!
Vladislav Demidov
Honored Contributor

Re: Changing Primary swap priority

Hello Jayesh,
You can add that device to /etc/fstab file and modify pri parameter.
Kevin Wright
Honored Contributor
Solution

Re: Changing Primary swap priority

I could be wrong, but I am not sure you can change the priority of primary swap. you can change what device is used for primary swap with lvlnboot, and change th pri for secondary swap in /etc/fstab, and rebooting.
Christopher McCray_1
Honored Contributor

Re: Changing Primary swap priority

Here is the -s exerpt from lvlnboot:


-s swap_lv Define swap_lv to 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 command updates the Boot Data Reserved
Area of each bootable physical volume in the
volume group (see pvcreate(1M)). Any
existing swap area previously defined must be
removed via lvrmboot(1M).

Good luck

Chris
It wasn't me!!!!
Sridhar Bhaskarla
Honored Contributor

Re: Changing Primary swap priority

HI Jayesh,

The priority of the primary swap is set to 1 and is not changeable as it is defined through lvlnboot command.

The idea is to give high or equal priority to other swap devices once the system boots. It is also helpful for the diskless clients.

In a nut shell, you would be adjusting the priorities of the additional swap devices.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: Changing Primary swap priority

Hi:

Sridhar is correct; primary swap priority is 1. If you need to swap to other devices at higher priority then set them to 0. Of course, the best scenario is not to swap at all.
If it ain't broke, I can fix that.