Archives pour l'étiquette Xen

Xen Erreur : « WARING ! Can’t find hypervisor information in sysfs ! »

WARING ! Can’t find hypervisor information in sysfs !

Vous utiliser le commande xm dans un but ou un autre et vous avez xen qui vous crache au nez cet avertissement tout en exécutant pourtant votre commande. Vous avez certainement /sys qui n’est pas monté en partition. Vérifier votre /etc/fstab et monté le par un vigoureux mount -a.

sysfs <span style="color: #000000; font-weight: bold;">/</span>sys sysfs rw,noexec,nosuid,nodev <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>

Xen : Récupérer de l’espace sur un fichier image disque en ext3

Par défaut, 5% d’espace disque sont réservés pour l’utilisateur root lors du formatage d’une partition en ext3. Cet espace permet, d’une part, de minimiser la fragmentation des fichiers et d’autre part, de permettre aux processus tournant sous l’utilisateur root de continuer à fonctionner (ex : syslogd).

Il est possible de réduire cet espace grâce à la commande tune2fs.

Affichons tout d’abord l’espace libre disponible sur le fichier image Caprica.img de 5Go

<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bitch<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> -o loop Caprica.img <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bitch<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">df</span> -h <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span> Sys. de fich. Tail. Occ. Disp. <span style="color: #000000; font-weight: bold;">%</span>Occ. Monté sur <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Caprica<span style="color: #000000; font-weight: bold;">/</span>Caprica.img <span style="color: #000000;">4</span>,9G 347M <span style="color: #000000;">4</span>,3G <span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>mnt <span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bitch<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>

Réduisons l’espace réservé à 1% du disque :

<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bitch<span style="color: #7a0874; font-weight: bold;">&#93;</span> tune2fs -m <span style="color: #000000;">1</span> Caprica.img tune2fs <span style="color: #000000;">1.40</span>-WIP <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">14</span>-Nov<span style="color: #000000;">-2006</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> Initialisation <span style="color: #c20cb9; font-weight: bold;">du</span> pourcentage de blocs réservés à <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">12800</span> blocs<span style="color: #7a0874; font-weight: bold;">&#41;</span>

Ré-affichons maintenant l’espace libre disponible sur le fichier image Caprica.img

<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bitch<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> -o loop Caprica.img <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>bitch<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">df</span> -h <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span> Sys. de fich. Tail. Occ. Disp. <span style="color: #000000; font-weight: bold;">%</span>Occ. Monté sur <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>Caprica<span style="color: #000000; font-weight: bold;">/</span>Caprica.img <span style="color: #000000;">4</span>,9G 347M <span style="color: #000000;">4</span>,5G <span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>mnt

Voila le volume disponible est passé de 4,3 Go à 4,5 Go. Je vous laisse imaginer sur des volumes plus important

Merci Sylvain de GNU Squad

Xen Erreur : « netsnmp_assert __extension__ »

netsnmp_assert extension

Dans votre /var/log/syslog vous trouvez ce type de message toute les minutes ou 30 secondes ?

netsnmp_assert __extension__ <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span> size_t __s1_len, __s2_len; <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> __builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s2_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s1_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s2_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name, ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> : <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s1_len <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_c May <span style="color: #000000;">20</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">58</span>:<span style="color: #000000;">43</span> elara snmpd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">3010</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: netsnmp_assert __extension__ <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span> size_t __s1_len, __s2_len; <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> __builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s2_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s1_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s2_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name, ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> : <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s1_len <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_c

La Cause

Il existe peu de littérature sur le net à propose de ce message d’erreur. Cependant un bug report existe chez RedHat à propos snmpd. Sur Debian Etch 4.0 la version de snmpd est la 5.2. Upgrader en 5.3 comme préconisé dans la solution a ce bug en compilant le tente moyen moyen.

Quelques messages sur sur les mailling-list de xensource.com rester sans réponse, dont celui ci Problem with dom0 and snmpd.

Solution de contournement

A défaut de pouvoir mettre à jour snmpd, on peux le faire taire. J’ai trouver ici le bon paramètre : Snmpd filling up /var/log/messages. Donc il est possible de limité l’écriture dans les log au chose hyper importante.

Dans /etc/default/snmpd j’ai modifier la ligne suivante.

<span style="color: #808080; font-style: italic;"># SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'</span>

par

<span style="color: #007800;">SNMPDOPTS=</span><span style="color: #ff0000;">'-LS 0-4 d -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'</span>

Les paramètres « 0-4 » signifie que les « warning messages », « errors », « alerts » et « critical messages » sont logger par contre tout ce qui est « notice info » et « debug level messages » sont ignoré. Depuis cette modification c’est plus silencieux 🙂

Xen Erreur : « Error : Device 2049 (vbd) could not be connected »

loop en module du kernel

Bug Fix pour XEN 3 et les disque virtuel sur fichier image

Après de nombreux boot / création de machine virtuel le démarage des domU ne ce fait plus (xm create) et on trouvel le message d’erreur « Error : Device 2049 (vbd) could not be connected »

La solution passe par le paramétrage correcte de module kernel « loop ». Ajouter dans /etc/modprobe.d un fichier xen avec le contenue suivant :

modprobe loop <span style="color: #007800;">max_loop=</span><span style="color: #000000;">64</span>

loop dans le kernel

Lorsque « loop device » est intégré au kernel et non en module l’on se retrouve avec uniquement 8 « Loop Device« .

Ce qui est pénalisant lorsque l’on utilise Xen avec des images disques, celui-ci monte les images via le « Loop Device », et donc lorsqu’on utilise les 8 « Loop Device » et qu’on désire lancer une VM de plus, celui-ci ne fonctionnera pas.

Pour augmenter le pool de « Loop Device », il faut modifier les options au boot du kernel afin de rajouter « max_loop= ».

Ce qui donne :

title Xen <span style="color: #000000;">3.1</span><span style="color: #000000;">.0</span> <span style="color: #000000; font-weight: bold;">/</span> Debian GNU<span style="color: #000000; font-weight: bold;">/</span>Linux, kernel <span style="color: #000000;">2.6</span><span style="color: #000000;">.18</span>-xen root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> kernel <span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000;">-3.1</span><span style="color: #000000;">.0</span>.gz module <span style="color: #000000; font-weight: bold;">/</span>vmlinuz<span style="color: #000000;">-2.6</span><span style="color: #000000;">.18</span>-xen <span style="color: #007800;">root=</span><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p2 ro <span style="color: #007800;">console=</span>tty0 <span style="color: #007800;">max_loop=</span><span style="color: #000000;">256</span> module <span style="color: #000000; font-weight: bold;">/</span>initrd.img<span style="color: #000000;">-2.6</span><span style="color: #000000;">.18</span>-xen savedefault