/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.

