Operating System - Linux
1828236 Members
2266 Online
109975 Solutions
New Discussion

multiple identical swap files in /etc/fstab

 
SOLVED
Go to solution
joseph wholey
Regular Advisor

multiple identical swap files in /etc/fstab

Running RHEL AS3. When I look in the /etc/fstab file I have multipe swap definitions as follows:

/dev/sda5 swap swap defaults 0 0

Any ideas? thx.
3 REPLIES 3
Ivan Ferreira
Honored Contributor
Solution

Re: multiple identical swap files in /etc/fstab

That is not a problem, you can have multiple swap devices. You can check your active swap with swapon -s.

Multiple swap devices are used to balance the load between disks.

It also was stated that swap devices cannot be larger than 2 GB, and multiple swap devices where created to have larger swap space. This size limitation is not a restriction anymore.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
joseph wholey
Regular Advisor

Re: multiple identical swap files in /etc/fstab

Ivan, when I say multiple identical, I really meant, "multiple identical..." i.e. the same device.
Ivan Ferreira
Honored Contributor

Re: multiple identical swap files in /etc/fstab

It's not correct, just see the output of swapon -s to view the active swap device.

Maybe, some "yank/paste" problem. Remove the duplicate lines.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?