Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2022 15:37:55 -0600
From:      Larry Rosenman <ler@lerctr.org>
To:        Rick Macklem <rick.macklem@gmail.com>
Cc:        Freebsd fs <freebsd-fs@freebsd.org>
Subject:   Re: NFSv4.2: One share not automounting
Message-ID:  <32fbd19648313962fa64d99896382a0e@lerctr.org>
In-Reply-To: <CAM5tNy5_7k99Wj7OOFNjfEGxqdj97b5oDzSTvtGCr7223Crh7w@mail.gmail.com>
References:  <74b67036bfd95d1ec831f265c1712e31@lerctr.org> <CAM5tNy6gzJR=AHWRWUcZ8yDrznVtsOW1QkP4idKFemc5bfUR-Q@mail.gmail.com> <ff76d27e8d1574633a740679a45d25cb@lerctr.org> <CAM5tNy5_7k99Wj7OOFNjfEGxqdj97b5oDzSTvtGCr7223Crh7w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=_e76da9c965e2cbbad314b83976c7753f
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8;
 format=flowed



yes. just a subdirectory of /:

❯ df /vault/backup
Filesystem                       Size    Used   Avail Capacity  Mounted 
on
zroot/ROOT/14-2022_11_23-0001    7.8T    3.4G    7.8T     0%    /

ler in 🌐 borg in ~ via C v14.0.5-clang on ☁️  (us-east-1)
❯

and I did mention what version:
This has been happening for a while.  FreeBSD 14-CURRENT as of Tue Nov
22 23:59:16 CST 2022

❯ uname -a
FreeBSD borg.lerctr.org [1] 14.0-CURRENT FreeBSD 14.0-CURRENT #29
ler/freebsd-main-changes-n259398-496d4d928269: Tue Nov 22 23:59:16 CST
2022
root@borg.lerctr.org:/usr/obj/usr/src/amd64.amd64/sys/LER-MINIMAL amd64

On 11/23/2022 3:33 pm, Rick Macklem wrote:

