Hello KrautOS. Here's some of my setup info, please let me know if you need more details. Thanks.
vmhost:
vSphere 5.5
vmmachine (nfs-server):
>uname -a
Linux xxx 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
>pvdisplay
--- Physical volume ---
PV Name /dev/md0
VG Name RaidVG
PV Size 3.63 TiB / not usable 4.81 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 951549
Free PE 0
Allocated PE 951549
PV UUID EIJ1f2-N30Y-TRRk-dkW7-qtqC-MgIx-UXyx4n
>vgdisplay
--- Volume group ---
VG Name RaidVG
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.63 TiB
PE Size 4.00 MiB
Total PE 951549
Alloc PE / Size 951549 / 3.63 TiB
Free PE / Size 0 / 0
VG UUID vfKSY2-RbHq-ZXih-EGXD-JCYw-IKEq-7J2DZZ
>lvdisplay
--- Logical volume ---
LV Path /dev/RaidVG/NFSLV
LV Name NFSLV
VG Name RaidVG
LV UUID Ykdggh-D769-sQmp-ilzL-1bpL-a8eF-MEOvqw
LV Write Access read/write
LV Creation host, time nfs-server, 2014-03-02 12:54:24 -0700
LV Status available
# open 1
LV Size 3.63 TiB
Current LE 951549
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
>/etc/fstab
/dev/mapper/RaidVG-NFSLV /srv/nfs ext4 defaults 0 2
/srv/nfs /srv/nfs ecryptfs defaults 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
>package versions (amd64):
mdadm 3.2.5-5ubuntu2
lvm2 2.02.98-6ubuntu1
ecryptfs 103-0ubuntu2
nfs-kernel-server 1:1.2.8-2ubuntu2
>/etc/exports
/srv/nfs 192.168.2.0/25(secure,rw,sync,wdelay,hide,no_subtree_check,secure_locks)
>exportfs
/srv/nfs 192.168.2.0/25
>syslog
kernel: [ 14.559732] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
kernel: [ 14.584691] NFSD: starting 90-second grace period (net ffffffff81cd2dc0)
rpc.mountd[1209]: Version 1.2.8 starting
nfs-client:
>/etc/fstab
nfs-server:/srv/nfs /mnt/nfs nfs4 rsize=8192,wsize=8192,timeo=14,intr 0 0
>package versions
nfs-common 1:1.2.5-3ubuntu3.1
>sudo showmount -e nfs-server
Export list for nfs-server:
/srv/nfs 192.168.2.0/25
>sudo mount /mnt/nfs
mount.nfs4: mounting nfs-server:/srv/nfs failed, reason given by server:
No such file or directory
> nfs-server syslog
nfs-server rpc.mountd[1209]: qword_eol: fprintf failed: errno 22 (Invalid argument)
nfs-server rpc.mountd[1209]: Cannot export /srv/nfs, possibly unsupported filesystem or fsid= required
I have done numerous tests including mounting non-encrypted, non-root directories successfully. After all the tests my only conclusion was that it was due to the fact the directory I was trying to export is encrypted. Also I've verified encryption in that directory works properly. Only NFS won't work. I've tried SSHFS and SAMBA successfully.
Hello KrautOS. Here's some of my setup info, please let me know if you need more details. Thanks.
vmhost:
vSphere 5.5
vmmachine (nfs-server): N30Y-TRRk- dkW7-qtqC- MgIx-UXyx4n RbHq-ZXih- EGXD-JCYw- IKEq-7J2DZZ D769-sQmp- ilzL-1bpL- a8eF-MEOvqw RaidVG- NFSLV /srv/nfs ext4 defaults 0 2 cryptswap1 none swap sw 0 0 2.0/25( secure, rw,sync, wdelay, hide,no_ subtree_ check,secure_ locks) nfs/v4recovery as the NFSv4 state recovery directory
>uname -a
Linux xxx 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
>pvdisplay
--- Physical volume ---
PV Name /dev/md0
VG Name RaidVG
PV Size 3.63 TiB / not usable 4.81 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 951549
Free PE 0
Allocated PE 951549
PV UUID EIJ1f2-
>vgdisplay
--- Volume group ---
VG Name RaidVG
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.63 TiB
PE Size 4.00 MiB
Total PE 951549
Alloc PE / Size 951549 / 3.63 TiB
Free PE / Size 0 / 0
VG UUID vfKSY2-
>lvdisplay
--- Logical volume ---
LV Path /dev/RaidVG/NFSLV
LV Name NFSLV
VG Name RaidVG
LV UUID Ykdggh-
LV Write Access read/write
LV Creation host, time nfs-server, 2014-03-02 12:54:24 -0700
LV Status available
# open 1
LV Size 3.63 TiB
Current LE 951549
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
>/etc/fstab
/dev/mapper/
/srv/nfs /srv/nfs ecryptfs defaults 0 0
/dev/mapper/
>package versions (amd64):
mdadm 3.2.5-5ubuntu2
lvm2 2.02.98-6ubuntu1
ecryptfs 103-0ubuntu2
nfs-kernel-server 1:1.2.8-2ubuntu2
>/etc/exports
/srv/nfs 192.168.
>exportfs
/srv/nfs 192.168.2.0/25
>syslog
kernel: [ 14.559732] NFSD: Using /var/lib/
kernel: [ 14.584691] NFSD: starting 90-second grace period (net ffffffff81cd2dc0)
rpc.mountd[1209]: Version 1.2.8 starting
nfs-client: wsize=8192, timeo=14, intr 0 0
>/etc/fstab
nfs-server:/srv/nfs /mnt/nfs nfs4 rsize=8192,
>package versions
nfs-common 1:1.2.5-3ubuntu3.1
>sudo showmount -e nfs-server
Export list for nfs-server:
/srv/nfs 192.168.2.0/25
>sudo mount /mnt/nfs
mount.nfs4: mounting nfs-server:/srv/nfs failed, reason given by server:
No such file or directory
> nfs-server syslog
nfs-server rpc.mountd[1209]: qword_eol: fprintf failed: errno 22 (Invalid argument)
nfs-server rpc.mountd[1209]: Cannot export /srv/nfs, possibly unsupported filesystem or fsid= required
I have done numerous tests including mounting non-encrypted, non-root directories successfully. After all the tests my only conclusion was that it was due to the fact the directory I was trying to export is encrypted. Also I've verified encryption in that directory works properly. Only NFS won't work. I've tried SSHFS and SAMBA successfully.
Any feedback is appreciated, thank you!