From nobody Mon Nov 06 18:07:06 2023 X-Original-To: freebsd-jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SPK7Z6BG1z50VGQ for ; Mon, 6 Nov 2023 18:07:22 +0000 (UTC) (envelope-from bsdunix44@gmail.com) Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SPK7Y482Kz4Vtj for ; Mon, 6 Nov 2023 18:07:21 +0000 (UTC) (envelope-from bsdunix44@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=V737mxBe; spf=pass (mx1.freebsd.org: domain of bsdunix44@gmail.com designates 2607:f8b0:4864:20::42a as permitted sender) smtp.mailfrom=bsdunix44@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6b7f0170d7bso4800544b3a.2 for ; Mon, 06 Nov 2023 10:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699294040; x=1699898840; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=049FcUs4APxs0gSi3uF6FYS1s9TTnAhFzS0LeWQWwSw=; b=V737mxBegXnFpArfqctTJOKwxtldpWkIKHLRKEjlBSo15xVMPGbU1XYd1ni9iUZV/U jHC8g4MT/MemR4NZ3V3hrHADwXu6jOAO65Cpdf2np25MGTJQ2Y5PzXmZTzjPwOlOeYv3 71aDgESsqODylq25rKsKwdR2P5SwemKBOa1Uo/oYAjWR6eg0r7xdUr5mqC7JnsKsWnIU bcoK7naJR5dFd6VR+QaduZAjbdEaJ5v9X94I07M+pUIzxEcRxomI1oSco719JEVPxtpx MTCNrct0AW3N5NM94Vq6CcutnNrO9ccRg9i76WT+YumjCUiwYw8md6B6+JnWw/SYfCwX s8/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699294040; x=1699898840; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=049FcUs4APxs0gSi3uF6FYS1s9TTnAhFzS0LeWQWwSw=; b=tOt6NpNzR95quF1SARR4gRmsy7blHht55mKX9T/UfMtWGoYJkvXjDhsTQZQBOG5HE7 rJ4iIG6kQ6SldT/6yxo3Y7UykKJN0F753UjMIfFmYTITOLs2LkB8SJjMaTYT6O2rJZ6G DwMve7+dySeoFDr3ngrsKyRXAzrUXm6qOzzIoP+guCPNWBiUUbfQLFxpiJ2qPWteh7GP O8gSJHwpCcDxiP+Ardwr6baJWvbo91IbjLyZgK4LxT/N8BHpMw7hcx8EYH8jp6ilfcmR jF1C1zNL17j7/SMiE5L8kgmVcAz7gpIkCNo7WPaznFDJAObt43AUeJNgTxBeD1D0EMXa xplw== X-Gm-Message-State: AOJu0YwKutduK+qzNEucj9hww7uR7TOUxDA8FY9l0diVkTII1i6CsNf1 zoW0+MIzANFH+SwTyG5hLSNhn8OdKgrmNs69LKjDHIgbACTgbg== X-Google-Smtp-Source: AGHT+IGn8abV4dL9PoJIbs4sybXMX/txJCOcyn3WOZHUqFA7tAZ0g5jW8PTDcBbGDl4RyiteVBjJgGa+WK55ItuLOcg= X-Received: by 2002:a05:6a00:114c:b0:6be:59f:5172 with SMTP id b12-20020a056a00114c00b006be059f5172mr34740713pfm.19.1699294039906; Mon, 06 Nov 2023 10:07:19 -0800 (PST) List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 From: Chris Watson Date: Mon, 6 Nov 2023 12:07:06 -0600 Message-ID: Subject: I can get zfs snapshot/rollback in a jail to work 99% but it isn't quite 100% working. What am I missing? To: freebsd-jail@freebsd.org Content-Type: multipart/alternative; boundary="0000000000009e20d606097fb9ed" X-Spamd-Result: default: False [0.57 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_SPAM_MEDIUM(1.00)[0.997]; NEURAL_SPAM_LONG(0.57)[0.571]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-jail@freebsd.org]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::42a:from]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-jail@freebsd.org] X-Rspamd-Queue-Id: 4SPK7Y482Kz4Vtj X-Spamd-Bar: / --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
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 ta= ke the snapshot, list the snapshot, but when I rollback or try to ls -la th= e directory to see the '.zfs' dir it isn't there and the zfs ro= llback 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 th= e /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
# zfs lis= t from inside the jail
# zfs list -t snapshot from inside the jail# ls -la /var/db/postgres/data16 output from inside the jail
https://bsd.to/1di2
# rc.co= nf of the jail

The jail is running 13.2-P4.
U= sing bastillebsd 0.10.20231013 for creation/management.

Thanks!
Chris
--0000000000009e20d606097fb9ed--