I think you have to mount the zfs as legacy mount point via /etc/vfstab, before you can "add fs" this to a zone.
(I remember that I've seen this in the manual, but have'nt tried this by 
myself.)

Detlef

On 12/20/06 14:06, Shawn LEE C.H. wrote:
Ivan

thks for the reply...

Actually, i tried both, still cannot...with / and without

Ivan Buetler wrote:

My hint:

Missing / in zonecfg:web>
instead of
#zonecfg:web> special=diskpool/web/var


using
#zonecfg:web> special=/diskpool/web/var



Ivan

On Wednesday 20 December 2006 10:53, Shawn LEE C. H. wrote:
Hi experts

Is there anyway we can mount /var and /opt in a zone in a separate
filesystem, noting that /var and /opt within a zone is not empty. I had
tried assigning zpool devices to the zone like this:

#zfs create diskpool c0t0d0
#zfs create diskpool/web
#zfs create diskpool/web/var

#zonecfg -z web
#zonecfg:web> add fs
#zonecfg:web> set dir=/var
#zonecfg:web> special=diskpool/web/var
#zonecfg:web> set type=zfs
#zonecfg:web> end
#zonecfg:web> exit

When I tried to verify and install the zone, it gives an error saying
/opt and /var can't be  created and verified. Any ideas how can we
achieve this feat??

rgds
shawn
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org


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

--
Detlef Drewanz          Systems Engineer/OS Ambassador
Sun Microsystems GmbH   Phone: (+49 30) 747096 856
Komturstrasse 18a       mailto:[EMAIL PROTECTED]
D-12099 Berlin          http://blogs.sun.com/solarium
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to