Re: LVM thin provisioning and virt-manager

2013-10-18 Thread Richard W.M. Jones
On Thu, Oct 17, 2013 at 09:13:53PM +0200, Lukas Zapletal wrote: > On Wed, Oct 16, 2013 at 10:25:30AM +0100, Richard Jones wrote: > > qemu-img create -f qcow2 -b backing -o preallocation=metadata,compat=1.1 > > snapshot > > Backing file and preallocation cannot be used at the same time > > This

Re: LVM thin provisioning and virt-manager

2013-10-17 Thread Chris Murphy
On Oct 17, 2013, at 1:57 PM, Pádraig Brady wrote: > On 10/17/2013 07:09 PM, Chris Murphy wrote: >> >> On Oct 17, 2013, at 10:22 AM, Chris Murphy wrote: >> >>> >>> So whatever options virt-manager is using to create qcow2 files, is either >>> the same as -o preallocation=metadata,compat=1.1,

Re: LVM thin provisioning and virt-manager

2013-10-17 Thread Pádraig Brady
On 10/17/2013 07:09 PM, Chris Murphy wrote: > > On Oct 17, 2013, at 10:22 AM, Chris Murphy wrote: > >> >> So whatever options virt-manager is using to create qcow2 files, is either >> the same as -o preallocation=metadata,compat=1.1,lazy_refcounts=on, or any >> difference in options isn't maki

Re: LVM thin provisioning and virt-manager

2013-10-17 Thread Lukas Zapletal
On Wed, Oct 16, 2013 at 10:25:30AM +0100, Richard Jones wrote: > qemu-img create -f qcow2 -b backing -o preallocation=metadata,compat=1.1 > snapshot Backing file and preallocation cannot be used at the same time This is RHEL6, is behavior different now in Fedora? Other options do not work app

Re: LVM thin provisioning and virt-manager

2013-10-17 Thread Chris Murphy
On Oct 17, 2013, at 10:22 AM, Chris Murphy wrote: > > So whatever options virt-manager is using to create qcow2 files, is either > the same as -o preallocation=metadata,compat=1.1,lazy_refcounts=on, or any > difference in options isn't making a difference in performance. The 37 second > perf

Re: LVM thin provisioning and virt-manager

2013-10-17 Thread Chris Murphy
On Oct 16, 2013, at 1:09 PM, Chris Murphy wrote: > > Fedora 20 default BTRFS guided install to qcow2 on XFS, install time 17m21s. > Firstboot systemd-analyze: > 874ms (kernel) + 1.558s (initrd) + 12.866s (userspace) = 15.300s From above, two changes: 1. Use virt-manager to create the qcow2 fil

Re: LVM thin provisioning and virt-manager

2013-10-17 Thread Richard W.M. Jones
On Wed, Oct 16, 2013 at 03:15:30PM -0600, Chris Murphy wrote: > > On Oct 16, 2013, at 1:09 PM, Chris Murphy wrote: > > > > > > I made the suggested cache change for both LVM and qcow2; and created the > > qcow2 file as suggested (adding lazy_refcount): > > > > Fedora 20 default standard parti

Re: LVM thin provisioning and virt-manager

2013-10-16 Thread Chris Murphy
On Oct 16, 2013, at 1:09 PM, Chris Murphy wrote: > > > I made the suggested cache change for both LVM and qcow2; and created the > qcow2 file as suggested (adding lazy_refcount): > > Fedora 20 default standard partition guided install (ext4) to an LV takes > 18m02s. Firstboot systemd-analyze

Re: LVM thin provisioning and virt-manager

2013-10-16 Thread Richard W.M. Jones
On Wed, Oct 16, 2013 at 02:24:59PM -0600, Chris Murphy wrote: > > On Oct 16, 2013, at 1:50 PM, Richard W.M. Jones wrote: > > > On Wed, Oct 16, 2013 at 01:09:25PM -0600, Chris Murphy wrote: > >> Caching mode was none in all prior cases. > > > > Note that cache=none is almost never useful. It by

Re: LVM thin provisioning and virt-manager

2013-10-16 Thread Chris Murphy
On Oct 16, 2013, at 1:50 PM, Richard W.M. Jones wrote: > On Wed, Oct 16, 2013 at 01:09:25PM -0600, Chris Murphy wrote: >> Caching mode was none in all prior cases. > > Note that cache=none is almost never useful. It bypasses the host > cache so you don't get the benefit of having lots of free

