Frido Roose
2012-Apr-05 09:36 UTC
[libvirt-users] virsh attach-disk with cache=none and io=native for raw devices (online)
Hello, I see there is an option with virsh attach-disk to set the cache to "none" for raw devices, but I can't find how to attach the disk with io=native (needed for performance reasons). The goal is to attach a disk online, directly with the proper performance settings. I know I can set this in virt-manager, but then I have to restart the VM to apply the change, so this is an offline operation. With virsh edit, I guess I also would have to restart the VM... -- Frido Roose Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
Daniel P. Berrange
2012-Apr-05 09:40 UTC
[libvirt-users] virsh attach-disk with cache=none and io=native for raw devices (online)
On Thu, Apr 05, 2012 at 11:36:55AM +0200, Frido Roose wrote:> Hello, > > I see there is an option with virsh attach-disk to set the cache to "none" for raw devices, but I can't find how to attach the disk with io=native (needed for performance reasons). > The goal is to attach a disk online, directly with the proper performance settings.virsh attach-disk is just a wrapper around the more general command virsh attach-device. So if there's stuff you can't set with attach-disk, you can always pass the complete XML to attach-device to set everything Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|