Re: [zones-discuss] forgot to inherit a directory

2006-06-12 Thread Amol A Chiplunkar

The inherit-pkg-dir resource cannot be changed after
the zone has been installed.

You can either change the zone's /etc/vfstab to
automate the mounts,
or you may want to use "fs" resource of zonecfg.

Say this is to mount global zone's /opt/netbeans-5.0
directory which you forgot to inherit

zonecfg -z 
zonecfg> add fs
zonecfg:fs> set dir=/opt/netbeans-5.0
zonecfg:fs> set special=/opt/netbeans-5.0
zonecfg:fs> set type=lofs
zonecfg:fs> end

and reboot the zone. You can use /opt/netbeans-5.0
in the local zone now.

thanks
- Amol

- Original Message -
From: Michael Barrett <[EMAIL PROTECTED]>
Date: Monday, June 12, 2006 7:59 pm
Subject: [zones-discuss] forgot to inherit a directory
To: zones-discuss@opensolaris.org

> Let's say you forgot to inherit an application
directory from the 
> global 
> zone when you first created a local sparse zone. 
Do you have to 
> manually lofs mount the global zone directory of
interest into the 
> local 
> zone every time you reboot, or can you somehow
change the local 
> zone 
> definition and reboot it to get it to inherit the
directory from 
> now on?
> 
> Thanks,
> Mike
> 
> 
> ___
> zones-discuss mailing list
> zones-discuss@opensolaris.org
> 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] forgot to inherit a directory

2006-06-12 Thread Zoram Thanga
Use zonecfg(1M) to edit the inherit-pkg-dir resource of the zone so that 
the application directory is included. The setting is now persistent. 
Reboot the zone now to have the desired directory mounted.


Thanks,
Zoram


Michael Barrett wrote:
Let's say you forgot to inherit an application directory from the global 
zone when you first created a local sparse zone.  Do you have to 
manually lofs mount the global zone directory of interest into the local 
zone every time you reboot, or can you somehow change the local zone 
definition and reboot it to get it to inherit the directory from now on?


Thanks,
Mike


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



--
Zoram Thanga, Sun Cluster Development.
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] forgot to inherit a directory

2006-06-12 Thread Michael Barrett
Let's say you forgot to inherit an application directory from the global 
zone when you first created a local sparse zone.  Do you have to 
manually lofs mount the global zone directory of interest into the local 
zone every time you reboot, or can you somehow change the local zone 
definition and reboot it to get it to inherit the directory from now on?


Thanks,
Mike


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