[zones-discuss] Re: zonepath
Hi Folks, to recap I asked about NFS mounting /export/home from GZ to NGZ on the same box, using: 1 add inherit-pkg-dir 2 add fs (lofs) OR 3 nfs mount /export/home from the global zone, to the NGS (CIS2) later on. (Christine said) No. 3 is definitely out. You can't have an NGZ nfs-mount something from the GZ on the same box. Bug. No. 1 is out if you want users in your NGZ to be able to write into those home dirs. inherit-pkg-dir is read-only. ***I'm suprised about that bug, I thought nfs-mounted user directories ***were at least not uncommon. It looks like an lofs file system ***may be about the best I can do from within zonecfg. (Jeff said) Why do you want to do that? Each zone has its own namespace. Unless you are using a network-based directory service, this means that each zone has separate user accounts. If the zones are sharing one /export/home, you must ensure that the user names and userID's are unique among the zones. ***OK, we are going to migrate our main academic (student) server (acad) from an old Ultra Enterprise 3000 to a newer SunFire V245. We also have an Ultra 10 box (cis) used for networking class and would like to 'zone' that up in the new V245 (acad). People in the networking class have root access on cis (that stand-alone box) and we feel having that in a 'zone' is a better idea. Since most users login using ldap, I was thinking 'why not just use the same home dir?' thus my question about nfs mounting (which we already do on a few stand alone boxes). The mountpoint we nfs-mount presently comes from acad (old Enterprise 3000). Perhaps it would be easier just to create the home directories for those students in the zone as required. Thank you all for the help, warnings and ideas, Phil This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] zonepath
HI, questions for you. So far I have seen two examples of configurations for the zonepath value 1 zonepath=/zones/[zone_name] effectively putting the zone on the / mountpoint and 2 zonepath=/export/home/[zone_name] putting it on the /export/home mountpoint. Is / the recommended location for the zonepath home, or is there some reason for it to be placed under root? Is it recommended that the zonepath value NOT be a separate mount point? thank you. This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Re: zonepath
Hi Edna, OK so having the zoneroot be under / is NOT required, (thank you), and from what you said, having it on its own mount point is NOT a problem. If fact, you indicate that having the zones under /export may be the best practice. thank you. This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] zoneadm install
***Im getting some strange errors from zoneadmin install bash-3.00# zoneadm -z CIS2 install Preparing to install zone CIS2. Creating list of files to copy from the global zone. Copying 213 files to the zone. Initializing zone product registry. ERROR: Read-only file system: cannot create zone product registry text database file /zones/CIS2/root/var/sadm/install/contents ERROR: cannot initialize zone product registry at /zones/CIS2/root ERROR: cannot copy and initialize packages from global zone to local zone CIS2 path /zones/CIS2/root ERROR: cannot create zone boot environment CIS2 zoneadm: zone 'CIS2': '/usr/lib/lu/lucreatezone' failed with exit code 74. *** my configuration file looks like this: bash-3.00# zonecfg -z CIS2 zonecfg:CIS2 export create -b set zonepath=/zones/CIS2 set autoboot=true add inherit-pkg-dir set dir=/lib end add inherit-pkg-dir set dir=/platform end add inherit-pkg-dir set dir=/sbin end add inherit-pkg-dir set dir=/usr end add inherit-pkg-dir set dir=/opt end add inherit-pkg-dir set dir=/var end add net set address=156.12.1.129 set physical=eri0 end zonecfg:CIS2 exit bash-3.00# *** Im patched up to the solaris cluster that came out last week, so *** Any ideas? This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] zoneadm install
***Im getting some strange errors from zoneadmin install bash-3.00# zoneadm -z CIS2 install Preparing to install zone CIS2. Creating list of files to copy from the global zone. Copying 213 files to the zone. Initializing zone product registry. ERROR: Read-only file system: cannot create zone product registry text database file /zones/CIS2/root/var/sadm/install/contents ERROR: cannot initialize zone product registry at /zones/CIS2/root ERROR: cannot copy and initialize packages from global zone to local zone CIS2 path /zones/CIS2/root ERROR: cannot create zone boot environment CIS2 zoneadm: zone 'CIS2': '/usr/lib/lu/lucreatezone' failed with exit code 74. *** my configuration file looks like this: bash-3.00# zonecfg -z CIS2 zonecfg:CIS2 export create -b set zonepath=/zones/CIS2 set autoboot=true add inherit-pkg-dir set dir=/lib end add inherit-pkg-dir set dir=/platform end add inherit-pkg-dir set dir=/sbin end add inherit-pkg-dir set dir=/usr end add inherit-pkg-dir set dir=/opt end add inherit-pkg-dir set dir=/var end add net set address=156.12.1.129 set physical=eri0 end zonecfg:CIS2 exit bash-3.00# *** Im patched up to the solaris cluster that came out last week, so *** Any ideas? This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Re: Re: Changing a zone's inherit-pkg-dir
Hi Bob, Thanks for getting back to me. You had indicated: On most of my systems I also add /opt to the inherited-pkg-dir list. How many of the 'native' solaris mount points can this be done with, all of them? How many do you typically put in? Thanks, Phil This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Re: Changing a zone's inherit-pkg-dir
Hi, I was wondering if that trick of adding an additional directory (mount point?) that you outlined below, would work more than once? zonecfg -z zonecfg add fs zonecfg:fs set dir= zonecfg:fs set special= zonecfg:fs set type=lofs zonecfg:fs end I tried to use the dir and special during the initial configuration of a zone and it only excepted one of them. Also, how many directories can you have inherited 'initially' before you install the zone? Thank you. Phil This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org