NFS mounts one disk on client a second time instead of another one, maybe linux kernel issue
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
NFS mounts one disk on client a second time instead of another one, maybe linux kernel issue
I have an odd problem concerning NFS. I run a JBOD disk array of 4 disks in a tower with ext4 file system. The disks are mounted nicely. I also use them as NFS mounted drives with two disks mounted for my whole home network as read only and all four disks mounted for my desktop pc as rw. I remember, that it worked. Though, after some time it happened that 2 disks broke (it was recertified disks) and i had to change them. I remember that i changed one disk from one slot to another. The second broken disk i replaced by a new disk of same capacity. Now, on my desktop pc, only three of the four disks mount correctly. The third mount point simply reconnects the first disk, leaving the third disk unmounted.
I have found in the internet older posts from 2012 and also later, detailing exactly this problem for NFS.
I also noted an odd thing about the disk tower. The disk tower is JBOD configured and all the management is done by my Raspberry Pi 4 4GB running Raspbian. Though, all four disks are mounted correctly on the server itself, when booting the server or reawakening the tower, the control lights of the tower for the disks switch on in a strange pattern. Disks 1-3 are cycled through several times and the light for Disk 4 is only flickering at the end. I assume that some of the kernel mount tables keep information that messes up the NFS mounts on the client, or the client keeps up some tables that are messed up. The disk tower is operated as a JBOD, so the tower itself should not store any info, being without any controller apart from some switch controlled SCSI controller.
Done that. The /etc/fstab file of the server lists the correct partition UUIDs for the four disks, also all four are nicely accessible via file explorer under their mount points on the server. /etc/exports looks like this:
What happens is that on the NFS client side of my desktop pc 192.168.1.X D01, D02, D04 are mounted correctly on their NFS mountpoints, but instead of D03 D01 is mounted on the NFS mount point of D03.
the /etc/fstab of my desktop 192.168.1.X lists the NFS disks as follows:
Done that. The /etc/fstab file of the server lists the correct partition UUIDs for the four disks, also all four are nicely accessible via file explorer under their mount points on the server. /etc/exports looks like this:
What happens is that on the NFS client side of my desktop pc 192.168.1.X D01, D02, D04 are mounted correctly on their NFS mountpoints, but instead of D03 D01 is mounted on the NFS mount point of D03.
the /etc/fstab of my desktop 192.168.1.X lists the NFS disks as follows:
Take a look at /etc/hosts on D03 - do you have hosts entries defined for D01-4?
Check output of "host D01" from D03, is it correct IP for D01?
What is output of "showmount -e" on D03? Is it correct and what you expect? Then, compare with other D0's?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.