Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Apr 24, 2009 4:04 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2008 3:40 pm
Posts: 109
I can't resize a disk image which is not mounted without shutting down my linode. It fails with "Linode must be shutdown before resize".

Is it a bug or that's the way this is intended?


Last edited by dcelasun on Sat Apr 25, 2009 2:18 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Fri Apr 24, 2009 6:55 pm 
Offline
Junior Member

Joined: Fri Dec 12, 2008 1:24 pm
Posts: 23
At the bottom of the configuration form:

"Your Linode must be shutdown before issuing a resize."


Top
   
 Post subject:
PostPosted: Sat Apr 25, 2009 2:53 am 
Offline
Senior Member

Joined: Sun Nov 30, 2008 3:40 pm
Posts: 109
I know that. I'm just saying that an unmounted disk should be resizable without shutting down my linode.


Top
   
 Post subject:
PostPosted: Sat Apr 25, 2009 11:46 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
dcelasun wrote:
I know that. I'm just saying that an unmounted disk should be resizable without shutting down my linode.

If it's part of the currently booted profile then the kernel would need to be told of the new "physical" size of the disk. It's not enough for the disk to be unmounted. On real machines this works with hotswap devices (eg SATA, USB). Dunno if Xen can be made to do it.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Sat Apr 25, 2009 12:39 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2008 3:40 pm
Posts: 109
The thing is that the second image is an exact clone of the first one (sort of like a backup). "df -k" cannot even "see" the second image; it only shows one (/dev/xvda). Is it still not possible to resize the second image?


Top
   
 Post subject:
PostPosted: Sat Apr 25, 2009 1:12 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
dcelasun wrote:
The thing is that the second image is an exact clone of the first one (sort of like a backup). "df -k" cannot even "see" the second image; it only shows one (/dev/xvda). Is it still not possible to resize the second image?

If the disk is in the profile then the kernel still knows the disk there, even if userspace doesn't. Look at /proc/partitions and the unused disk shows up...

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Sat Apr 25, 2009 2:17 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2008 3:40 pm
Posts: 109
Yeah I guess you are right:
'cat /proc/partitions' wrote:
major minor #blocks name

202 0 8192000 xvda
202 16 262144 xvdb


This is the end of it then, I'll update the thread title.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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