Re: Convert one .img disk created with sparse=true to no sparse

2011-10-21 Thread Stephane CHAZELAS
2011-10-21, 07:28(+10), Simon Wilson: [...] If working with a NON-sparse VM img (i.e. originally created with virt-install --nonsparse), does a cp without --sparse=never retain the non-sparse nature of the file, or does it have to be specified? [...] See the man page for your cp command.

Re: Convert one .img disk created with sparse=true to no sparse

2011-10-21 Thread Gonzalo Marcote Peña
disk created with sparse=true to no sparse     To: Gonzalo Marcote Peña gonzalomarc...@gmail.com     Cc: kvm@vger.kernel.org On Thu, Oct 20, 2011 at 4:21 AM, Gonzalo Marcote Peña gonzalomarc...@gmail.com wrote: Hi. I have one guest that I created with virt-install comand option 'sparse

Convert one .img disk created with sparse=true to no sparse

2011-10-20 Thread Gonzalo Marcote Peña
Hi. I have one guest that I created with virt-install comand option 'sparse=true'. As i want to use now this guest for I/O tasks (DDBB) and i want to improve performance, I want to convert the disk.img from sparse to no sparse (obviusly without format it). How can I do this task without loosinf

Re: Convert one .img disk created with sparse=true to no sparse

2011-10-20 Thread Stefan Hajnoczi
On Thu, Oct 20, 2011 at 4:21 AM, Gonzalo Marcote Peña gonzalomarc...@gmail.com wrote: Hi. I have one guest that I created with virt-install comand option 'sparse=true'. As i want to use now this guest for I/O tasks (DDBB) and i want to improve performance, I want to convert the disk.img from

Re: Convert one .img disk created with sparse=true to no sparse

2011-10-20 Thread Stephane CHAZELAS
2011-10-20, 13:21(+02), Gonzalo Marcote Peña: I have one guest that I created with virt-install comand option 'sparse=true'. As i want to use now this guest for I/O tasks (DDBB) and i want to improve performance, I want to convert the disk.img from sparse to no sparse (obviusly without format

Re: Convert one .img disk created with sparse=true to no sparse

2011-10-20 Thread Stephane CHAZELAS
2011-10-20, 14:56(+00), Stephane CHAZELAS: [...] On extent based FS (ext4, btrfs...), there might be a way to guarantee as few extents as possible, but I don't know it. Actually, with both ext4 and btrfs, it is possible to defrag a file in place. So you could un-sparse the file first: make

Re: Convert one .img disk created with sparse=true to no sparse

2011-10-20 Thread Simon Wilson
- Message from Stefan Hajnoczi stefa...@gmail.com - Date: Thu, 20 Oct 2011 07:43:45 -0700 From: Stefan Hajnoczi stefa...@gmail.com Subject: Re: Convert one .img disk created with sparse=true to no sparse To: Gonzalo Marcote Peña gonzalomarc...@gmail.com Cc: kvm