Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Apr 18, 2013 7:40 pm 
Offline
Senior Newbie

Joined: Mon Dec 27, 2010 12:19 pm
Posts: 16
First attempt, so please help.
I created a disk image of 3.9GB earlier. Today I copied it to a new linode /dev/xvda that was 24GB. My reading indicated that the destination needed to be at least as large as the image I was copying, however, while fdisk -l /dev/xvda shows: Disk
/dev/xvda: 25.2 GB, 25232932864 bytes
df -h shows
/dev/xvda 3.9G 3.2G 550M 86% /

What will I need to do to resolve this?


Top
   
PostPosted: Thu Apr 18, 2013 8:47 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
How exactly did you copy it? Using the clone/duplicate functions in the dashboard, or some other mechanism?

If you simply copied the raw bits from one linode to another yourself, you'll need to use resize2fs to expand the filesystem into the remaining empty space. -rt

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Thu Apr 18, 2013 9:17 pm 
Offline
Senior Newbie

Joined: Mon Dec 27, 2010 12:19 pm
Posts: 16
I used the procedure in Copying a Disk Image to a Different Account Linode Doc, http://library.linode.com/migration/cop ... nt-account


Top
   
PostPosted: Thu Apr 18, 2013 9:45 pm 
Offline
Senior Newbie

Joined: Mon Dec 27, 2010 12:19 pm
Posts: 16
My thought is to use the resize in the dashboard to 4GB, and then back. Will that work?


Top
   
PostPosted: Thu Apr 18, 2013 9:55 pm 
Offline
Senior Member

Joined: Mon Aug 29, 2011 2:34 am
Posts: 77
It would, or you can just reboot into Finnix Rescue Mode, e2fsck -f /dev/xvda, resize2fs /dev/xvda, and reboot normally. The reason for the discrepancy is you dd-ed an entire filesystem, including the information the filesystem uses to figure out how big it is. resize2fs without any other parameters besides the disk to operate on means 'grow to match the size of the device' and so will get you to 24 GB.

-Doug


Top
   
PostPosted: Fri Apr 19, 2013 4:20 pm 
Offline
Senior Newbie

Joined: Mon Dec 27, 2010 12:19 pm
Posts: 16
Much thanks for the suggestions from all you first responders. I ended up just trying to resize to 4GB from the dashboard, and again to the final size. It appears that resolved the issue, and was selected because I thought it would be easier to understand by someone following me. Again, much thanks.


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