/usr/local read/write in a non-global zone

Hi

I am trying to install a zone with the /usr/local dir to be read and writeable.

The configuration of the zone looks like this

zonename: ipa-db

zonepath: /data/zones/ipa-db

autoboot:true

pool:

limitpriv:

inherit-pkg-dir:

dir: /lib

inherit-pkg-dir:

dir: /platform

inherit-pkg-dir:

dir: /sbin

inherit-pkg-dir:

dir: /usr

fs:

dir: /usr/local

special: /data/mysql

raw not specified

type: lofs

options: [nodevices]

net:

address: 10.16.4.153

physical: ce0

I used the following document as a guideline

http://www.sun.com/bigadmin/features/articles/solaris_zones.html

When I try to install the zone, I get the following error:

# zoneadm -z ipa-db install

Preparing to install zone <ipa-db>.

ERROR: Read-only file system: cannot create mount point </data/zones/ipa-db/root/usr/local>

ERROR: cannot setup zone <ipa-db> inherited and configured file systems

ERROR: cannot setup zone <ipa-db> file systems inherited and configured from the global zone

ERROR: cannot create zone boot environment <ipa-db>

zoneadm: zone'ipa-db':'/usr/lib/lu/lucreatezone' failed with exit code 74.

/data/mysql does exist in the globa zone!

Can anybody tell me if there is some missconfiguration here, or if there is another way to do this or if this is never even going to work at all?

I could just not inherit /usr, but I was wondering if it would work some other way.

[1691 byte] By [Luca_a] at [2007-11-27 3:40:27]
# 1
Hmm, we have similar zones, but the fs options are [rw,nodevices]Still leaving out the rw should only make the fs read only. Not make it non createable,
robert.cohena at 2007-7-12 8:43:53 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Make sure the /usr/local exists as an empty directory on the inherited /usr directory -- otherwise there's no where to mount /usr/local onto.
MichaelMyersa at 2007-7-12 8:43:53 > top of Java-index,Solaris Operating System,Solaris 10 Features...