Project

General

Profile

Actions

Documentation #4395

closed

Improve qemu/libvirt documentation

Added by Michael Evans over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Please add this to the page:

http://ceph.com/docs/master/rbd/qemu-rbd/#enabling-discard-trim

--

If using libvirt, edit your libvirt domain's 'XML' file to include the xmlns:qemu value, then add a qemu:commandline block as a child of that domain. This example shows how to set two devices with qemu id= to different discard_granularity values.

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0&#039;>
<qemu:commandline>
<qemu:arg value='-set'/>
<qemu:arg value='block.scsi0-0-0.discard_granularity=4096'/>
<qemu:arg value='-set'/>
<qemu:arg value='block.scsi0-0-1.discard_granularity=65536'/>
</qemu:commandline>
</domain>

Actions #1

Updated by John Wilkins over 11 years ago

  • Assignee set to John Wilkins
Actions #2

Updated by John Wilkins over 11 years ago

  • Status changed from New to In Progress
Actions #3

Updated by John Wilkins over 11 years ago

  • Status changed from In Progress to Resolved

Added commentary to http://ceph.com/docs/master/rbd/qemu-rbd/#enabling-discard-trim. Added comment to use virsh edit, as editing XML directly can lead to inconsistent results.

Actions

Also available in: Atom PDF