Re: [zones-discuss] non-global zone sees /usr/local/bin
On Thu, 29 Mar 2007, David wrote: > I created a non-global zone, it is able to see /usr/local/* from the > global zone. The first problem i, I was attempting to install an app > that writes to /usr/local/etc, and the non-global zone does not have > the abilty to write there, is it bacause it is a loopback mount? Yes; /usr is mounted read-only by default. > How can I get around this, do I have to create an new /usr/local/* in > the non-global zone, if so how do I get the non-global zone from seeing > the global zones /usr/local/* The most correct way of addressing this is to not use /usr/local in the first place. /opt/local is the SVR4 way of doing this. So, move your global zone's /usr/local to /opt/local, then add that directory to your non-global zone. -- Rich Teer, SCSA, SCNA, SCSECA, OGB member CEO, My Online Home Inventory Voice: +1 (250) 979-1638 URLs: http://www.rite-group.com/rich http://www.myonlinehomeinventory.com ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] non-global zone sees /usr/local/bin
The answer depends on your goal, and exactly what you have done already. The latter wasn't entirely clear. If your goal is to create one zone, and give it sole access (writable) to its own /usr/local, and you hadn't configured the zone's /usr/local yet, you can do this: global-zone# zonecfg -z myzone add fs set dir=/usr/local set special=/usr/local set type=lofs end exit The global zone and non-global zone must each have a directory /usr/local. The next time you boot the zone, it will have writable access to /usr/local. David wrote: Sorry for the newbie question, I'm trying to understand and get up to speed with zones, they seem like excellant thiings I created a non-global zone, it is able to see /usr/local/* from the global zone. The first problem i, I was attempting to install an app that writes to /usr/local/etc, and the non-global zone does not have the abilty to write there, is it bacause it is a loopback mount? How can I get around this, do I have to create an new /usr/local/* in the non-global zone, if so how do I get the non-global zone from seeing the global zones /usr/local/* This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org -- -- Jeff VICTOR Sun Microsystemsjeff.victor @ sun.com OS AmbassadorSr. Technical Specialist Solaris 10 Zones FAQ:http://www.opensolaris.org/os/community/zones/faq -- ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] non-global zone sees /usr/local/bin
On 3/30/07, David <[EMAIL PROTECTED]> wrote: Sorry for the newbie question, I'm trying to understand and get up to speed with zones, they seem like excellant thiings I created a non-global zone, it is able to see /usr/local/* from the global zone. The first problem i, I was attempting to install an app that writes to /usr/local/etc, and the non-global zone does not have the abilty to write there, is it bacause it is a loopback mount? How can I get around this, do I have to create an new /usr/local/* in the non-global zone, if so how do I get the non-global zone from seeing the global zones /usr/local/* The scheme we practice is to have /usr/local -> /usrlocal. /usrlocal is not inherited into a zone hence using space on zone_root. -- Just me, Wire ... ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] non-global zone sees /usr/local/bin
Sorry for the newbie question, I'm trying to understand and get up to speed with zones, they seem like excellant thiings I created a non-global zone, it is able to see /usr/local/* from the global zone. The first problem i, I was attempting to install an app that writes to /usr/local/etc, and the non-global zone does not have the abilty to write there, is it bacause it is a loopback mount? How can I get around this, do I have to create an new /usr/local/* in the non-global zone, if so how do I get the non-global zone from seeing the global zones /usr/local/* This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org