Michael Bushey wrote:
> I would like to have a machine's home directories located on a ZFS 
> partition...... On every sane UNIX I've used there is a /etc/fstab file that 
> can control this. I've Googled for a few hours digging up this mess of 
> /etc/auto_home and /etc/auto_master that not only makes no sense but looks 
> like it has to be modified every time a new user is added. Reading through 
> the automount man page also makes no logical sense, I think the person who 
> wrote it got paid a bonus every time they used the word "zone".  
>
> I tried this:
>  # zfs set mountpoint=/export/home ion/home
>
> but get:
> cannot mount '/export/home': directory is not empty
> property may be set but unable to remount filesystem
>
> Ironically the error message is wrong as I'm not mounting /export/home, I'm 
> attempting to unmount it.  I also think the whole /export/home/ is stupid but 
> I get that it's a limitation of Solaris's automouter. Wouldn't it make more 
> sense for Nexenta to get rid of this crap and use a more standard UNIX method 
> like a /etc/fstab file?
>
> Thanks in advance for any help,
> Michael Bushey
>   
Hi Michael,

    Starting autofs by default gives me grief as well so it's the first 
thing I disable. To find the service you can do "svcs -a | grep autofs". 
When you locate the correct service (maybe 
svc:/system/filesystem/autofs:default) then you can disable it with 
"svcadm disable svc:/system/filesystem/autofs:default"

    For the record, running autofs isn't less unix like. In fact, not 
supporting autofs is seen as less unix like by many standards.

    When you "zfs set mountpoint=/export/home ion/home" you are indeed 
trying to mount ion/home on /export/home. The problem is that 
/export/home is by default the location of new home directories and has 
"stuff" in it. I recommend the following:

# svcadm disable svc:/system/filesystem/autofs:default
# mv /export/home /export/home-
# zfs set mountpoint=/export/home ion/home
# mv /export/home-/* /export/home

    Also, if you are bent on doing things via an fstab type method then 
Solaris has a vfstab file that is much like the Linux fstab in spirit. 
To control zfs filesystems this way you must set the filesystem mount 
type to "legacy" but this isn't recommended. It much nicer to keep mount 
information with the filesystem so you can migrate the filesystem 
elsewhere and not have to keep vfstab entries up to date (among other 
things.)

    ZFS != ( UFS || ReiserFS || ext2 || ... ), some things are (very) 
different, hopefully for the best.

    Finally, just as a nitpick, ZFS does not have "partitions" but 
rather "datasets". At the moment three type of datasets exist: 
filesystem, volume, snapshot. ion/home is a filesystem.

Cheers,
-Tim
_______________________________________________
gnusol-users mailing list
[email protected]
http://lists.sonic.net/mailman/listinfo/gnusol-users

Reply via email to