> On Wed, Nov 23, 2022 at 8:41 AM Larry Rosenman <ler@lerctr.org> wrote:
> 
>> /vault/backup is just a directory local on the client.
> 
> And /vault/backup/TBH is just a subdirectory of that file system?
> 
> I vaguely recall a PR that looked like this, where there were
> nullfs mounts and I twiddled things so that "late" could be used,
> but that might only be for FreeBSD 14/current. I can't recall if
> the changes were MFC'd. You did not mention what version of
> FreeBSD you were using.
> 
> rick
> 
> Late causes other issues with both mounts and the rest of the boot 
> sequence.
> 
> On 11/23/2022 8:59 am, Rick Macklem wrote:
> 
> On Tue, Nov 22, 2022 at 10:25 PM Larry Rosenman <ler@lerctr.org> wrote: 
> CAUTION: This email originated from outside of the University of 
> Guelph. Do not click links or open attachments unless you recognize the 
> sender and know the content is safe. If in doubt, forward suspicious 
> emails to IThelp@uoguelph.ca
> 
> I have the following 2 entries in /etc/fstab:
> #########
> freenas.lerctr.org:/mnt/data/TBH    /vault/backup/TBH    nfs
> rw,nfsv4,minorversion=2,nconnect=8 0 0
> freenas.lerctr.org:/mnt/data/BACULA /vault/backup/BACULA nfs
> rw,nfsv4,minorversion=2,nconnect=8 0 0
> 
> the top one (ending in /TBH) doesn't mount at boot, but if I do a 
> manual
> mount, it's fine.
> Is /vault/backup a mount point on the client?
> (You didn't show the rest of your /etc/fstab.)
> If so, it might be a timing thing w.r.t. when /vault/backup
> gets mounted.
> 
> You could try the "late" mount option, to see if that helps.
> 
> Other than that, I cannot think why the first one would not work.
> 
> rick
> ps: Normally NFSv4 mounts a tree of file systems on the server and,
> as such, a single mount to a server is used, but doing multiple
> mounts should work.
> How can I get data to diagnose this issue?
> 
> This has been happening for a while.  FreeBSD 14-CURRENT as of Tue Nov
> 22 23:59:16 CST 2022
> 
> ❯ uname -a
> FreeBSD borg.lerctr.org [1] 14.0-CURRENT FreeBSD 14.0-CURRENT #29
> ler/freebsd-main-changes-n259398-496d4d928269: Tue Nov 22 23:59:16 CST
> 2022
> root@borg.lerctr.org:/usr/obj/usr/src/amd64.amd64/sys/LER-MINIMAL amd64
> 
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
> US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106


Links:
------
[1] http://borg.lerctr.org
--=_e76da9c965e2cbbad314b83976c7753f
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Arial,Helve=
tica,sans-serif'>
<p>yes. just a subdirectory of /:</p>
<div><span>=E2=9D=AF df /vault/backup</span></div>
<div><span>Filesystem&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp;Size&nbsp; &nbsp; Used&nbsp; &nbsp;Avail Capac=
ity&nbsp; Mounted on</span></div>
<div><span>zroot/ROOT/14-2022_11_23-0001&nbsp; &nbsp; 7.8T&nbsp; &nbsp; 3.4=
G&nbsp; &nbsp; 7.8T&nbsp; &nbsp; &nbsp;0%&nbsp; &nbsp; /</span></div>
<div><span>&nbsp;</span></div>
<div><span>ler in =F0=9F=8C=90 borg in ~ via C v14.0.5-clang on =E2=98=81=
=EF=B8=8F&nbsp; (us-east-1)</span></div>
<div><span>=E2=9D=AF</span></div>
<div>&nbsp;</div>
<div><span>and I did mention what version:<br />This has been happening for=
 a while.&nbsp; FreeBSD 14-CURRENT as of Tue Nov <br />22 23:59:16 CST 2022=
<br /><br />=E2=9D=AF uname -a<br />FreeBSD <a href=3D"http://borg.lerctr.o=
rg" target=3D"_blank" rel=3D"noopener noreferrer">borg.lerctr.org</a> 14.0-=
CURRENT FreeBSD 14.0-CURRENT #29 <br />ler/freebsd-main-changes-n259398-496=
d4d928269: Tue Nov 22 23:59:16 CST <br />2022&nbsp; &nbsp; &nbsp;<br />root=
@borg.lerctr.org:/usr/obj/usr/src/amd64.amd64/sys/LER-MINIMAL amd64<br /></=
span></div>
<p><br /></p>
<p><br /></p>
<p id=3D"reply-intro">On 11/23/2022 3:33 pm, Rick Macklem wrote:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"ltr">
<div dir=3D"ltr">
<div class=3D"v1gmail_default" style=3D"font-family: monospace;">&nbsp;</di=
v>
</div>
<br />
<div class=3D"v1gmail_quote">
<div class=3D"v1gmail_attr" dir=3D"ltr">On Wed, Nov 23, 2022 at 8:41 AM Lar=
ry Rosenman &lt;<a href=3D"mailto:ler@lerctr.org" rel=3D"noreferrer">ler@le=
rctr.org</a>&gt; wrote:</div>
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left: 1px solid #cccccc; padding-left: 1ex;">
<div style=3D"font-size: 10pt; font-family: Arial,Helvetica,sans-serif;">
<p>/vault/backup is just a directory local on the client.</p>
</div>
</blockquote>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">And =
/vault/backup/TBH is just a subdirectory of that file system?</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">&nbs=
p;</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">I va=
guely recall a PR that looked like this, where there were</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">null=
fs mounts and I twiddled things so that "late" could be used,</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">but =
that might only be for FreeBSD 14/current. I can't recall if</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">the =
changes were MFC'd. You did not mention what version of</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">Free=
BSD you were using.</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">&nbs=
p;</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;">rick=
</span></div>
<div><span class=3D"v1gmail_default" style=3D"font-family: monospace;"></sp=
an>&nbsp;</div>
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left: 1px solid #cccccc; padding-left: 1ex;">
<div style=3D"font-size: 10pt; font-family: Arial,Helvetica,sans-serif;">
<p>Late causes other issues with both mounts and the rest of the boot seque=
nce.</p>
<p id=3D"v1m_-7645031319104391568reply-intro">On 11/23/2022 8:59 am, Rick M=
acklem wrote:</p>
<blockquote style=3D"padding: 0px 0.4em; border-left: 2px solid #1010ff; ma=
rgin: 0px;">
<div id=3D"v1m_-7645031319104391568replybody1">
<div dir=3D"ltr">
<div dir=3D"ltr">
<div style=3D"font-family: monospace;">&nbsp;</div>
</div>
<br />
<div>
<div dir=3D"ltr">On Tue, Nov 22, 2022 at 10:25 PM Larry Rosenman &lt;<a hre=
f=3D"mailto:ler@lerctr.org" rel=3D"noreferrer">ler@lerctr.org</a>&gt; wrote=
:</div>
<blockquote style=3D"margin: 0px 0px 0px 0.8ex; border-left: 1px solid #ccc=
ccc; padding-left: 1ex;">CAUTION: This email originated from outside of the=
 University of Guelph. Do not click links or open attachments unless you re=
cognize the sender and know the content is safe. If in doubt, forward suspi=
cious emails to <a href=3D"mailto:IThelp@uoguelph.ca" rel=3D"noreferrer">IT=
help@uoguelph.ca</a><br /><br /><br />I have the following 2 entries in /et=
c/fstab:<br />#########<br />freenas.lerctr.org:/mnt/data/TBH&nbsp; &nbsp; =
/vault/backup/TBH&nbsp; &nbsp; nfs <br />rw,nfsv4,minorversion=3D2,nconnect=
=3D8 0 0<br />freenas.lerctr.org:/mnt/data/BACULA /vault/backup/BACULA nfs =
<br />rw,nfsv4,minorversion=3D2,nconnect=3D8 0 0<br /><br />the top one (en=
ding in /TBH) doesn't mount at boot, but if I do a manual <br />mount, it's=
 fine.</blockquote>
<div><span style=3D"font-family: monospace;">Is /vault/backup a mount point=
 on the client?</span></div>
<div><span style=3D"font-family: monospace;">(You didn't show the rest of y=
our /etc/fstab.)</span></div>
<div><span style=3D"font-family: monospace;">If so, it might be a timing th=
ing w.r.t. when /vault/backup</span></div>
<div><span style=3D"font-family: monospace;">gets mounted.</span></div>
<div><span style=3D"font-family: monospace;">&nbsp;</span></div>
<div><span style=3D"font-family: monospace;">You could try the "late" mount=
 option, to see if that helps.</span></div>
<div><span style=3D"font-family: monospace;">&nbsp;</span></div>
<div><span style=3D"font-family: monospace;">Other than that, I cannot thin=
k why the first one would not work.</span></div>
<div><span style=3D"font-family: monospace;">&nbsp;</span></div>
<div><span style=3D"font-family: monospace;">rick</span></div>
<div><span style=3D"font-family: monospace;">ps: Normally NFSv4 mounts a tr=
ee of file systems on the server and,</span></div>
<div><span style=3D"font-family: monospace;">&nbsp; &nbsp; as such, a singl=
e mount to a server is used, but doing multiple</span></div>
<div><span style=3D"font-family: monospace;">&nbsp; &nbsp; mounts should wo=
rk.</span></div>
<div><span style=3D"font-family: monospace;"></span>&nbsp;</div>
<blockquote style=3D"margin: 0px 0px 0px 0.8ex; border-left: 1px solid #ccc=
ccc; padding-left: 1ex;">How can I get data to diagnose this issue?<br /><b=
r />This has been happening for a while.&nbsp; FreeBSD 14-CURRENT as of Tue=
 Nov <br />22 23:59:16 CST 2022<br /><br />=E2=9D=AF uname -a<br />FreeBSD =
<a href=3D"http://borg.lerctr.org" target=3D"_blank" rel=3D"noopener norefe=
rrer">borg.lerctr.org</a> 14.0-CURRENT FreeBSD 14.0-CURRENT #29 <br />ler/f=
reebsd-main-changes-n259398-496d4d928269: Tue Nov 22 23:59:16 CST <br />202=
2&nbsp; &nbsp; &nbsp;<br />root@borg.lerctr.org:/usr/obj/usr/src/amd64.amd6=
4/sys/LER-MINIMAL amd64<br /><br /><br /><br />-- <br />Larry Rosenman&nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a h=
ref=3D"http://www.lerctr.org/~ler" target=3D"_blank" rel=3D"noopener norefe=
rrer">http://www.lerctr.org/~ler</a><br />Phone: +1 214-642-9640&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;E-Mail: <a href=3D"mailt=
o:ler@lerctr.org" rel=3D"noreferrer">ler@lerctr.org</a><br />US Mail: 5708 =
Sabbia Dr, Round Rock, TX 78665-2106<br /><br /></blockquote>
</div>
</div>
</div>
</blockquote>
<p><br /></p>
<div id=3D"v1m_-7645031319104391568signature">
<div style=3D"margin: 0px; padding: 0px; font-family: monospace;"><span>--&=
nbsp;<br />Larry Rosenman &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; <a href=3D"http://www.lerctr.org/~ler" target=3D"_blan=
k" rel=3D"noopener noreferrer">http://www.lerctr.org/~ler</a><br />Phone: +=
1 214-642-9640 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; E-Ma=
il: <a href=3D"mailto:ler@lerctr.org" rel=3D"noreferrer">ler@lerctr.org</a>=
<br />US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106<br /></span></div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<p><br /></p>
<div id=3D"signature">
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
<span class=3D"sig">--&nbsp;<br />Larry Rosenman &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href=3D"http://www.lerctr.or=
g/~ler" target=3D"_blank" rel=3D"noopener noreferrer">http://www.lerctr.org=
/~ler</a><br />Phone: +1 214-642-9640 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; E-Mail: <a href=3D"mailto:ler@lerctr.org">ler@lerctr.org=
</a><br />US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106<br /></span></=
div>
</div>
</body></html>

--=_e76da9c965e2cbbad314b83976c7753f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32fbd19648313962fa64d99896382a0e>