Liste des Groupes | Revenir à col misc |
On 4/3/25 8:07 AM, Carlos E.R. wrote:That would be the easier way of doing it. I cant remember if NFS automatically exports mountsOn 2025-04-03 11:51, c186282 wrote:For you and rbowman ...On 4/2/25 1:04 PM, The Natural Philosopher wrote:>On 02/04/2025 12:18, Carlos E.R. wrote:On 2025-04-02 12:48, The Natural Philosopher wrote:
>>I always start with ...>
>
*(ro,sync,no_root_squash,no_subtree_check)
>
In /etc/exports for the least restricted export
Ok, tried your param list ... but still nada on
the later-login mounts. Exportfs adds a bunch of
other defaults to etab.
>
It's VERY annoying.
>
As best I can tell, NFS cuts in VERY early and there
is no sane way to stop/delay it. As such it ONLY sees
the original, empty, folder we are later gonna
remount the USBs to.
It is working fine for me. You need "nohide" or version 4.
>>>
Have a 4-drive external USB fixture. The drives USUALLY
come up in order, but experience sez they won't ALWAYS
do that. Depends on how quick the drives initialize,
and there's one magnetic in the mix. sda/sdb/etc may
not ALWAYS, reliably, be the same physical drives.
A Python script can more easily probe/parse info that
can individually identify, that's the next stage.
So, do not use sda/sdb. Use persistent naming.
>
>Anyway, the drives (sometimes) come up in /media/<user>>
and I have a mount statement that mounts them in my
NFS share dir, under the appropriate sub-folder.
Define them in fstab.
Here's what my boxes look like now :
. . . . .
server
/etc/exports :
/home/nas/shar 192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check)
/etc/fstab :
LABEL=ustor1 /home/nas/shar/qshar1 ext4 defaults,_netdev 0 0
LABEL=ustor2 /home/nas/shar/qshar2 ext4 defaults,_netdev 0 0
client
/etc/fstab :
192.168.0.121:/home/nas/shar /mnt/shar nfs defaults, timeo=900,retrans=5,_netdev 0 0
. . . . .
Results - ON the server you can see both of the USB drives,
so they ARE mounting where instructed. There is also a
third subfolder under /shar that's directly written to by
a script on the server box.
On the CLIENT ... you can read/write to that third folder
just fine. However the other two, the shares of the USB
drives mounted on the server to, /home/nas/shar/qshar1 and
/home/nas/shar/qshar2, are just BLANK.
All permissions, server and client, are very generous
for testing purposes - could restrict a bit later.
MAY try sharing each folder under /shar individually
rather that trying to share just /shar and hoping
everything under it gets carried over - which it doesn't.
Les messages affichés proviennent d'usenet.