Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jan 07, 2010 5:26 am 
Offline

Joined: Thu Jan 07, 2010 4:59 am
Posts: 1
I have a disk image which I have resized, using the Linode Manager, to 512MB. The size of this image as shown in the Dashboard tab is, as expected, 512MB.

However, the size of the image obtained from within the Linode, using "fdisk -l /dev/xvdN", is 541065216 bytes: exactly 516MB. This is also the size of the file produced by "dd if=/dev/xvdN of=...".

Why does the size displayed by the Linode Manager appear to be 4MB less than the actual size?


Top
   
 Post subject:
PostPosted: Thu Jan 07, 2010 2:08 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Rounding error?

Does being off 4M really make a difference?


Top
   
 Post subject:
PostPosted: Thu Jan 07, 2010 2:26 pm 
Offline
Linode Staff
User avatar

Joined: Fri Oct 17, 2003 12:38 am
Posts: 287
Location: Dr Wierd's Lab, South Jersey Shore
We use LVM for the disk images. When an LV is created the size is rounded up to the next even multiple of the physical extent size (in our case 4 MB).


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