Bug 1305795

Summary: Set chattr +C /var/lib/libvirt/images during libvirt installation
Product: [Community] Virtualization Tools Reporter: Peter Kotvan <pkotvan>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, dyuan, jdenemar, libvirt-maint, mprivozn, mzhan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-18 09:56:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Kotvan 2016-02-09 09:25:19 UTC
Description of problem:
This is more of a suggestion. During the installation of libvirt the /var/lib/libvirt/images directory is created as a default place for virtual machines images. In case of installing on a system with COW filesystem such as btrfs or zfs one should disable copy-on-write on directories that will contain the images to avoid low IO performance.

This could be achieved by executing

chattr +C /var/lib/libvirt/images/

in postscript.

Comment 1 Daniel Berrangé 2021-08-18 09:56:44 UTC
Libvirt now makes storage pools nocow when on btrfs automatically