Re: LVM thin provisioning and virt-manager

2013-10-16 Thread Richard W.M. Jones
On Wed, Oct 16, 2013 at 01:09:25PM -0600, Chris Murphy wrote: > Caching mode was none in all prior cases. Note that cache=none is almost never useful. It bypasses the host cache so you don't get the benefit of having lots of free host memory, plus causes endless pain because of filesystems that d

Re: LVM thin provisioning and virt-manager

2013-10-16 Thread Chris Murphy
On Oct 16, 2013, at 3:25 AM, Richard W.M. Jones wrote: > > You could try using one or more of these qcow2 options: > > compat=1.1 > preallocation=metadata > lazy_refcounts=on > > eg: > > qemu-img create -f qcow2 -b backing -o preallocation=metadata,compat=1.1 > snapshot > > I would gues

Re: LVM thin provisioning and virt-manager

2013-10-16 Thread Richard W.M. Jones
On Tue, Oct 15, 2013 at 09:13:35PM -0600, Chris Murphy wrote: > > On Oct 15, 2013, at 4:29 PM, Richard W.M. Jones wrote: > > > On Tue, Oct 15, 2013 at 04:04:28PM -0600, Chris Murphy wrote: > >> I'm happy to hear it argued I should instead use the LV space for a > >> regular partition formatted e

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Chris Murphy
On Oct 15, 2013, at 4:29 PM, Richard W.M. Jones wrote: > On Tue, Oct 15, 2013 at 04:04:28PM -0600, Chris Murphy wrote: >> I'm happy to hear it argued I should instead use the LV space for a >> regular partition formatted ext2 and drop the qcow2 file >> there. There's still overhead of two file s

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Josh Stone
On 10/15/2013 05:15 PM, Chris Murphy wrote: > > On Oct 15, 2013, at 4:30 PM, Josh Stone wrote: > >> On 10/15/2013 02:46 PM, Richard W.M. Jones wrote: >>> On Tue, Oct 15, 2013 at 03:29:38PM -0600, Chris Murphy wrote: The better snapshots sound ideal for VM testing. Snapshot a successful

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Chris Murphy
On Oct 15, 2013, at 4:30 PM, Josh Stone wrote: > On 10/15/2013 02:46 PM, Richard W.M. Jones wrote: >> On Tue, Oct 15, 2013 at 03:29:38PM -0600, Chris Murphy wrote: >>> The better snapshots sound ideal for VM testing. Snapshot a >>> successful install and then try to break the snapshot. Etc. >>>

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Josh Stone
On 10/15/2013 02:46 PM, Richard W.M. Jones wrote: > On Tue, Oct 15, 2013 at 03:29:38PM -0600, Chris Murphy wrote: >> The better snapshots sound ideal for VM testing. Snapshot a >> successful install and then try to break the snapshot. Etc. >> >> Presently virt-manager ignores thinp pools and only c

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Richard W.M. Jones
On Tue, Oct 15, 2013 at 04:04:28PM -0600, Chris Murphy wrote: > I'm happy to hear it argued I should instead use the LV space for a > regular partition formatted ext2 and drop the qcow2 file > there. There's still overhead of two file systems there, but may > compare to LV performance. I guess you

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Chris Murphy
On Oct 15, 2013, at 3:46 PM, Richard W.M. Jones wrote: > On Tue, Oct 15, 2013 at 03:29:38PM -0600, Chris Murphy wrote: >> The better snapshots sound ideal for VM testing. Snapshot a >> successful install and then try to break the snapshot. Etc. >> >> Presently virt-manager ignores thinp pools a

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Richard W.M. Jones
On Tue, Oct 15, 2013 at 03:29:38PM -0600, Chris Murphy wrote: > The better snapshots sound ideal for VM testing. Snapshot a > successful install and then try to break the snapshot. Etc. > > Presently virt-manager ignores thinp pools and only creates > conventional LV's. I haven't tried using virsh

Re: LVM thin provisioning and virt-manager

2013-10-15 Thread Cole Robinson
On 10/15/2013 05:29 PM, Chris Murphy wrote: > The better snapshots sound ideal for VM testing. Snapshot a successful > install and then try to break the snapshot. Etc. > > Presently virt-manager ignores thinp pools and only creates conventional > LV's. I haven't tried using virsh to force it to