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

you have erased your data

to resize a disk you need conv=notrunc

this is the correct way.


dd if=/dev/zero of=root_fs.ext3 bs=1 count=1 seek=20G conv=notrunc

e2fsck -f root_fs.ext3 -y

resize2fs -p root_fs.ext3




>>
>>
>>[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.
>>
>>



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

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