Russell Aspinwall wrote:> Hi,
>
> As part of a disk subsystem upgrade I am thinking of using ZFS but there
are two issues at present
>
> 1) The current filesystems are mounted as /hostname/mountpoint
> except for one directory where the mount point is <storage
> dir>/<storage application dir>. Is is possible to mount a ZFS
> filesystem as /hostname/<storage dir>/<storage application> so
that
> /hostname/<storage dir> contains only directory <storage
> application>. Storage dir is empty apart from the <storage
> application> directory which contains all the file?
I hope I understand you correctly - if so, I see no reason why this
shouldn''t work:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
bigpool 4.11G 92.4G 21K /extra
bigpool/home 819M 92.4G 819M /export/home
bigpool/store 1.94G 92.4G 1.94G /extra/store
# ls -als /extra/
total 13
3 drwxr-xr-x 4 root sys 4 May 15 21:44 .
4 drwxr-xr-x 55 root root 1536 Jun 22 03:31 ..
3 drwxr-xr-x 2 root root 2 May 15 21:44 home
3 drwxr-xr-x 5 root sys 8 May 15 21:54 store
# zfs set mountpoint=/extra/some/more/dirs/store bigpool/store
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
bigpool 4.11G 92.4G 25K /extra
bigpool/home 819M 92.4G 819M /export/home
bigpool/store 1.94G 92.4G 1.94G /extra/some/more/dirs/store
bigpool/zones 1.37G 92.4G 20K /zones
bigpool/zones/lx 1.37G 92.4G 1.37G /zones/lx
# ls -als /extra/some/
total 9
3 drwxr-xr-x 3 root root 3 Jun 23 10:19 .
3 drwxr-xr-x 5 root sys 5 Jun 23 10:19 ..
3 drwxr-xr-x 3 root root 3 Jun 23 10:19 more
# ls -als /extra/some/more/
total 9
3 drwxr-xr-x 3 root root 3 Jun 23 10:19 .
3 drwxr-xr-x 3 root root 3 Jun 23 10:19 ..
3 drwxr-xr-x 3 root root 3 Jun 23 10:19 dirs
# ls -als /extra/some/more/dirs/
total 9
3 drwxr-xr-x 3 root root 3 Jun 23 10:19 .
3 drwxr-xr-x 3 root root 3 Jun 23 10:19 ..
3 drwxr-xr-x 5 root sys 8 May 15 21:54 store
#
HTH
michael
--
Michael Schuster Sun Microsystems, Inc.
recursion, n: see ''recursion''