[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Can you convert Windows LVM domU to sparse img file?
MÄris Ruskulis wrote: > You can do this by dd. > for example: > dd if=/dev/vg/winpart of=/home/myuser/winimage.img bs=4096 > bs set to your block size, as i remember ntfs has 4096 by default. > bs=32M (or whatever "PE Size" that pvdisplay shows) will probably be faster. dd won't give you SPARSE img file though. Then again, your LV could be "dirty" (e.g contain deleted data) so that any "normal" attempt to create sparse file will not be effective. I'd suggest you just accept the full,non-sparse file that dd gives you. An alternative would be to use ntfsresize and ntfsclone, but it requires a lot more effort (including using kpartx,fdisk, and having a "good" MBR handy). Regards, Fajar > James Pifer wrote: >> I have a Windows 2000 domU running in an LVM partition. I need to move >> it to another host, but none of my other xen servers have lvm or free >> space to create an lvm. So I'd like to convert it to a sparse img file. >> The file system in the domU is ntfs. >> Can anyone suggest how to do this? >> >> Thanks, >> James >> Attachment:
smime.p7s _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |