Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Swap resizing?

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> General Discussion
Author Message
Drowned



Joined: 19 Oct 2003
Posts: 17
Location: Guatemala

Posted: Tue Oct 28, 2003 5:46 pm    Post subject: Swap resizing?  

When I installed everything I made a 128mb swap image because I was using the smallest plan. Now I upgraded to the next plan and when I tried to resize my swap image to 384mb I got this error:

fs_resize - don't know how to resize type: swap - skipping

When I went back to the Disk Image section it said this:

384 MB, swap, readonly: No Status: Ready

But when I type top, it shows this:

Swap: 132088k av, 29496k used, 102592k free

:(
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2386
Location: Galloway, NJ

Posted: Tue Oct 28, 2003 6:00 pm    Post subject:  

Here's a quote from my resize post:

http://www.linode.com/forums/viewtopic.php?t=246

Quote: This will resize a disk image of ANY type (including RAW, swap, ext2, ext3), but it will only "expand" the filesystem if it's labled as ext2 or ext3 in the Members section.

It will work on swaps, but you have to "swapoff -a; mkswap /dev/ubdb; swapon -a"... Or, just delete the swap image and re-make it, either way.

If you delete the swap image and re-create it, don't forget to add it back to your configuration profile.

I would have made the platform manager do the mkswap for you, but I decided against it because technically someone might have re-formatted this partition to contain data, and I generally don't like deleting things (as opposed to resize2fs erroring out on a non-ext2 fs, mkswap would just blow it away).

-Chris
Back to top  
Drowned



Joined: 19 Oct 2003
Posts: 17
Location: Guatemala

Posted: Tue Oct 28, 2003 11:28 pm    Post subject:  

Thank for your help! It worked great!

And thanks for your great support! My site is running great now :D Couldn't have done it without your help :D
Back to top  
 
       Linode.com Forum Forum Index -> General Discussion
Page 1 of 1