Operating System - Linux
1753404 Members
7081 Online
108793 Solutions
New Discussion юеВ

How to create secondary swap

 
SOLVED
Go to solution
Giuseppe_13
Frequent Advisor

How to create secondary swap

I have a too small swap area on VolGroup00/LogVol01 and I can't extend the logical volume because there aren't free disk space.

I have free disk space in VolGroup04 and I have created a new LV for secondary swap:
VolGroup04/LogVolswap

How can I to configure the LogVolswap how secondary swap ?

Thanks
4 REPLIES 4
Goran┬аKoruga
Honored Contributor
Solution

Re: How to create secondary swap

Hello.

mkswap .../LogVolswap

Add it to fstab as well.

Regards.
Goran
Giuseppe_13
Frequent Advisor

Re: How to create secondary swap

Hi Goran Koruga,

I have to add in /etc/fstab, the followng string ?

/dev/VolGroup04/LogVolswap swap swap defaults 0 0


What about priority ?

Thanks
Goran┬аKoruga
Honored Contributor

Re: How to create secondary swap

Hi.

You can leave it at the default, or if you know your old swap area is faster set it to lower for the new area (or vice versa).

Regards,
Goran
Giuseppe_13
Frequent Advisor

Re: How to create secondary swap

default priority is ok.

The new swap has priority -2
The primary (already present) has priority -1