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@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com >http://lists.xensource.com/xen-users > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, May 02, 2006 at 12:36:58AM +0530, Sadique wrote:> 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>I would recommend first running fcsk and then resizing the image file/device with dd. Otherwise fsck might complain as the device size does not match what it gets from the filesystem. Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com >[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Sadique >Sent: Monday, May 01, 2006 3:07 PM >To: cferge@flipz.mine.nu; xen-users@lists.xensource.com >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@lists.xensource.com >>http://lists.xensource.com/xen-users >> >> >> >> >> >> > > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com >>[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Sadique >>Sent: Monday, May 01, 2006 3:07 PM >>To: cferge@flipz.mine.nu; xen-users@lists.xensource.com >>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@lists.xensource.com http://lists.xensource.com/xen-users
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.Partition Magic. On normal [ext3] systems, it works fine. No need to mingle with images et al.. Should work on an Zen partition as well, unless I miss something xen-specific? -- Kind regards, Mogens Valentin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
What I am trying to do is resize the Loopback filesystem that I created -- /home/cferge-vm . When I tried the last tip I would just error out on me. Am I missing something? or am I using the wrong approach here? let me know. Thanks again for the help folks.> 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. > > Partition Magic. On normal [ext3] systems, it works fine. No need to > mingle with images et al.. Should work on an Zen partition as well, > unless I miss something xen-specific? > > -- > Kind regards, > Mogens Valentin > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users