[OpenIndiana-discuss] NWAM hiccups on startup WAS: pkg only installing command-line tools
Jim Klimov
jimklimov at cos.ru
Tue Nov 26 15:57:10 UTC 2013
On 2013-11-26 12:55, Jim Klimov wrote:
> I think I can somewhat confirm Rainer's problems with NWAM:
> I've created an oi_151a8 installation in VirtualBox (for my
> tests about split-root installation procedure), which is a
> stock installation by the wizard with minimal "deviations"
> (only the FS layout changes detailed in my Wiki article).
>
> On another hand, an oi_151a8 which I installed a month ago
> for my brother's home NAS (on a physical box) and which is
> accessible to me only by internet through an SSH tunnel and
> later openvpn (initiated from that box to my public server),
> works surprisingly reliably with an all-auto config via
> NWAM+DHCP. So... YMMV :-\
>
> Hope these clues lead somewhere,
> //Jim Klimov
Well, I think I got the root cause of my installation's problems
with NWAM: it was indeed the split-rooting. Updating my published
procedures with fixes now. Details follow:
NWAM's SMF script /lib/svc/method/net-nwam uses /usr/bin/nawk,
/usr/bin/sort, cat, pkill (over a dozen overall) - but neither of
the svc:/network/physical instances do actually depend on the /usr
filesystem to be available (as part of filesystem/root service
for ZFS-based installs).
This would be even worse for networked installations which might,
like in the olden days, try to mount the /usr filesystem from an
NFS server - now they won't get the network in the first place.
root at openindiana:~# cat /etc/svc/volatile/*nwam*log
[ start + 3.07s Enabled. ]
[ start + 7.82s Executing start method ("/lib/svc/method/net-nwam start"). ]
/lib/svc/method/net-nwam: line 722: /usr/bin/nawk: not found
/lib/svc/method/net-nwam[733]: /usr/bin/sort: not found [No such file or
directory]
/lib/svc/method/net-nwam: line 733: cat: not found
/lib/svc/method/net-nwam[733]: /usr/bin/nawk: not found [No such file or
directory]
[ start + 9.23s Method "start" exited with status 0. ]
[ start + 12.58s Rereading configuration. ]
[ start + 12.64s Executing refresh method ("/lib/svc/method/net-nwam
refresh"). ]
/lib/svc/method/net-nwam[493]: /usr/bin/pkill: not found [No such file
or directory]
[ start + 12.78s Method "refresh" exited with status 0. ]
root at openindiana:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
inet6 ::1/128
The /lib/svc/method/net-physical method script explicitly depends
only on /usr/bin/cut from the /usr filesystem, but also references
nawk, sort and cat - perhaps as part of its included scripts.
However, it does manage to start up and assign DHCP addresses:
:; touch /etc/dhcp.e1000g0 /etc/hostname.e1000g0
:; svcadm disable nwam; svcadm enable -r physical:default
:; reboot
root at openindiana:~# cat /etc/svc/volatile/*physi*
[ start + 3.10s Enabled. ]
[ start + 9.00s Executing start method ("/lib/svc/method/net-physical"). ]
[ start + 9.09s Timeout override by svc.startd. Using infinite timeout. ]
/lib/svc/method/net-physical: line 722: /usr/bin/nawk: not found
/lib/svc/method/net-physical[733]: /usr/bin/sort: not found [No such
file or directory]
/lib/svc/method/net-physical: line 733: cat: not found
/lib/svc/method/net-physical[733]: /usr/bin/nawk: not found [No such
file or directory]
/lib/svc/method/net-physical[317]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[318]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[319]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[317]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[318]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[319]: /usr/bin/cut: not found [No such file
or directory]
configuring IPv4 interfaces: e1000g0.
starting DHCP on primary interface e1000g0
[ start + 20.76s Method "start" exited with status 0. ]
[ start + 3.08s Disabled. ]
root at openindiana:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu
1500 index 2
inet 10.94.56.157 netmask ffffff00 broadcast 10.94.56.255
ether 8:0:27:d:ba:6d
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
inet6 ::1/128
It also starts up with static IP addressing:
:; rm /etc/dhcp.e1000g0
:; echo 10.94.56.158/24 > /etc/hostname.e1000g0
:; reboot
root at openindiana:~# cat /etc/svc/volatile/*physi*
[ start + 3.60s Enabled. ]
[ start + 5.17s Executing start method ("/lib/svc/method/net-physical"). ]
[ start + 5.22s Timeout override by svc.startd. Using infinite timeout. ]
/lib/svc/method/net-physical: line 722: /usr/bin/nawk: not found
/lib/svc/method/net-physical[733]: /usr/bin/sort: not found [No such
file or directory]
/lib/svc/method/net-physical: line 733: cat: not found
/lib/svc/method/net-physical[733]: /usr/bin/nawk: not found [No such
file or directory]
/lib/svc/method/net-physical[317]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[318]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[319]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[317]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[318]: /usr/bin/cut: not found [No such file
or directory]
/lib/svc/method/net-physical[319]: /usr/bin/cut: not found [No such file
or directory]
configuring IPv4 interfaces: e1000g0.
[ start + 12.87s Method "start" exited with status 0. ]
[ start + 3.35s Disabled. ]
root at openindiana:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.94.56.158 netmask ffffff00 broadcast 10.94.56.255
ether 8:0:27:d:ba:6d
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
inet6 ::1/128
Overall, I am now testing and fixing my instructions for the split-root
installation, and will file an RFE for the networking service to get
proper dependencies. After all, this is a trivial step (at least for
systems with a root filesystem which does not depend on networking).
For Rainer: if you do get to reproduce your problems after a proper
wizard-based installation of OI and will help us help you debug them,
please also attach the outputs of SMF logs of the networking startup
(in /etc/svc/volatile/*physical* and /var/svc/log/*physical*). Maybe
they would contain errors like those I hit above and would help us
all understand your problems' causes.
//Jim Klimov
More information about the OpenIndiana-discuss
mailing list