On 11/3/07, Sean Clarke <[EMAIL PROTECTED]> wrote:
> ptree when GetCurrentCfg is running shows:
>
> ...
> 12274 /bin/ksh -p -x /opt/SUNWut/sbin/utadm -d nge0
> 12372 awk {print $1}
> 12373 getent hosts odin
>
> This is odd, because my machine is called odin and the nge0 interface is
> called odin-nge0.
It's trying to discover the IP address that the rest of the world would
use to contact this machine. (In the general case this is much harder
than it sounds; it can be impossible. 'getent hosts `hostname`' is a
pragmatic approach that usually works but it's not bulletproof. 'utadm'
will error out if 'getent' fails or produces an obviously incorrect address.
If 'getent' just hangs then you'll get the behaviour you're seeing.)
> I just checked and odin was removed from the hosts file, so I edited as
> follows:
>
>
> ::1 localhost
> 127.0.0.1 localhost odin
>
> # SUNRAY DEL 172.16.0.4 odin
> 172.16.0.4 odin-nge0 # SUNRAY ADD - DO NOT MODIFY
>
> And now it completes *much* faster, but reports the following error:
>
> + print -u2 Error: host IP address must be set
> Error: host IP address must be set
> + print -u2 Set host IP address in /etc/inet/hosts files and try again
Right. 'utadm' knows that 127.0.0.1 is the internal loopback address,
and that can not possibly be an address that the rest of the world
can use to contact this machine.
> Set host IP address in /etc/inet/hosts files and try again
> + exit 1
>
> So, I changed the hosts file to:
>
> 127.0.0.1 localhost
>
> # SUNRAY DEL 172.16.0.4 odin
> 172.16.0.4 odin odin-nge0 # SUNRAY ADD - DO NOT MODIFY
>
> And it completes without errors....
>
> But, now its removed odin from the hosts file
That's because 'utadm' knows (from the "# SUNRAY-ADD..." comment)
that this line identifies the IP address of the private Sun Ray interconnect
you configured on the nge0 interface. 'utadm' therefore feels free to
delete this line when you tell it to unconfigure the nge0 interconnect.
> 172.16.0.4 odin odin-nge0 # SUNRAY ADD - DO NOT MODIFY
>
> and so utadm -l now hangs as before...
>
> So, something is obviously wrong with how i am setting up the hostname
> and interface name...
You need to associate the "odin" hostname with an IP address that
the rest of the world can see. Not with the loopback IP address, and
not with the IP address of a Sun Ray interconnect. Pick one of the
addresses that the machine has *before* you configure teh nge0
interconnect.
If nge0 is the machine's connection to the rest of the world then it
isn't a candidate for being a dedicated private Sun Ray interconnect
and you shouldn't use 'utadm -a' to set up Sun Ray service. You
should use 'utadm -A' instead to set up Sun Ray service on what is
really a general-use subnet.
OttoM.
__
ottomeister
Disclaimer: These are my opinions. I do not speak for my employer.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users