It would be a regression from Solaris 10, and last time I looked there
was explicit support for per-zone kstats.  It sounds more like a pkg
issue though -- kstat (which is just a perl script) is missing
dependencies.  I bet a C program that used libkstat would work just
fine (of course not all the kstats visible in the global zone would be
visible in a non-global zone).


On Mon, Apr 26, 2010 at 4:29 PM, James C. McPherson
<[email protected]> wrote:
> On 27/04/10 07:26 AM, zhenghui xie wrote:
>>
>> hi,
>>
>> I installed opensolaris 134, then created a zone. kstat works fine in
>> the global zone, but it doesn't work in the local zone. The error is
>> below:
>>
>> r...@zone1:~# kstat -m unix |more
>> Can't locate auto/I18N/Langinfo/autosplit.ix in @INC (@INC contains:
>> /usr/perl5/5.8.4/lib/i86pc-solaris-64int /usr/perl5/5.8.4/lib
>> /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int
>> /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl
>> /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int
>> /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at
>> /usr/perl5/5.8.4/lib/AutoLoader.pm line 160.
>> at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/I18N/Langinfo.pm line 10
>> Can't locate loadable object for module I18N::Langinfo in @INC (@INC
>> contains: /usr/perl5/5.8.4/lib/i86pc-solaris-64int /usr/perl5/5.8.4/lib
>> /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int
>> /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl
>> /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int
>> /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at /usr/bin/kstat
>> line 34
>> Compilation failed in require at /usr/bin/kstat line 34.
>> BEGIN failed--compilation aborted at /usr/bin/kstat line 34.
>>
>> This looks like "6937506 kstat lacks dependency on
>> runtime/perl-584/extra" So I tried to install SUNWperl584usr. But it
>> tells me "no updates necessary for this image". And kstat still doesn't
>> work inside my zone.
>>
>> How do I make kstat work inside a zone? Thanks a lot for help.
>
> Why do you expect a non-global zone, which has a very
> limited view of a kernel, to be able to see kstats?
>
> What problem are you trying to solve?
>
>
> James C. McPherson
> --
> Senior Software Engineer, Solaris
> Oracle
> http://www.jmcp.homeunix.com/blog
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
>
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to