:: Re: [DNG] ZFS NFS
Top Pagina
Delete this message
Reply to this message
Auteur: Jackman
Datum:  
Aan: dng
CC: DNG
Onderwerp: Re: [DNG] ZFS NFS
Okay, so I set up a basic NFS share to make sure that NFS was working. Some
things are showing more reasonable output. For example:

➜  ~ showmount -e localhost
Export list for localhost:
/srv/nfs-test 10.0.0.0/8
/srv/media    10.0.0.0/8


'/srv/nfs-test' is the plain NFS export for testing:

➜ ~ cat /etc/exports
/srv/nfs-test 10.0.0.0/8(rw)

I am now suddenly able to mount on the remote host both the test NFS export
and the ZFS NFS export.

Yay! Thanks for your help!

Andrew Jackman
kd7nyq@???


On Thu, Feb 11, 2021 at 1:46 PM Jackman <kd7nyq@???> wrote:

> ➜  ~ zfs sharenfs=on tank
> ➜  ~ showmount -e
> clnt_create: RPC: Program not registered
> ➜  ~ exportfs
> /mnt/zfs        10.0.0.0/8
> /tank           <world>
> /srv/media      <world>
> ➜  ~ zfs share -a
> ➜  ~ showmount -e
> clnt_create: RPC: Program not registered

>
> On my client PC, I get this message:
> dorito :: ~ » sudo mount -t nfs 10.1.0.100:/srv/media /mnt/fs0
>
>
>       32 ↵
> mount.nfs: requested NFS version or transport protocol is not supported

>
> BTW, I'm using the contrib packages. I'm going to try backports next.
>
> Andrew Jackman
> kd7nyq@???
>
>
> On Thu, Feb 11, 2021 at 1:34 PM dng@??? <dng@???> wrote:
>
>> On 11-02-2021 16:31, Jackman via Dng wrote:
>>
>> I searched the mailing list archives, and I didn't find anything
>> obviously relating to ZFS, so I apologize if this is redundant.
>>
>> I successfully created a ZFS filesystem, which I'm really excited about.
>> I followed the steps in the Debian documentation, here:
>>
>> https://wiki.debian.org/ZFS
>>
>> ➜  ~ zpool list -v
>> NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
>> tank  2.72T  1.01T  1.70T         -     0%    37%  1.00x  ONLINE  -
>>   mirror  2.72T  1.01T  1.70T         -     0%    37%
>>     ata-Hitachi_HUA723030ALA641_YVG8GB7A      -      -      -         -
>>    -      -
>>     ata-Hitachi_HUA723030ALA641_YHKRZLSD      -      -      -         -
>>    -      -

>>
>> ➜  ~ zfs list
>> NAME         USED  AVAIL  REFER  MOUNTPOINT
>> tank        1.01T  1.62T    24K  /tank
>> tank/data   1.01T  1.62T  1.01T  /mnt/zfs
>> tank/media    24K  1.62T    24K  /srv/media

>>
>> The problem I'm having is on executing commands such as the following:
>>
>> ➜ ~ zfs set sharenfs="on" tank/media
>> ➜ ~ zfs share tank/media
>> ➜ ~ showmount -e localhost
>> clnt_create: RPC: Program not registered
>>
>> According to the documentation, that last 'showmount' command should tell
>> me that I have successfully exported an NFS share of my ZFS volume.
>>
>> Fumbling around, I tried restarting the NFS-related services:
>>
>> ➜ ~ service nfs-common restart
>> [ ok ] Stopping NFS common utilities: idmapd statd.
>> [ ok ] Starting NFS common utilities: statd idmapd.
>> ➜ ~ service nfs-kernel-server restart
>> [ ok ] Stopping NFS kernel daemon: mountd nfsd.
>> [ ok ] Unexporting directories for NFS kernel daemon....
>> [warn] Not starting NFS kernel daemon: no exports. ... (warning).
>>
>> Still, I'm not showing anything with 'showmount':
>>
>> ➜ ~ showmount -e localhost
>> clnt_create: RPC: Program not registered
>>
>> I'm just not sure where to go from here. According to everything I've
>> read, it sounds like NFS sharing via ZFS tooling makes everything pretty
>> much automatic. I shouldn't have to modify my exports file or any other
>> ordinary NFS-specific configuration.
>>
>> Any help would be appreciated. I'd be willing to put a reasonable amount
>> into someone's preferred-vice fund in exchange. Thank you!
>>
>> Andrew Jackman
>> kd7nyq@???
>>
>>
>> Did you try
>>
>>     zfs sharenfs=on tank

>>
>>
>> and
>>
>>     showmount -e

>>
>> or
>>
>>     exportfs

>>
>> and if both don't work
>>
>>     zfs share -a

>>
>>
>> Grtz
>>
>> Nick
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>>
>