[Bug 893450] Re: libvirt fails to start correctly because LVM is not ready

Horacio 893450 at bugs.launchpad.net
Fri Jan 20 20:01:36 UTC 2012


And some iozone tests, with 2 child process, O_DIRECT and SYNC Mode
(full log on pastebin: http://pastebin.com/amTbjfdr).

All with:
        O_DIRECT feature enabled
        SYNC Mode. 
        Output is in Kbytes/sec
        Min process = 2 
        Max process = 2 
        Throughput test with 2 processes

----- Record size 1k

        Children see throughput for  2 initial writers  =      11.50 KB/sec
        Avg throughput per process                      =       5.75 KB/sec

        Children see throughput for  2 rewriters        =      12.45 KB/sec
        Avg throughput per process                      =       6.22 KB/sec

----- Record size 8k

        Children see throughput for  2 initial writers  =     100.18 KB/sec
        Avg throughput per process                      =      50.09 KB/sec

        Children see throughput for  2 rewriters        =      75.27 KB/sec
        Avg throughput per process                      =      37.64 KB/sec

----- Record size 16k

        Children see throughput for  2 initial writers  =     277.43 KB/sec
        Avg throughput per process                      =     138.71 KB/sec

        Children see throughput for  2 rewriters        =     224.98 KB/sec
        Avg throughput per process                      =     112.49 KB/sec

----- Record size 32k

        Children see throughput for  2 initial writers  =     398.72 KB/sec
        Avg throughput per process                      =     199.36 KB/sec

        Children see throughput for  2 rewriters        =     204.58 KB/sec
        Avg throughput per process                      =     102.29 KB/sec

----- Record size 64k

        Children see throughput for  2 initial writers  =     406.26 KB/sec
        Avg throughput per process                      =     203.13 KB/sec

        Children see throughput for  2 rewriters        =     447.78 KB/sec
        Avg throughput per process                      =     223.89 KB/sec

----- Record size 128k

        Children see throughput for  2 initial writers  =    1711.68 KB/sec
        Avg throughput per process                      =     855.84 KB/sec

        Children see throughput for  2 rewriters        =    1563.11 KB/sec
        Avg throughput per process                      =     781.56 KB/sec

----- Record size 256k

        Children see throughput for  2 initial writers  =    3400.94 KB/sec
        Avg throughput per process                      =    1700.47 KB/sec

        Children see throughput for  2 rewriters        =    2532.04 KB/sec
        Avg throughput per process                      =    1266.02 KB/sec

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/893450

Title:
  libvirt fails to start correctly because LVM is not ready

Status in “libvirt” package in Ubuntu:
  Incomplete
Status in “udev” package in Ubuntu:
  Incomplete

Bug description:
  Some times, one of the KVM guest failed to start. I've 3 guest, two
  started OK and one failed (the two times the same has failed). After
  rebooting the host two times, the KVM guest started OK, but this is a
  server and found too risky this behavior. The host server is running
  "Ubuntu 11.04 Server 64bits" and libvirt 0.8.8-1ubuntu6.5

  The two times that failed, I've found this on syslog:

  error : virSecurityDACSetOwnership:125 : unable to set user and group to '105:115' on '/dev/vg_default/lv_robot-pv0': No such file or directory
  kernel: [  200.354543] type=1400 audit(1321932141.068:11): apparmor="DENIED" operation="open" parent=2539 profile="/usr/lib/libvirt/virt-aa-helper" name="/dev/dm-7" pid=2638 comm="virt-aa-helper" requested_mask="r" denied_mask="r" fsuid=0 ouid=105
  kernel: [  200.692255] type=1400 audit(1321932141.408:12): apparmor="STATUS" operation="profile_load" name="libvirt-7262201f-566b-d0b1-16ec-0b404ccd5336" pid=2639 comm="apparmor_parser"
  libvirtd: 00:22:21.424: 2539: error : virSecurityDACRestoreSecurityFileLabel:143 : cannot resolve symlink /dev/vg_default/lv_robot-pv0: No such file or directory
  libvirtd: 00:22:21.707: 2539: error : qemuAutostartDomain:275 : Failed to autostart VM 'robot': unable to set user and group to '105:115' on '/dev/vg_default/lv_robot-pv0': No such file or directory

  The LVM device is on a software raid. Maybe this is taking too long to
  come up?

  FYI, running "aa-status" (after the reboots) gives me:
  apparmor module is loaded.
  9 profiles are loaded.
  9 profiles are in enforce mode.
     /sbin/dhclient
     /usr/lib/NetworkManager/nm-dhcp-client.action
     /usr/lib/connman/scripts/dhclient-script
     /usr/lib/libvirt/virt-aa-helper
     /usr/sbin/libvirtd
     /usr/sbin/tcpdump
     libvirt-7262201f-566b-d0b1-16ec-0b404ccd5336
     libvirt-c032ea0a-8c62-7730-fb4d-e1bf60c15a31
     libvirt-f06ad419-f312-f002-444f-3e51f40d2291
  0 profiles are in complain mode.
  4 processes have profiles defined.
  4 processes are in enforce mode :
     /usr/sbin/libvirtd (2459) 
     libvirt-7262201f-566b-d0b1-16ec-0b404ccd5336 (2521) 
     libvirt-c032ea0a-8c62-7730-fb4d-e1bf60c15a31 (2551) 
     libvirt-f06ad419-f312-f002-444f-3e51f40d2291 (2582) 
  0 processes are in complain mode.
  0 processes are unconfined but have a profile defined.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/893450/+subscriptions




More information about the foundations-bugs mailing list