I''m pretty new to opensolaris. I come from FreeBSD. Naturally, after using FreeBSD forr awhile i''ve been big on the use of FreeBSD jails so i just had to try zones. I''ve figured out how to get zones running but now i''m stuck and need help. Is there anything like "nullfs" in opensolaris... or maybe there is a more "solaris" way of doing what i need to do. Basically, what i''d like to do is give a specific zone access to 2 zfs filesystems which are available to the global zone. my new zones are in: /export/home/zone1 /export/home/zone2 What i''d like to do is give them access to: /tank/nas/Video /tank/nas/JeffB i''m sure i looked over something hugely easy and important...thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/e403781d/attachment.html>
Le 21 janv. 10 ? 12:33, Thomas Burgess a ?crit :> I''m pretty new to opensolaris. I come from FreeBSD. > > Naturally, after using FreeBSD forr awhile i''ve been big on the use > of FreeBSD jails so i just had to try zones. I''ve figured out how > to get zones running but now i''m stuck and need help. Is there > anything like "nullfs" in opensolaris... > > or maybe there is a more "solaris" way of doing what i need to do. > > Basically, what i''d like to do is give a specific zone access to 2 > zfs filesystems which are available to the global zone. > my new zones are in: > > /export/home/zone1 > /export/home/zone2 > >the path of the root of your zone is not important for that feature.> What i''d like to do is give them access to: > > /tank/nas/Video > /tank/nas/JeffB >with zonecfg, you can add a configuration like this one to your zone: add fs set dir=/some/path/Video set special=/tank/nas/Video set type=lofs end add fs set dir=/some/path/JeffB set special=/tank/nas/JeffB set type=lofs end Your filesystems will appear in /some/path/Video and /some/path/JeffB in your zone, and still be accessible in the global zone. docs.sun.com/app/docs/doc/817-1592/z.conf.start-29?a=view This option don''t let you manage the filesystems from the zone though. You must use "add dataset" in that case. docs.sun.com/app/docs/doc/819-5461/gbbst?a=view Ga?tan -- Ga?tan Lehmann Biologie du D?veloppement et de la Reproduction INRA de Jouy-en-Josas (France) tel: +33 1 34 65 29 66 fax: 01 34 65 29 09 voxel.jouy.inra.fr itk.org mandriva.org bepo.fr -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: Ceci est une signature ?lectronique PGP URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/a03ab4f7/attachment.bin>
> > the path of the root of your zone is not important for that feature. > > > \ >Ok, cool> > with zonecfg, you can add a configuration like this one to your zone: > > add fs > set dir=/some/path/Video > set special=/tank/nas/Video > set type=lofs > end > add fs > set dir=/some/path/JeffB > set special=/tank/nas/JeffB > set type=lofs > end > > Thanks, i thought i read that this wouldn''t work unless it was a legacymount.... So i''ll be able to access the filesystem from both the global zone and my new zone?> Your filesystems will appear in /some/path/Video and /some/path/JeffB in > your zone, and still be accessible in the global zone. > > docs.sun.com/app/docs/doc/817-1592/z.conf.start-29?a=view > >guess that answers that question =) Thanks, i''ll try that.> This option don''t let you manage the filesystems from the zone though. > You must use "add dataset" in that case. > > actually, this is GOOD, i don''t WANT the zone to have the ability to changeanything, just the ability to create new files. Thanks for the help.> docs.sun.com/app/docs/doc/819-5461/gbbst?a=view > > Ga?tan > > -- > Ga?tan Lehmann > Biologie du D?veloppement et de la Reproduction > INRA de Jouy-en-Josas (France) > tel: +33 1 34 65 29 66 fax: 01 34 65 29 09 > voxel.jouy.inra.fr itk.org > mandriva.org bepo.fr > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/bd0eb5b2/attachment.html>
now i''m stuck again.....sorry to clog the tubes with my nubishness. i can''t seem to create users inside the zone....i''m sure it''s due to zfs privelages somewhere but i''m not exactly sure how to fix it....i dont'' mind if i need to manage the zfs filesystem outside of the zone, i''m just not sure WHERE i''m supposed to do it.... when i try to create a home dir i get this: mkdir: Failed to make directory "wonslung"; Operation not applicable when i try to do it via adduser i get this: UX: useradd: ERROR: Unable to create the home directory: Operation not applicable. and when i try to enter the zone home dir from the global zone i get this, even as root: bash: cd: home: Not owner have i seriously screwed up or did i again miss something vital. thanks again. -------------- next part -------------- An HTML attachment was scrubbed... URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/61c54798/attachment.html>
Le 21 janv. 10 ? 14:14, Thomas Burgess a ?crit :> now i''m stuck again.....sorry to clog the tubes with my nubishness. > > i can''t seem to create users inside the zone....i''m sure it''s due to > zfs privelages somewhere but i''m not exactly sure how to fix it....i > dont'' mind if i need to manage the zfs filesystem outside of the > zone, i''m just not sure WHERE i''m supposed to do it.... > > > when i try to create a home dir i get this: > > mkdir: Failed to make directory "wonslung"; Operation not applicable > > > when i try to do it via adduser i get this: > > UX: useradd: ERROR: Unable to create the home directory: Operation > not applicable. > > > and when i try to enter the zone home dir from the global zone i get > this, even as root: > > bash: cd: home: Not owner > > > have i seriously screwed up or did i again miss something vital.Maybe it''s because of the automounter. If you don''t need that feature, try to disable it in your zone with svcadm disable autofs Ga?tan -- Ga?tan Lehmann Biologie du D?veloppement et de la Reproduction INRA de Jouy-en-Josas (France) tel: +33 1 34 65 29 66 fax: 01 34 65 29 09 voxel.jouy.inra.fr itk.org mandriva.org bepo.fr -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: Ceci est une signature ?lectronique PGP URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/20e22a51/attachment.bin>
hrm...that seemed to work...i''m so new to solaris....it''s SO different...what exactly did i just disable? Does that mount nfs shares or something? why should that prevent me from creating home directories? thanks 2010/1/21 Ga?tan Lehmann <gaetan.lehmann at jouy.inra.fr>> > Le 21 janv. 10 ? 14:14, Thomas Burgess a ?crit : > > > now i''m stuck again.....sorry to clog the tubes with my nubishness. >> >> i can''t seem to create users inside the zone....i''m sure it''s due to zfs >> privelages somewhere but i''m not exactly sure how to fix it....i dont'' mind >> if i need to manage the zfs filesystem outside of the zone, i''m just not >> sure WHERE i''m supposed to do it.... >> >> >> when i try to create a home dir i get this: >> >> mkdir: Failed to make directory "wonslung"; Operation not applicable >> >> >> when i try to do it via adduser i get this: >> >> UX: useradd: ERROR: Unable to create the home directory: Operation not >> applicable. >> >> >> and when i try to enter the zone home dir from the global zone i get this, >> even as root: >> >> bash: cd: home: Not owner >> >> >> have i seriously screwed up or did i again miss something vital. >> > > > Maybe it''s because of the automounter. > If you don''t need that feature, try to disable it in your zone with > > svcadm disable autofs > > > Ga?tan > > -- > Ga?tan Lehmann > Biologie du D?veloppement et de la Reproduction > INRA de Jouy-en-Josas (France) > tel: +33 1 34 65 29 66 fax: 01 34 65 29 09 > voxel.jouy.inra.fr itk.org > mandriva.org bepo.fr > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/09bcad2a/attachment.html>
Thomas, If you''re trying to make user home directories on your local machine in /home, you have to watch out because the initial Solaris config assumes that you''re in an enterprise environment and the convention is to have a filer somewhere that serves everyone''s home directories which, with the default automount config, get mounted onto your machine''s /home. Personally, when setting up a standalone box, I don''t put home directories in /home just to avoid clobbering enterprise unix conventions. Ga?tan gave you the quick solution of just shutting off the automounter, which allows you to avoid addressing the problem this time around. --jake Thomas Burgess wrote:> hrm...that seemed to work...i''m so new to solaris....it''s SO > different...what exactly did i just disable? > > Does that mount nfs shares or something? > why should that prevent me from creating home directories? > thanks > > > 2010/1/21 Ga?tan Lehmann <gaetan.lehmann at jouy.inra.fr > <mailto:gaetan.lehmann at jouy.inra.fr>> > > > Le 21 janv. 10 ? 14:14, Thomas Burgess a ?crit : > > > now i''m stuck again.....sorry to clog the tubes with my nubishness. > > i can''t seem to create users inside the zone....i''m sure it''s > due to zfs privelages somewhere but i''m not exactly sure how to > fix it....i dont'' mind if i need to manage the zfs filesystem > outside of the zone, i''m just not sure WHERE i''m supposed to do > it.... > > > when i try to create a home dir i get this: > > mkdir: Failed to make directory "wonslung"; Operation not applicable > > > when i try to do it via adduser i get this: > > UX: useradd: ERROR: Unable to create the home directory: > Operation not applicable. > > > and when i try to enter the zone home dir from the global zone i > get this, even as root: > > bash: cd: home: Not owner > > > have i seriously screwed up or did i again miss something vital. > > > > Maybe it''s because of the automounter. > If you don''t need that feature, try to disable it in your zone with > > svcadm disable autofs > > > Ga?tan > > -- > Ga?tan Lehmann > Biologie du D?veloppement et de la Reproduction > INRA de Jouy-en-Josas (France) > tel: +33 1 34 65 29 66 fax: 01 34 65 29 09 > voxel.jouy.inra.fr itk.org > mandriva.org bepo.fr > > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > mail.opensolaris.org/mailman/listinfo/zfs-discuss
ahh, On Thu, Jan 21, 2010 at 8:55 AM, Jacob Ritorto <Jacob.Ritorto at gmail.com>wrote:> Thomas, > If you''re trying to make user home directories on your local machine > in /home, you have to watch out because the initial Solaris config assumes > that you''re in an enterprise environment and the convention is to have a > filer somewhere that serves everyone''s home directories which, with the > default automount config, get mounted onto your machine''s /home. Personally, > when setting up a standalone box, I don''t put home directories in /home just > to avoid clobbering enterprise unix conventions. Ga?tan gave you the quick > solution of just shutting off the automounter, which allows you to avoid > addressing the problem this time around. > > --jake > > > yes, i just realized this....i feel quite silly now.I''m not used to the whole /home vs /export/home difference and when you add zones to the mix it''s quite confusing. I''m just playing around with this zone.....to learn but in the next REAL zone i''ll probably: mount the home directories from the base system (this machine itself IS a file server, and the zone i intend to config will be a ftp server and possible a bit torrent client) or create a couple stand alone users which AREN''t in /home This makes a lot more sense now....I also forgot to set a default router in my zone so i can''t even connect to the internet right now.. When i edit it with zonecfg can i just do: add net set defrouter=192.168.1.1** end Thanks again -------------- next part -------------- An HTML attachment was scrubbed... URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/8b788b25/attachment.html>
> > add net > set defrouter=192.168.1.1** > end > > > Thanks again > >I must be doing something wrong...i can access the zone on my network but i can''t for the life of me get the zone to access the internet.... I''m googling like crazy but maybe someone here knows what i''m doing wrong. -------------- next part -------------- An HTML attachment was scrubbed... URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100121/a10ce74b/attachment.html>
Thomas Burgess wrote:> I''m not used to the whole /home vs /export/home difference and when you > add zones to the mix it''s quite confusing. > > I''m just playing around with this zone.....to learn but in the next REAL > zone i''ll probably: > > mount the home directories from the base system (this machine itself IS > a file server, and the zone i intend to config will be a ftp server and > possible a bit torrent client) > > or create a couple stand alone users which AREN''t in /home > > This makes a lot more sense now....I also forgot to set a default router > in my zone so i can''t even connect to the internet right now.. > > When i edit it with zonecfg can i just do: > > add net > set defrouter=192.168.1.1** > endOK, so if you''re the filer too, the automount system still works for you the same as it does for all other machines using automount - it''ll nfs mount to itself, etc. Check out and follow the convention if you''re so inclined. Then of course, it helps to become a nis or ldap expert too, which is a bit much to chew on if you''re just here to check out zones, so your simplification above is fine, as is Ga?tan''s original recommendation... At least until your network grows to the point that you start to notice the home dir chaos and can''t hit nfs shares at will.. Then you have to go back and undo all your automount breakage. And yes, your zonecfg tweak should do the trick. But you don''t have to take my word for it -- the experts hang out in zones-discuss ;) mail.opensolaris.org/mailman/listinfo/zones-discuss ttyl jake
On 01/21/10 17:03, Thomas Burgess wrote:> I''m pretty new to opensolaris. I come from FreeBSD. > > Naturally, after using FreeBSD forr awhile i''ve been big on the use of > FreeBSD jails so i just had to try zones. I''ve figured out how to get > zones running but now i''m stuck and need help. Is there anything like > "nullfs" in opensolaris... > > or maybe there is a more "solaris" way of doing what i need to do. > > Basically, what i''d like to do is give a specific zone access to 2 zfs > filesystems which are available to the global zone. > my new zones are in: > > /export/home/zone1 > /export/home/zone2 > > > What i''d like to do is give them access to: > > /tank/nas/Video > /tank/nas/JeffB# zonecfg -z zone1 add dataset set name=tank/nas/Video end add dataset set name=tank/nas/JeffB end exit # zoneadm -z zone1 reboot Thanks, Zoram> > > i''m sure i looked over something hugely easy and important...thanks. > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100122/76c170ae/attachment.html>