[zones-discuss] Libraries not mounted in local zone

2006-10-18 Thread Bill Casale
Is there a reason the hardware optimized libraries shouldn't be mounted 
in a local zone?


In the local zone, they are 0 byte files:

bash-3.00# ls -l /platform/sun4u-us3/lib/libc_psr.so.1
-rwxr-xr-x   1 root bin0 May 25 09:35 
/platform/sun4u-us3/lib/libc_psr.so.1


even though looking at the local zones path from the global zone shows 
the files as they should be:


bash-3.00# ls -l 
/oracle/zones/cvs/root//platform/sun4u-us3/lib/libc_psr.so.1
-rwxr-xr-x   1 root bin 6624 May 31 15:10 
/oracle/zones/cvs/root//platform/sun4u-us3/lib/libc_psr.so.1



The loopback mount appears to come from the 
svc:/system/filesystem/root:default service which is actually the

script /lib/svc/method/fs-root. That script has an early exit
section if it is being run in a local zone:

/lib/svc/method/fs-root:
if [ ${_INIT_ZONENAME:=`/sbin/zonename`} != global ]; then
libc_mount
exit 0
fi

... presumably to prevent rerunning of the kernel section (devfsadm), 
and remounting of /usr and root. Unfortunately, this section is at

the end and also doesn't get run in a local zone:

PLAT=`/usr/bin/uname -i`
ARCH=`/usr/bin/uname -m`
if [ $ARCH = sun4v ]; then
sun4v_libc_psr_mount
elif [ $ARCH = sun4u ]; then
if [ -h /platform/$PLAT/lib/libc_psr.so.1 ]; then
LINKSTO=`/usr/bin/ls -l 
/platform/$PLAT/lib/libc_psr.so.1 |

/usr/bin/awk '{print $NF}'`
if [ $LINKSTO = ../../sun4u-us3/lib/libc_psr.so.1 
]; then

ARCH=sun4u-us3
fi
fi
sun4u_libc_psr_mount
fi

That section mounts the hardware optimized C library, which I  think 
should also be mounted in the local zone?


--

   _/_/_/  _/_/  _/ _/Bill Casale - TSE
  _/  _/_/  _/_/   _/  OS Team
 _/_/_/  _/_/  _/  _/ _/  1 Network Drive
_/  _/_/  _/   _/_/ Burlington, MA. 01802
   _/_/_/   _/_/_/   _/ _/  

M  I  C  R  O  S  Y  S  T  E  M  S


___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Libraries not mounted in local zone

2006-10-18 Thread Jerry Jelinek

Bill Casale wrote:
Is there a reason the hardware optimized libraries shouldn't be mounted 
in a local zone?


They should be.  This was bug

6407767 libc_psr does not get mounted in a zone

which was integrated into b41.  What build are you running?

Jerry
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Libraries not mounted in local zone

2006-10-18 Thread Bill Casale

Hi Jerry,

Thanks for your reply, I did see that bug but this is happening
on a V440 running Solaris 10 1/06 with KU 118833-23.

Bill


Jerry Jelinek wrote:

Bill Casale wrote:

Is there a reason the hardware optimized libraries shouldn't be 
mounted in a local zone?



They should be.  This was bug

6407767 libc_psr does not get mounted in a zone

which was integrated into b41.  What build are you running?

Jerry



___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Libraries not mounted in local zone

2006-10-18 Thread Jerry Jelinek

Bill Casale wrote:

Hi Jerry,

Thanks for your reply, I did see that bug but this is happening
on a V440 running Solaris 10 1/06 with KU 118833-23.


It looks like this was also fixed in S10u3 build 4.  I am not sure
if it is in a patch yet.

Jerry
___
zones-discuss mailing list
zones-discuss@opensolaris.org