Date: Fri, 15 Jul 2022 11:17:55 -0500 From: "Zane C. B-H" <v.velox@vvelox.net> To: Alan Somers <asomers@freebsd.org> Cc: Oleg Ginzburg <olevole@olevole.ru>, freebsd-fs <fs@freebsd.org> Subject: Re: ZFS dataset stats Message-ID: <8b398b92ba4aece1b52841f6cc267b33@vvelox.net> In-Reply-To: <CAOtMX2gimmL82xO-9qxMtiZBONBsHaU%2BWD9zQU4C2R_fzJE-uw@mail.gmail.com> References: <42b403fd492b631ad14e97b7e8a9778f@vvelox.net> <CAMsb%2BmYJ2Nwd1UCYPrs2RVsSNnaKKGH_u0KVH11M4Qm12RGRvQ@mail.gmail.com> <a5ad538d0ae5d1ef2e4a0458f4517ae4@vvelox.net> <CAOtMX2gimmL82xO-9qxMtiZBONBsHaU%2BWD9zQU4C2R_fzJE-uw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ahh! Sorry. 12.3-STABLE stable/12-n234444-680eb3fd094 Hmm, looks like it has not bad it back to 12 yet. That said need to look at updating this all to 13 any ways. On 2022-07-15 11:14, Alan Somers wrote: > You still haven't told us what version of FreeBSD you're using, but I > think you're running into this issue, already fixed: > https://github.com/openzfs/zfs/pull/12097 > > On Fri, Jul 15, 2022 at 10:08 AM Zane C. B-H <v.velox@vvelox.net> > wrote: >> >> Testing with changing it over one one of the VMs and that fails. >> >> zfs set volmode=geom storage/debian11-1/dsk1.vhd >> >> Even after that ztop and gstat show nothing. >> >> On 2022-07-15 08:14, Oleg Ginzburg wrote: >> > On Fri, Jul 15, 2022 at 8:05 AM Zane C. B-H <v.velox@vvelox.net> >> > wrote: >> > >> >> So was just looking and for some reason nread etc for the ZFS >> >> storage >> >> stats. >> >> >> >> Below is a example of a ZFS dataset being used by CBSD to store a >> >> raw >> >> disk image, >> >> one that is running currently, but for some reasonn the R/W stats >> >> don't >> >> seem actually update. >> >> >> >> kstat.zfs.storage.dataset.objset-0x1d41.nread: 0 >> >> kstat.zfs.storage.dataset.objset-0x1d41.reads: 0 >> >> kstat.zfs.storage.dataset.objset-0x1d41.nwritten: 0 >> >> kstat.zfs.storage.dataset.objset-0x1d41.writes: 0 >> >> kstat.zfs.storage.dataset.objset-0x1d41.dataset_name: >> >> storage/debian10_test/dsk1.vhd >> >> >> >> Is there any way to get ZFS to actually keep these up to date for >> >> use >> >> cases >> >> like this? >> > >> > Try to switch default ZFS volmode properties in CBSD from 'dev' to >> > 'full' ( defaults: >> > https://github.com/cbsd/cbsd/blob/develop/etc/defaults/zfs.conf ), >> > e.g: >> > >> > cat > ~cbsd/etc/zfs.conf <<EOF >> > default_ci_zvol_volmode="geom" >> > default_vm_zvol_volmode="geom" >> > volmode="geom" >> > EOF >> > >> > in this case, new VMs will be created in a 'geom' mode: >> > >> > # cbsd bcreate jname=vm1 vm_os_type=linux >> > vm_os_profile=CentOS-7-x86_64 vm_ram=1g vm_cpus=1 runasap=1 >> > imgsize=10g >> > >> > # zfs get volmode | grep dsk >> > jails/mybbuilder130/dsk1.vhd >> > volmode default default >> > jails/pxe1/dsk1.vhd >> > volmode dev local >> > jails/ubvdi1/dsk1.vhd >> > volmode default default >> > jails/vm1/dsk1.vhd >> > volmode full local >> > jails/windows1/dsk1.vhd >> > volmode default default >> > >> > if you are using cloud/gold images, you may have to delete and get >> > them again >>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8b398b92ba4aece1b52841f6cc267b33>