> That xenstore-rm failure might explain why the wrong interface
> is persistent across reboots.  The snv77 smf(5) startup method for
> xend (/lib/svc/method/xend) tries to run exactly the same command
> to force selecting a new default nic when the first domain starts:
> 
> /lib/svc/method/xend:
> 
>    27  default_nic_path=device-misc/vif/default-nic ....
>    40          #
>    41          # Ensure that booting the first domain will determine
>    42          # the default NIC correctly.
>    43          #
>    44          /usr/lib/xen/bin/xenstore-rm $default_nic_path
>    2>/dev/null 45
>    46          /usr/lib/xend start
> 
> 
> During a reboot, did you notice any error messages on the
> console or in /var/adm/messages about a corrupted xenstore
> database?

There are some lines in /var/adm/messages which indicates xenstore corrupted:
##################
Dec 20 09:38:58 vt-dp3 unix: [ID 881207 kern.notice] NOTICE: IRQ19 is shared
Dec 20 09:38:58 vt-dp3 e1000g: [ID 766679 kern.info] Intel(R) PRO/1000 Network 
Connection, Driver Ver. 5.2.3
Dec 20 09:38:58 vt-dp3 xenstored: [ID 702911 daemon.error] Checking store ...
Dec 20 09:38:58 vt-dp3 mac: [ID 469746 kern.info] NOTICE: e1000g2 registered
Dec 20 09:38:58 vt-dp3 xpv_psm: [ID 803547 kern.info] xen_psm: pciex8086,10b9 
(e1000g) instance 2 vector 0x10 ioapic 0x8 intin 0x10 is bound to cpu 6
Dec 20 09:38:58 vt-dp3 e1000g: [ID 766679 kern.info] Intel(R) PRO/1000 Network 
Connection, Driver Ver. 5.2.3
Dec 20 09:38:58 vt-dp3 xenstored: [ID 702911 daemon.error] Checking store 
complete.
Dec 20 09:38:58 vt-dp3 xenstored: [ID 702911 daemon.error] Checking store ...
Dec 20 09:38:58 vt-dp3 xenstored: [ID 702911 daemon.error] Checking store 
complete.
Dec 20 09:38:58 vt-dp3 xpvd: [ID 395608 kern.info] [EMAIL PROTECTED], evtchn0
Dec 20 09:38:58 vt-dp3 genunix: [ID 936769 kern.info] evtchn0 is /xpvd/[EMAIL 
PROTECTED]
Dec 20 09:38:58 vt-dp3 xenstored: [ID 702911 daemon.error] TDB error on read: 
Corrupt database
##################

And I tried to remove /var/lib/xenstored/tdb and reboot the machine. After 
that, I even can not read device-misc/vif/default-nic. 
[vt-dp3@/]/usr/lib/xen/bin/xenstore-read device-misc/vif/default-nic
/usr/lib/xen/bin/xenstore-read: couldn't read path device-misc/vif/default-nic

But after I create a Guest, I can read it and the default value is e1000g2 now.
[vt-dp3@/]/usr/lib/xen/bin/xenstore-read device-misc/vif/default-nic
e1000g2

Best Regards
Jiajun
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to