nfs server serving ... wrong mount?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have 2 overlayfs monts.

I can nfs export one or the other fine, but not both at the same time,
the client gets the wrong files.

server hosthame negk bullseye ext4
client twist ubuntu

juser@negk:~$ cat /etc/exports
# /srv/nfs/rpi/buster/boot/merged *(ro,sync,no_subtree_check,no_root_squash)
/srv/nfs/rpi/buster/root/merged *(ro,sync,no_subtree_check,no_root_squash)

juser@negk:~$ ls /srv/nfs/rpi/buster/boot/merged
bcm2708-rpi-b.dtb       bcm2710-rpi-3-b-plus.dtb  fixup4cd.dat
kernel7.img       start4.elf
(snip)

juser@negk:~$ ls /srv/nfs/rpi/buster/root/merged
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc
root  run  sbin  srv  sys  tmp  usr  var

carl@twist:~/mnt$ sudo mount -t nfs negk:/srv/nfs/rpi/buster/root/merged nfs
carl@twist:~/mnt$ ls nfs
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc
root  run  sbin  srv  sys  tmp  usr  var
carl@twist:~/mnt$ sudo umount nfs

# enable root in negk exports...

carl@twist:~/mnt$ sudo mount -t nfs negk:/srv/nfs/rpi/buster/root/merged nfs
carl@twist:~/mnt$ ls nfs
bcm2708-rpi-b.dtb       bcm2710-rpi-3-b-plus.dtb  fixup4cd.dat
kernel7.img       start4.elf
(snip)


juser@negk:~$ cat /etc/fstab
# /etc/fstab: static file system information.

/dev/mapper/negk--vg-root /               ext4    errors=remount-ro 0       1
UUID=c031c4a4-3eda-4fb9-99ac-ce2cb9d05243 /boot           ext2
defaults        0       2
/dev/mapper/negk--vg-swap_1 none            swap    sw              0       0

# rpi netboot boot: base, setup, updates = merged
overlay   /srv/nfs/rpi/buster/boot/merged    overlay
noauto,defaults,lowerdir=/srv/nfs/rpi/buster/boot/setup:/srv/nfs/rpi/buster/boot/base,upperdir=/srv/nfs/rpi/buster/boot/updates,workdir=/srv/nfs/rpi/buster/boot/work,nfs_export=on
   0   2

# rpi netboot root: base, setup, updates = merged
overlay   /srv/nfs/rpi/buster/root/merged    overlay
noauto,defaults,lowerdir=/srv/nfs/rpi/buster/root/setup:/srv/nfs/rpi/buster/root/base,upperdir=/srv/nfs/rpi/buster/root/updates,workdir=/srv/nfs/rpi/buster/root/work,nfs_export=on
  0   2

server setup: https://github.com/CarlFK/pici/blob/main/setup2.sh

-- 
Carl K



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux