Date: Wed, 23 Nov 2022 13:33:52 -0800 From: Rick Macklem <rick.macklem@gmail.com> To: Larry Rosenman <ler@lerctr.org> Cc: Freebsd fs <freebsd-fs@freebsd.org> Subject: Re: NFSv4.2: One share not automounting Message-ID: <CAM5tNy5_7k99Wj7OOFNjfEGxqdj97b5oDzSTvtGCr7223Crh7w@mail.gmail.com> In-Reply-To: <ff76d27e8d1574633a740679a45d25cb@lerctr.org> References: <74b67036bfd95d1ec831f265c1712e31@lerctr.org> <CAM5tNy6gzJR=AHWRWUcZ8yDrznVtsOW1QkP4idKFemc5bfUR-Q@mail.gmail.com> <ff76d27e8d1574633a740679a45d25cb@lerctr.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000001e66d805ee2a0ce6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 an= d > 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=3D2,nconnect=3D8 0 0 > freenas.lerctr.org:/mnt/data/BACULA /vault/backup/BACULA nfs > rw,nfsv4,minorversion=3D2,nconnect=3D8 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 > > =E2=9D=AF uname -a > FreeBSD borg.lerctr.org 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 > --0000000000001e66d805ee2a0ce6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><br></div></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Wed, Nov 23, 2022 at 8:41 AM Larry Rosenma= n <<a href=3D"mailto:ler@lerctr.org">ler@lerctr.org</a>> wrote:<br></= div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor= der-left:1px solid rgb(204,204,204);padding-left:1ex"><div style=3D"font-si= ze:10pt;font-family:Arial,Helvetica,sans-serif"> <p>/vault/backup is just a directory local on the client.</p></div></blockq= uote><div><span class=3D"gmail_default" style=3D"font-family:monospace">And= /vault/backup/TBH is just a subdirectory of that file system?</span></div>= <div><span class=3D"gmail_default" style=3D"font-family:monospace"><br></sp= an></div><div><span class=3D"gmail_default" style=3D"font-family:monospace"= >I vaguely recall a PR that looked like this, where there were</span></div>= <div><span class=3D"gmail_default" style=3D"font-family:monospace">nullfs m= ounts and I twiddled things so that "late" could be used,</span><= /div><div><span class=3D"gmail_default" style=3D"font-family:monospace">but= that might only be for FreeBSD 14/current. I can't recall if</span></d= iv><div><span class=3D"gmail_default" style=3D"font-family:monospace">the c= hanges were MFC'd. You did not mention what version of</span></div><div= ><span class=3D"gmail_default" style=3D"font-family:monospace">FreeBSD you = were using.</span></div><div><span class=3D"gmail_default" style=3D"font-fa= mily:monospace"><br></span></div><div><span class=3D"gmail_default" style= =3D"font-family:monospace">rick</span></div><div><span class=3D"gmail_defau= lt" style=3D"font-family:monospace"></span>=C2=A0</div><blockquote class=3D= "gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(2= 04,204,204);padding-left:1ex"><div style=3D"font-size:10pt;font-family:Aria= l,Helvetica,sans-serif"> <p>Late causes other issues with both mounts and the rest of the boot seque= nce.</p> <p id=3D"m_-7645031319104391568reply-intro">On 11/23/2022 8:59 am, Rick Mac= klem wrote:</p> <blockquote type=3D"cite" style=3D"padding:0px 0.4em;border-left:2px solid = rgb(16,16,255);margin:0px"> <div id=3D"m_-7645031319104391568replybody1"> <div dir=3D"ltr"> <div dir=3D"ltr"> <div style=3D"font-family:monospace">=C2=A0</div> </div> <br> <div> <div dir=3D"ltr">On Tue, Nov 22, 2022 at 10:25 PM Larry Rosenman <<a hre= f=3D"mailto:ler@lerctr.org" rel=3D"noreferrer" target=3D"_blank">ler@lerctr= .org</a>> wrote:</div> <blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex">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 su= spicious emails to <a href=3D"mailto:IThelp@uoguelph.ca" rel=3D"noreferrer"= target=3D"_blank">IThelp@uoguelph.ca</a><br><br><br>I have the following 2= entries in /etc/fstab:<br>#########<br>freenas.lerctr.org:/mnt/data/TBH=C2= =A0 =C2=A0 /vault/backup/TBH=C2=A0 =C2=A0 nfs <br>rw,nfsv4,minorversion=3D2= ,nconnect=3D8 0 0<br>freenas.lerctr.org:/mnt/data/BACULA /vault/backup/BACU= LA nfs <br>rw,nfsv4,minorversion=3D2,nconnect=3D8 0 0<br><br>the top one (e= nding in /TBH) doesn't mount at boot, but if I do a manual <br>mount, i= t's fine.</blockquote> <div><span style=3D"font-family:monospace">Is /vault/backup a mount point o= n the client?</span></div> <div><span style=3D"font-family:monospace">(You didn't show the rest of= your /etc/fstab.)</span></div> <div><span style=3D"font-family:monospace">If so, it might be a timing thin= g 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">=C2=A0</span></div> <div><span style=3D"font-family:monospace">You could try the "late&quo= t; mount option, to see if that helps.</span></div> <div><span style=3D"font-family:monospace">=C2=A0</span></div> <div><span style=3D"font-family:monospace">Other than that, I cannot think = why the first one would not work.</span></div> <div><span style=3D"font-family:monospace">=C2=A0</span></div> <div><span style=3D"font-family:monospace">rick</span></div> <div><span style=3D"font-family:monospace">ps: Normally NFSv4 mounts a tree= of file systems on the server and,</span></div> <div><span style=3D"font-family:monospace">=C2=A0 =C2=A0 as such, a single = mount to a server is used, but doing multiple</span></div> <div><span style=3D"font-family:monospace">=C2=A0 =C2=A0 mounts should work= .</span></div> <div><span style=3D"font-family:monospace"></span>=C2=A0</div> <blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex">How can I get data to diagnose this issue?<br><= br>This has been happening for a while.=C2=A0 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" rel=3D"noopener noreferrer" target=3D"_blank">b= org.lerctr.org</a> 14.0-CURRENT FreeBSD 14.0-CURRENT #29 <br>ler/freebsd-ma= in-changes-n259398-496d4d928269: Tue Nov 22 23:59:16 CST <br>2022=C2=A0 =C2= =A0 =C2=A0<br>root@borg.lerctr.org:/usr/obj/usr/src/amd64.amd64/sys/LER-MIN= IMAL amd64<br><br><br><br>-- <br>Larry Rosenman=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"http://www.lerct= r.org/~ler" rel=3D"noopener noreferrer" target=3D"_blank">http://www.lerctr= .org/~ler</a><br>Phone: +1 214-642-9640=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0E-Mail: <a href=3D"mailto:ler@lerctr.org" rel=3D= "noreferrer" target=3D"_blank">ler@lerctr.org</a><br>US Mail: 5708 Sabbia D= r, Round Rock, TX 78665-2106<br><br></blockquote> </div> </div> </div> </blockquote> <p><br></p> <div id=3D"m_-7645031319104391568signature"> <div style=3D"margin:0px;padding:0px;font-family:monospace"><span>--=C2=A0<= br>Larry Rosenman =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 <a href=3D"http://www.lerctr.org/~ler" rel=3D"noopener norefe= rrer" target=3D"_blank">http://www.lerctr.org/~ler</a><br>Phone: +1 214-642= -9640 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 E-Mail: <a hr= ef=3D"mailto:ler@lerctr.org" target=3D"_blank">ler@lerctr.org</a><br>US Mai= l: 5708 Sabbia Dr, Round Rock, TX 78665-2106<br></span></div> </div> </div> </blockquote></div></div> --0000000000001e66d805ee2a0ce6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM5tNy5_7k99Wj7OOFNjfEGxqdj97b5oDzSTvtGCr7223Crh7w>