Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2023 12:07:06 -0600
From:      Chris Watson <bsdunix44@gmail.com>
To:        freebsd-jail@freebsd.org
Subject:   I can get zfs snapshot/rollback in a jail to work 99% but it isn't quite 100% working. What am I missing?
Message-ID:  <CAHnbxSRuwGwdB0PULA4LEKTWTJw6oA6VeX_7PL4TMgAv_YS=vw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0000000000009e20d606097fb9ed
Content-Type: text/plain; charset="UTF-8"

I've been trying to get a zfs dataset delegated into a jail (to run PG on),
and allow snapshots and rollback to take place inside the jail. I can get
the dataset mounted into the jail, I can get zfs to take the snapshot, list
the snapshot, but when I rollback or try to ls -la the directory to see the
'.zfs' dir it isn't there and the zfs rollback completes but it doesn't
actually rollback. I'm so close to getting this to work! I'm just missing
*something* in the sauce. When I do the zfs rollback zfs looks like it
completes the rollback and goes back to a shell prompt but the files I
remove before the rollback are not in the /var/db/postgres/data16 directory
nor is ".zfs" shown in ls -la. So something is wonky on my end. I'm so
close, it's halfway there, it looks like it takes a snapshot, the snapshot
shows up in a zfs list -t snapshot, but it's also not really there. I'm
doing something just slightly wrong here. I just cant figure out what I
have wrong.

Below are the configs:
# The jail's config
https://bsd.to/P176
# zfs list from inside the jail
https://bsd.to/mPde
# zfs list -t snapshot from inside the jail
https://bsd.to/R8dw
# ls -la /var/db/postgres/data16 output from inside the jail
https://bsd.to/1di2
# rc.conf of the jail
https://bsd.to/JcnH

The jail is running 13.2-P4.
Using bastillebsd 0.10.20231013 for creation/management.

Thanks!
Chris

--0000000000009e20d606097fb9ed
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;ve been trying to get a zfs dataset delegated into a=
 jail (to run PG on), and allow snapshots and rollback to take place inside=
 the jail. I can get the dataset mounted into the jail, I can get zfs to ta=
ke the snapshot, list the snapshot, but when I rollback or try to ls -la th=
e directory to see the &#39;.zfs&#39; dir it isn&#39;t there and the zfs ro=
llback completes but it doesn&#39;t actually rollback. I&#39;m so close to =
getting this to work! I&#39;m just missing *something* in the sauce. When I=
 do the zfs rollback zfs looks like it completes the rollback and goes back=
 to a shell prompt but the files I remove before the rollback are not in th=
e /var/db/postgres/data16 directory nor is &quot;.zfs&quot; shown in ls -la=
. So something is wonky on my end. I&#39;m so close, it&#39;s halfway there=
, it looks like it takes a snapshot, the snapshot shows up in a zfs list -t=
 snapshot, but it&#39;s also not really there. I&#39;m doing something just=
 slightly wrong here. I just cant figure out what I have wrong.<div><br></d=
iv><div>Below are the configs:</div><div># The jail&#39;s config</div><div>=
<a href=3D"https://bsd.to/P176">https://bsd.to/P176</a></div><div># zfs lis=
t from inside the jail</div><div><a href=3D"https://bsd.to/mPde">https://bs=
d.to/mPde</a><br></div><div># zfs list -t snapshot from inside the jail</di=
v><div><a href=3D"https://bsd.to/R8dw">https://bsd.to/R8dw</a><br></div><di=
v># ls -la /var/db/postgres/data16 output from inside the jail</div><div><a=
 href=3D"https://bsd.to/1di2">https://bsd.to/1di2</a><br></div><div># rc.co=
nf of the jail</div><div><a href=3D"https://bsd.to/JcnH">https://bsd.to/Jcn=
H</a><br></div><div><br></div><div>The jail is running 13.2-P4.</div><div>U=
sing bastillebsd 0.10.20231013 for creation/management.</div><div><br></div=
><div>Thanks!</div><div>Chris</div>





</div>

--0000000000009e20d606097fb9ed--



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