Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Attach Volume with discard option

Hi, all I'm trying to test with Juno 2014.2.2 And I saw the new feature for nova. "Libvirt-Enable support discard option for disk device" (http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none" **discard="unmap" **=""/> <source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk>

But in testing attach volume, It didn't work. I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume

Thank you in advance.

Attach Volume with discard option

Hi, all all
I'm trying to test with Juno 2014.2.2 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device" device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none" **discard="unmap" **=""/> <source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk>

But in testing attach volume, It didn't work. work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volumeattach-volume.

Thank you in advance.

Attach Volume with discard option

Hi, all
I'm trying to test with Juno 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none" **discard="unmap" **=""/> <h1="">discard='unmap'

/> <source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk>

But in testing attach volume, It didn't work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume.

Thank you in advance.

Attach Volume with discard option

Hi, all
I'm trying to test with Juno 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none" <h1="">discard='unmap'

/> <h1="">discard='unmap'/> <source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk>

But in testing attach volume, It didn't work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume.

Thank you in advance.

Attach Volume with discard option

Hi, all
I'm trying to test with Juno 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none" <h1="">discard='unmap'/> <source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk>

But in testing attach volume, It didn't work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume.

Thank you in advance.

Attach Volume with discard option

Hi, all
I'm trying to test with Juno 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none" <h1="">discard='unmap'/> <b="">discard='unmap' /> <source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk>

But in testing attach volume, It didn't work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume.

Thank you in advance.

Attach Volume with discard option

Hi, all
I'm trying to test with Juno 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none" <b="">discard='unmap' /> discard="unmap"/> <source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk>

But in testing attach volume, It didn't work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume.

Thank you in advance.

Attach Volume with discard option

Hi, all
I'm trying to test with Juno 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk"> device="disk">
<driver name="qemu" type="qcow2" cache="none" discard="unmap"/> discard="unmap"/>
<source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/> file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/>
<target dev="vda" bus="virtio"/> bus="virtio"/>
<alias name="virtio-disk0"/> name="virtio-disk0"/>


</disk>

But in testing attach volume, It didn't work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume.

Thank you in advance.

Attach Volume with discard option

Hi, all
I'm trying to test with Juno 2014.2.2
And I saw the new feature for nova.
"Libvirt-Enable support discard option for disk device"
(http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/libvirt-disk-discard-option.html#)

I tested above feature, It works well with "nova boot" like below.

<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none" discard="unmap"/>
<source file="/opt/openstack/instances/97bc3765-ddf4-4d9a-b0a9-e5f4235b40dc/disk"/>
<target dev="vda" bus="virtio"/>
<alias name="virtio-disk0"/>


</disk>

But in testing attach volume, It didn't work.
I have Thin provisioned cinder-volume so I want attach volume to vm with discard option for reclaim.

How can I use Discard Option on attach-volume.

Thank you in advance.