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

:(

2 Replies

Here's a quote from my resize post:

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

> 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

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct