Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Apr 01, 2013 2:02 am 
Offline
Newbie

Joined: Mon Apr 01, 2013 1:59 am
Posts: 3
Hey Guys,

Currently on a 512 Linode during development, but will likely be moving to a 1024 Linode when we go live. My question is, can I resize my disk image using the 'Edit Disk Image' page without deleting any of the data currently on the image? I will be increasing the size, but it would be good to know what happens if downsizing too.

Thanks,
Lockie


Top
   
PostPosted: Mon Apr 01, 2013 2:06 am 
Offline
Senior Member
User avatar

Joined: Sat Apr 07, 2012 3:40 am
Posts: 56
Website: http://for-no-reason.net
Location: Australia
Downsizing will fail if there isn't enough free space to shrink the image


Top
   
PostPosted: Mon Apr 01, 2013 2:52 am 
Offline
Newbie

Joined: Mon Apr 01, 2013 1:59 am
Posts: 3
Thanks XReaper. So if I increase the image size from ~20gb to ~40gb, I won't lose the data on it?

Cheers.


Top
   
PostPosted: Mon Apr 01, 2013 2:57 am 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
locksmack wrote:
Thanks XReaper. So if I increase the image size from ~20gb to ~40gb, I won't lose the data on it?

Cheers.


nope. not at all. have done it many times.


Top
   
PostPosted: Mon Apr 01, 2013 3:12 am 
Offline
Newbie

Joined: Mon Apr 01, 2013 1:59 am
Posts: 3
Awesome thanks. Just did it and worked a treat. So easy!


Top
   
PostPosted: Mon Apr 01, 2013 10:19 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Still, make sure you have a backup, just in case something goes wrong during the resize!


Top
   
PostPosted: Tue Apr 02, 2013 2:16 am 
Offline
Senior Member

Joined: Wed Jun 27, 2012 10:00 pm
Posts: 87
Website: http://hemonc.org/wiki/Main_Page
Also, I don't remember if Linode forces you to shut down your server or does it automatically, but to be safe, I'd recommend manually shutting down your server (in addition to backup, etc.) before resizing it.

_________________
Amateur, eager to learn.
My hematology, oncology, and chemotherapy regimen wiki


Top
   
PostPosted: Tue Apr 02, 2013 3:01 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
yaz wrote:
Also, I don't remember if Linode forces you to shut down your server or does it automatically, but to be safe, I'd recommend manually shutting down your server (in addition to backup, etc.) before resizing it.

Linode won't let you resize a running disk image. I don't remember if the resizer will shut the node down for you or if it just errors out and tells you to do it, though.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
PostPosted: Tue Apr 02, 2013 3:07 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Just tried. It will try to resize it, but then it will give an error in the host job queue:
Quote:
Linode must be shut down before resize


Top
   
PostPosted: Tue Apr 09, 2013 11:39 am 
Offline
Senior Newbie

Joined: Thu Mar 11, 2010 10:42 am
Posts: 15
ICQ: 33922655
Location: Ireland
I had to use this feature recently in an emergency situation... I went in all cavalier to upgrade my distro and didn't do the proper research, completely borked my ubuntu... ended up with the wrong kernel running for all the lib... So I still had all my data and config files intact, here's what I did...

I shrunk the main partition

create a new one from the empty space and installed new ubuntu, while making the new drive the boot drive.

mounted old drive to the new OS and copied all configuration and data across

I've yet to kill the old partition for fear there's still data I need there (but is is not mounted), but when I do I can resize my new partition and get all my space back.

Good to know if somebody finds themselves in the same troublesome situation.

_________________
Linode 512 @ cbr250.com


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


Who is online

Users browsing this forum: No registered users and 4 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