Hi. I have an old Xen para virt vm which I created using sparse file. Is there any way to convert this vm image to non-sparse without shutting down the vm?. Thanks Paras.
On Thu, Sep 27, 2012 at 5:43 AM, Paras pradhan <pradhanparas@gmail.com> wrote:> Hi. > > I have an old Xen para virt vm which I created using sparse file. Is > there any way to convert this vm image to non-sparse without shutting > down the vm?.No. -- Fajar
Quoting Fajar A. Nugraha''s message from 27 sep 2012:>On Thu, Sep 27, 2012 at 5:43 AM, Paras pradhan ><pradhanparas@gmail.com> wrote: >> Hi. >> >> I have an old Xen para virt vm which I created using sparse file. Is >> there any way to convert this vm image to non-sparse without shutting >> down the vm?. > >No. >Can''t you fill it up with zeros and then delete the file? i.e. on the domu, dd if=/dev/zero of=null.tmp; rm null.tmp. -- Stay in touch, Mark van Dijk. ,------------------------------------ -------------------------------'' Thu Sep 27 07:00 UTC 2012 Today is Setting Orange, the 51st day of Bureaucracy in the YOLD 3178
On Thu, Sep 27, 2012 at 2:01 PM, Mark van Dijk <lists+xen@internecto.net> wrote:> Quoting Fajar A. Nugraha''s message from 27 sep 2012: >>On Thu, Sep 27, 2012 at 5:43 AM, Paras pradhan >><pradhanparas@gmail.com> wrote: >>> Hi. >>> >>> I have an old Xen para virt vm which I created using sparse file. Is >>> there any way to convert this vm image to non-sparse without shutting >>> down the vm?. >> >>No. >> > Can''t you fill it up with zeros and then delete the file? i.e. on the > domu, dd if=/dev/zero of=null.tmp; rm null.tmp.AFAIK some fs will bomb out before you actually fill all space. So with that method the resulting backend might still be slightly sparse. It''s not recommended anyway, as there''s a possibility that during that process applications on the domU can go haywire since it can''t write data to disk (out of space errors). -- Fajar
Hi. El 26/09/12 17:43, Paras pradhan escribió:> I have an old Xen para virt vm which I created using sparse file. Is > there any way to convert this vm image to non-sparse without shutting > down the vm?.I do not know the goal of doing such thing, so this maybe will work for for you, or maybe not. You can try do this form within the VM, of course without shutting it down. Make it to fill with garbage (or zeros, or whatever) the unallocated space of it''s FS. This way, you will force the undrlaying sparse image file to occupy it''s full length. "wipe unallocated space" are your keywords. -- Alexandre Kouznetsov
Thanks for the info guys. Paras. On Thu, Sep 27, 2012 at 11:04 AM, Alexandre Kouznetsov <alk@ondore.com> wrote:> Hi. > > El 26/09/12 17:43, Paras pradhan escribió: > >> I have an old Xen para virt vm which I created using sparse file. Is >> there any way to convert this vm image to non-sparse without shutting >> down the vm?. > > > I do not know the goal of doing such thing, so this maybe will work for for > you, or maybe not. > > You can try do this form within the VM, of course without shutting it down. > Make it to fill with garbage (or zeros, or whatever) the unallocated space > of it''s FS. This way, you will force the undrlaying sparse image file to > occupy it''s full length. > > "wipe unallocated space" are your keywords. > > -- > Alexandre Kouznetsov > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users