Deutsch   English   Français   Italiano  
<vslmnj$bemd$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: The Natural Philosopher <tnp@invalid.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Here's One - NFS - Mounting Over Share = Nada
Date: Thu, 3 Apr 2025 11:08:51 +0100
Organization: A little, after lunch
Lines: 122
Message-ID: <vslmnj$bemd$3@dont-email.me>
References: <UQ-dndQV6amaDnH6nZ2dnZfqnPednZ2d@giganews.com>
 <6ggvblxiu5.ln2@Telcontar.valinor> <vsj4l2$1jt3k$4@dont-email.me>
 <61jvblx7ff.ln2@Telcontar.valinor> <vsjqni$2bgo0$1@dont-email.me>
 <FLadnWvzcO68x3P6nZ2dnZfqnPidnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 03 Apr 2025 12:08:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dae1870449fbd4f3b93c140a1c9404ac";
	logging-data="375501"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19NM0aBwnO3/Tgc8DRJinN1fSX2xta1mFw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4jsanDM4M7ytgkId+e37zWxt3dc=
In-Reply-To: <FLadnWvzcO68x3P6nZ2dnZfqnPidnZ2d@giganews.com>
Content-Language: en-GB
Bytes: 5859

On 03/04/2025 10: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:
>>>> On 02/04/2025 11:35, Carlos E.R. wrote:
>>>>> On 2025-04-02 03:29, c186282 wrote:
>>>>>> So ... any insights on how to get NFS to
>>>>>> "see" whatever IS mounted to the share point
>>>>>> AT THE MOMENT ???
>>>>>
>>>>> Restart NFS manually after the manual mount of external media.
>>>>>
>>>>> Or, define the usb mounts in fstab, and exports. But then, you can 
>>>>> not boot without the usb media.
>>>>>
>>>> I missed the earlier part, but mount | grep nfs...shows what is mounted
>>>>
>>>> or mount | grep mount-point...
>>>>
>>>
>>> The point he syas is that when exporting 
>>> "/media/<user>/usbsomething", the clients can not see the files, only 
>>> the mount point.
>>>
>> So he is trying to export a mounted partition?
>>
>> 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.
> 
There is an insane way, using systemd to delay it.
Or you could try automounting

Or write an explicit script and run it a minute after booting

Occasionally my Laptop doesn't mount my server because the Wifi tokk too 
long to connect.


>    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.
> 
>    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.
> 
Why not put them in your fstab and explicitly mount them at boot time?

>    BUT, NFS just doesn't SEE that - only what was there
>    (nothing) a microsec after the system boots. Have NOT
>    been able to use exportfs to change that no matter
>    the params.
> 
NFS comes up after the system scans fstab

>    It's vexing - I want to use the USB cluster as NAS
>    yet this behavior is in the way. BTW there can also
>    be other, more interesting, uses to being able to
>    mount/umount/remount different USB drives and such
>    in a dynamic manner ... maybe soon.
> 
>    Have a crontab now that tries to remount the USBs
>    to the NAS folders every 5 minutes. Doesn't help.
> 
>    Anyway, not sure NFS can *do* what I need it to do.
>    It's great at sharing pre-existing pre-stuffed
>    subdirs - have security cam backups going there -
>    but so far just WON'T handle later mount statements.
> 
Sure did with me. I used to export a CD ROM drive

>    As said somewhere, have had horrible probs with SAMBA
>    in the latest distros - all the online advice and past
>    experience do NOT get around permissions issues. You
>    can see the SAMBA share is *there*, just not log on.
>    They CHANGED something recently and it's ill-documented.
>    SAMBA *can* cope with the to-the-second mounts, have
>    used it that way before, even INTERNALLY on a NAS
>    box so backup pgms would work easily.
> 
Samba is for people who run M£ or Appleshit.

Look just put them in fstab if they are permanently mounted and 
necessary for the computer to operate.

/media/bollocksface/myUSB is a temporary mount point for *removable* 
devices.

Dont fight the system. Use it the way K & R and Sun intended.

-- 
If you tell a lie big enough and keep repeating it, people will 
eventually come to believe it. The lie can be maintained only for such 
time as the State can shield the people from the political, economic 
and/or military consequences of the lie. It thus becomes vitally 
important for the State to use all of its powers to repress dissent, for 
the truth is the mortal enemy of the lie, and thus by extension, the 
truth is the greatest enemy of the State.

Joseph Goebbels