Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Swapoff command: File too large

Status
Not open for further replies.

cibee

Programmer
Dec 15, 2004
38
US
Hi all,
I'm running a fc1 machine.

When I do a swapoff /var/swapfile I get
swapoff: /var/swapfile: File too large.

Anyone has come across such an issue?

TIA,
Cibee
 
It *may* be saying that it can't move all the contents of the swap partition into memory. But I'm only guessing.
 
Hi Eric,

How do I fix that?

Cibee
 
Quit out of all your programs that you don't need until they can fit in memory. If that doesn't work, then you'll have to figure out what's swapping onto the file, comment that out of the startup scripts and reboot.

 
Hi Eric,

Actually I've been trying to upgrade fc1 to fc2, and in the process I got the error message:

Error enabling swap device: /var/swapfile: File too large.
This most likely means this swap partion has not been initialized.
This is the current swap information:

# swapon -s
Filename Type Size Used Priority
/dev/sda10 partition 2040212 0 -1
/var/swapfile file 2097144 0 -2
/var/swapfile2 file 2097144 0 -3

# free -mt
total used free shared buffers cached
Mem: 3032 152 2879 0 11 86
-/+ buffers/cache: 55 2977
Swap: 6088 0 6088
Total: 9120 152 8967

Do u have any idea as to how I would go about fixing this?

TIA,
Cibee
 
Can I try commenting:
/var/swapfile
/var/swapfile2

on /etc/fstab and reboot and then try to upgrade? or is that going to affect me?

Thanks,
Cibee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top