From: Philipp Hahn Subject: XenStore tdb vs. reboot Date: Fri, 24 Aug 2012 17:00:47 +0200 Message-ID: <201208241700.52458.hahn@univention.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2680265650150720884==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel@lists.xen.org Cc: Ian Campbell , 666135@bugs.debian.org List-Id: xen-devel@lists.xenproject.org --===============2680265650150720884== Content-Type: multipart/signed; boundary="nextPart2516547.zj9KOF346I"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2516547.zj9KOF346I Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I noticed a strace delay when running "virsh list" on my Xen-4.1.3 test=20 server. On further investigation I noticed that in XenStore there were=20 multiple /vm/$UUID entries suffixed by -$VERSION, especially I hat 16 entri= es=20 for my dom0. For each reboot of the host I get a new entry. After disabling Xend I get the following output after a reboot: > root@xen5:~# xenstore-ls /local/domain/0 > name =3D "Domain-0" If I then start Xend, I get more data added: > root@xen5:~# /etc/init.d/xend start > Starting xen management daemon: xend. > root@xen5:~# xenstore-ls /local/domain/0 > vm =3D "/vm/00000000-0000-0000-0000-000000000000-2" > device =3D "" > control =3D "" > platform-feature-multiprocessor-suspend =3D "1" > error =3D "" > memory =3D "" > target =3D "3400192" > guest =3D "" > hvmpv =3D "" > data =3D "" > cpu =3D "" > 1 =3D "" > availability =3D "online" > 0 =3D "" > availability =3D "online" > description =3D "" > console =3D "" > limit =3D "1048576" > type =3D "xenconsoled" > domid =3D "0" > name =3D "Domain-0" Notice that I now have vm=3D$UUID-2. If you just restart Xend, the problem does not show; you need to actually=20 reboot to host, so that /local/domain/0/vm does not exist. I found commit = =20 which added the suffix handling, which I never noticed before. I found the same issue reported at=20 . =46or comparison I just installed a fresh Debian Wheezy rc1 and noticed tha= t the=20 XenStore tdb there is locates in /var/_run_/xenstore/tdb instead=20 of /var/_lib_/xenstore/tdb. Since /var/run/ lives on a tempfs, it's nuked o= n=20 every reboot and thus the problem doesn't exist there. Is the XenStore tdb supposed to survive a reboot or must it be cleared betw= een=20 each reboot? Sincerely Philipp =2D-=20 Philipp Hahn Open Source Software Engineer hahn@univention.de Univention GmbH be open. fon: +49 421 22 232- 0 Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99 http://www.univention.de/ --nextPart2516547.zj9KOF346I Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAlA3lyAACgkQYPlgoZpUDjmwTACcC9xktiXlz+jgBSoECHzsChsU zHgAn3X1iIj7AMrrglMEzt+fTLA8/9ur =hr+S -----END PGP SIGNATURE----- --nextPart2516547.zj9KOF346I-- --===============2680265650150720884== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============2680265650150720884==--