Sam Pullara
2005-Nov-22 01:42 UTC
[zfs-discuss] auto_home not working after switching /export/home to ZFS
I installed OpenSolaris build 27a. Then I unmounted /export/home and used the zpool to create a new ZFS pool using the /export/home partition. I then created a new filesystem pool/home and set the mountpoint to /export/home. When I try and login I get : Could not chdir to home directory /home/sam: No such file or directory The /home directory is still in the auto_home and auto_master files. Is there a persmissions problem or something? This message posted from opensolaris.org
Jonathan Adams
2005-Nov-22 01:44 UTC
[zfs-discuss] auto_home not working after switching /export/home to ZFS
On Mon, Nov 21, 2005 at 05:42:49PM -0800, Sam Pullara wrote:> I installed OpenSolaris build 27a. Then I unmounted /export/home > and used the zpool to create a new ZFS pool using the /export/home > partition. I then created a new filesystem pool/home and set the > mountpoint to /export/home. When I try and login I get : > > Could not chdir to home directory /home/sam: No such file or directory > > The /home directory is still in the auto_home and auto_master files. > Is there a persmissions problem or something?What does: % ls -ld /export /export/home /export/home/sam output? Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development
Sam Pullara
2005-Nov-22 01:47 UTC
[zfs-discuss] Re: auto_home not working after switching /export/hometo ZFS
$ ls -ld /export /export/home /export/home/sam drwxr-xr-x 3 root sys 512 Nov 18 12:26 /export drwxr-xr-x 3 root sys 3 Nov 21 17:46 /export/home drwxr-xr-x 2 sam root 2 Nov 21 17:46 /export/home/sam This message posted from opensolaris.org
Sam Pullara
2005-Nov-22 01:48 UTC
[zfs-discuss] Re: auto_home not working after switching /export/hometo ZFS
Where is the association between /home and /export/home ? I''m very familiar with Mac OS X and Redhat Linux, but not so much with Solaris. This message posted from opensolaris.org
Jonathan Adams
2005-Nov-22 02:05 UTC
[zfs-discuss] Re: auto_home not working after switching /export/hometo ZFS
On Mon, Nov 21, 2005 at 05:48:54PM -0800, Sam Pullara wrote:> Where is the association between /home and /export/home ? I''m very > familiar with Mac OS X and Redhat Linux, but not so much with Solaris./etc/auto_home is the main source of configuration; see automount(1M). I think if you put: * localhost:/export/home/& into /etc/auto_home, and ran "automount -v", it would do the right thing. Cheers, - jonathan> This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://opensolaris.org/mailman/listinfo/zfs-discuss-- Jonathan Adams, Solaris Kernel Development
Sam Pullara
2005-Nov-22 02:21 UTC
[zfs-discuss] Re: Re: auto_home not working afterswitching/export/hometo ZFS
That didn''t do anything. No mounts/unmounts. Perhaps there is some underlying assumption here that I don''t understand. Someone here said something about needing NIS+ but I chose DNS on install for instance. Also, useradd doesn''t appear to create a directory anywhere. There must be something here that I''ve misconfigured. This message posted from opensolaris.org
Sam Pullara
2005-Nov-22 02:24 UTC
[zfs-discuss] Re: Re: auto_home not working afterswitching/export/hometo ZFS
More info: auto_master: +auto_master /net -hosts -nosuid,nobrowse /home auto_home -nobrowse auto_home: +auto_home * localhost:/export/home/& exportfs -v: share -F nfs - /opt rw "" - /export/home rw "" passwd: sam:x:100:1::/home/sam:/bin/bash Anything else you might need to look at? This message posted from opensolaris.org
Sam Pullara
2005-Nov-22 02:28 UTC
[zfs-discuss] Re: Re: auto_home not working afterswitching/export/hometo ZFS
Hmmm. I found this bug: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6244467 How am I supposed to create new users? This message posted from opensolaris.org
Chris Beal
2005-Nov-22 12:53 UTC
[zfs-discuss] Re: Re: auto_home not working afterswitching/export/hometo ZFS
I''m no expert in ZFS but I''ve played with the automounter a bit. There''s a nice undocumented debugging feature on autofs which allows you to see what the automounter is trying to do. It might help you see why it''s not mounted. http://blogs.sun.com/roller/page/cwb?entry=debugging_automounter_problems might help Chris Sam Pullara wrote:> More info: > > auto_master: > > +auto_master > /net -hosts -nosuid,nobrowse > /home auto_home -nobrowse > > auto_home: > > +auto_home > * localhost:/export/home/& > > exportfs -v: > > share -F nfs > - /opt rw "" > - /export/home rw "" > > passwd: > sam:x:100:1::/home/sam:/bin/bash > > Anything else you might need to look at? > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://opensolaris.org/mailman/listinfo/zfs-discuss-- Christopher Beal Senior Staff Engineer OP/N1-RPE Sun Microsystems http://blogs.sun.com/cwb