NFS mounts one disk on client a second time instead of another one, maybe linux kernel issue
by Thomas Korimort from LinuxQuestions.org on (#5946Y)
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.
What could be the problem here?


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.
What could be the problem here?