Operating System - Linux
1832145 Members
2738 Online
110038 Solutions
New Discussion

Urgent! Add swapfile but reboot failed!!

 
SOLVED
Go to solution
violin_1
Advisor

Urgent! Add swapfile but reboot failed!!

Dear All,

I have a production server running on Linux,
Today I add swapfile , but reboot fails now
How can I do? It's urgent for me.

(Cause I run out of free space of mount point,
I add swap by pagefile)

Now the server could not boot on,
Is there limitation about swapfile?

My steps are uploaded ,
Help me , thanks.

Violin.
2 REPLIES 2
I_M
Honored Contributor
Solution

Re: Urgent! Add swapfile but reboot failed!!

Hi

I don't know your Distribution.
But check your boot script, especially order of "mount" and "swapon" in script.
If your distribution do swapon before mount, your system failed to mount filesystem-swap.
In that case, I suggest you to delete filesystem-swap lines from your /etc/fstab and put it into rc.local (which is the script run at the last end.).

As I read my RH7.3 rc.sysinit, swapon goes before mount filesystem.

Good luck
violin_1
Advisor

Re: Urgent! Add swapfile but reboot failed!!

Hello,

Thanks for your reply.
BUT it's a funny mistake.

'Cause somebody pulled out the keyboard ,
it got a "keyboard error" when booting.
(Our cute system admin!)
But I didn't have the key to enter server room.

I wait until the room is opened and see the console and laugh louder!

What a good day!
Now the server in running normally.

Thanks!


Violin.