Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: The Natural Philosopher Newsgroups: comp.os.linux.misc Subject: Re: Here's One - NFS - Mounting Over Share = Nada Date: Thu, 3 Apr 2025 18:08:07 +0100 Organization: A little, after lunch Lines: 105 Message-ID: References: <6ggvblxiu5.ln2@Telcontar.valinor> <61jvblx7ff.ln2@Telcontar.valinor> <68a2clxf62.ln2@Telcontar.valinor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 03 Apr 2025 19:08:09 +0200 (CEST) Injection-Info: dont-email.me; posting-host="dae1870449fbd4f3b93c140a1c9404ac"; logging-data="1193627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eQ/x+xfmpOqgm5gq1IqMiXF3oJc3TG9M=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:oYyfbHo585rR/Sp1GvcR8pMbHMc= Content-Language: en-GB In-Reply-To: On 03/04/2025 16:27, c186282 wrote: > On 4/3/25 8:07 AM, Carlos E.R. wrote: >> On 2025-04-03 11:51, c186282 wrote: >>> 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/ >>>    and I have a mount statement that mounts them in my >>>    NFS share dir, under the appropriate sub-folder. >> >> Define them in fstab. > >   For you and rbowman ... > >   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. That would be the easier way of doing it. I cant remember if NFS automatically exports mounts Ahh. You need to add the 'crossmnt' directive to the servers /etc/exports file for the whatever it is you are mounting Then it will work the way you want it to -- “Ideas are inherently conservative. They yield not to the attack of other ideas but to the massive onslaught of circumstance" - John K Galbraith