|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] resize xen disk file
Javier Guerra wrote: On Thu, Mar 6, 2008 at 4:16 PM, Rudi Ahlers <Rudi@xxxxxxxxxxx> wrote:Martin Fernandez wrote: > I resized the file disk using: > dd if=/dev/zero of=*image* bs=1M conv=notrunc count=1 seek=10240 Can someone please explain to me what this command does? I also want to'dd' copies 'count' blocks of size 'bs' from 'if' to 'of', first advancing (from start) 'seek' blocks. in this case, it advances to 10G (10240*1M), and writes 1M of zeroes. if the image file was smaller than that, it would grow. Thanx :)What does the "conv=notrunc" mean? And does / will it simply append the extra blocks to the existing ones? Or how does it know where to put it? And is it safe to resize an VM image while it's running? This helps quite a lot. Do I understand correctly that there's no point in setting up a LVM on the VM then?
So, to safely resize the current VM's space, I do the following:
xm save vm01
xm destroy vm01
Then I increase the image
dd if=/dev/zero of=/home/vm/vm01.im bs=1M conv=notrunc count=1 seek=30720
after that I need to run partscan? I don't see such a command on the VM, what
is it part of?
After I install partscan, then how do I use it?
Then, I need to run resize2fs, what is the correct syntax?
This is the current VM's output
root@vps01 [~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
9.8G 6.6G 2.7G 71% /
/dev/xvda1 104M 20M 79M 21% /boot
tmpfs 537M 0 537M 0% /dev/shm
/usr/tmpDSK 508M 42M 441M 9% /tmp
--
Kind Regards
Rudi Ahlers
CEO, SoftDux
Web: http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stugg
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |