1830938 Members
1804 Online
110017 Solutions
New Discussion

swap problem at boot

 
SOLVED
Go to solution
Roberto Gallis
Regular Advisor

swap problem at boot

Hi all,
I added ram on 2 cluster nodes and so I added swap space.
On each node I created a vg and a lv for swap and activated.
But when I reboot the secondary swap is not enabled end in the /etc/rc.log the error is:

/usr/sbin/swapon: /dev/vgswap/swap: No such device or address

the line in /etc/fstab is

/dev/vgswap/swap ... swap pri=0 0 2

The vgswap is not on service guard: there's a vg on each node.

So, I have to do
vgchange -a y
swapon -a
to enable the swap.

What's wrong? Anybody can help me?

Regards

Roberto
1 REPLY 1
Rainer von Bongartz
Honored Contributor
Solution

Re: swap problem at boot



take a look at /etc/lvmrc

there you can set which vg groups should be activated at boot time

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...