WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Resize Disk

To: Chad Ferge <cferge@xxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Resize Disk
From: Sadique <sadique@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 02 May 2006 05:57:57 +0530
Delivery-date: Mon, 01 May 2006 17:23:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <000b01c66d77$ffa7f150$6801a8c0@flipzworkstn>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <000b01c66d77$ffa7f150$6801a8c0@flipzworkstn>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)
Chad Ferge wrote:

Please do your replies to the list.

>The following is the results I get from trying the commands recommended.
>Any recommendations? Let me know. Thanks in advanced.
>
>
>[root@Mars home]# dd if=/dev/zero of=cferge-vm bs=1MB count=0
>seek=20480; e2fsck -f -y cferge-vm; resize2fs -p cferge-vm
>0+0 records in
>0+0 records out
>0 bytes (0 B) copied, 2.7e-05 seconds, 0.0 kB/s
>e2fsck 1.38 (30-Jun-2005)
>Couldn't find ext2 superblock, trying backup blocks...
>e2fsck: Bad magic number in super-block while trying to open cferge-vm
>
>  
>
It seems that you haven't created a filesystem on the image befor you
resize it.
Have you created a filesystem runnng "mkfs.ext3 <imagename>" ?

>The superblock could not be read or does not describe a correct ext2
>filesystem.  If the device is valid and it really contains an ext2
>filesystem (and not swap or ufs or something else), then the superblock
>is corrupt, and you might try running e2fsck with an alternate
>superblock:    e2fsck -b 8193 <device
>resize2fs 1.38 (30-Jun-2005)
>resize2fs: Bad magic number in super-block while trying to open
>cferge-vm
>Couldn't find valid filesystem superblock.
>
>-----Original Message-----
>From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Sadique
>Sent: Monday, May 01, 2006 3:07 PM
>To: cferge@xxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
>Subject: Re: [Xen-users] Resize Disk
>
> Yes, you can
>
>Shutdown the Dom-U
>TO resize it to 20GB
>
>dd if=/dev/zero of=<image name> bs=1MB count=0 seek=20480
>e2fsck -f -y <imagename>
>resize2fs -p <image name>
>
>
>Chad F wrote:
>
>  
>
>>Is there a way I can resize the disk/file that Xen is on -- I created a
>>10GB Disk for my install but I've just realized it's not enough; anyway
>>    
>>
>I
>  
>
>>could possibly increase it to 20gb? or even more if I wanted? Let me
>>    
>>
>know.
>  
>
>>Thanks.
>>
>>
>>
>>_______________________________________________
>>Xen-users mailing list
>>Xen-users@xxxxxxxxxxxxxxxxxxx
>>http://lists.xensource.com/xen-users
>>
>>
>> 
>>
>>    
>>
>
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-users
>
>
>
>
>  
>


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>