Skip to contentSkip to conversation

block: do we have any consideration about adding retry support in error handling?

Qemu-devel Bin Wu 2 participants 5 messages Dec 25, 2014

lore
Share & tools
lore

Bin Wu

author
#0 lore raw

Hi,

When IO error happens in physical device, qemu block layer supports error reporting, error ignoring and error stoping(for example, virtio-blk). Can we have any way to resend the error IO?

thanks

Signature · 1 line
Bin Wu
#1 lore raw
Quoted 5 lines · Bin Wu

Hi,

When IO error happens in physical device, qemu block layer supports error reporting, error ignoring and error stoping(for example, virtio-blk). Can we have any way to resend the error IO?

With error stop, the request is retried after resume.

Fam

author
#2 lore raw
Quoted 12 lines · Fam Zheng
Quoted 5 lines · Bin Wu

Hi,

When IO error happens in physical device, qemu block layer supports error reporting, error ignoring and error stoping(for example, virtio-blk). Can we have any way to resend the error IO?

With error stop, the request is retried after resume.

Fam

Thank you very much, Fam, I see. Another question: I think error stop is not the default error handling strategy, how can we configure error stop in the VM XML file? Can you just show me some example? Thanks again:>

Signature · 1 line
Bin Wu
#3 lore raw
Quoted 10 lines · Bin Wu
Quoted 9 lines · Fam Zheng
Quoted 5 lines · Bin Wu

Hi,

When IO error happens in physical device, qemu block layer supports error reporting, error ignoring and error stoping(for example, virtio-blk). Can we have any way to resend the error IO?

With error stop, the request is retried after resume.

Quoted 7 lines
Quoted 3 lines

Fam

Thank you very much, Fam, I see. Another question: I think error stop is not the default error handling strategy, how can we configure error stop in the VM XML file? Can you just show me some example? Thanks again:>

This is a question for libvirt, look for "error_policy":

https://libvirt.org/formatdomain.html

Fam

author
#4 lore raw
Quoted 19 lines · Fam Zheng
Quoted 10 lines · Bin Wu
Quoted 9 lines · Fam Zheng
Quoted 5 lines · Bin Wu

Hi,

When IO error happens in physical device, qemu block layer supports error reporting, error ignoring and error stoping(for example, virtio-blk). Can we have any way to resend the error IO?

With error stop, the request is retried after resume.

Quoted 7 lines
Quoted 3 lines

Fam

Thank you very much, Fam, I see. Another question: I think error stop is not the default error handling strategy, how can we configure error stop in the VM XML file? Can you just show me some example? Thanks again:>

Quoted 7 lines

This is a question for libvirt, look for "error_policy":

https://libvirt.org/formatdomain.html

Fam

yes,
...
<driver name='qemu' type='qcow2' cache='none' error_policy='stop' io='native'/>
...

Signature · 1 line
Bin Wu