Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Swap resizing?
PostPosted: Tue Oct 28, 2003 6:46 pm 
Offline
Senior Newbie
User avatar

Joined: Sun Oct 19, 2003 2:52 pm
Posts: 17
Website: http://www.velocidad-maxima.com
WLM: juliomarroquin@hotmail.com
Location: Guatemala
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

:(

_________________
http://www.velocidad-maxima.com

Hostrocket.com sucks!


Top
   
 Post subject:
PostPosted: Tue Oct 28, 2003 7:00 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
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


Top
   
 Post subject:
PostPosted: Wed Oct 29, 2003 12:28 am 
Offline
Senior Newbie
User avatar

Joined: Sun Oct 19, 2003 2:52 pm
Posts: 17
Website: http://www.velocidad-maxima.com
WLM: juliomarroquin@hotmail.com
Location: Guatemala
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

_________________
http://www.velocidad-maxima.com



Hostrocket.com sucks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group