Re: zfsboot patch for /usr

From: Ultima <ultima1252_at_gmail.com>
Date: Thu, 10 Mar 2016 20:28:21 -0500
 No need to ignore the output of zfs list, here is an explanation of zfs
list's output, this is in the zfs man page. I think you're confusing used
with refer.

used
         The amount of space consumed by this dataset and all its
descendents.
         This is the value that is checked against this dataset's quota and
         reservation. The space used does not include this dataset's
reserva‐
         tion, but does take into account the reservations of any descendent
         datasets. The amount of space that a dataset consumes from its par‐
         ent, as well as the amount of space that are freed if this dataset
is
         recursively destroyed, is the greater of its space used and its
         reservation.

         When snapshots (see the "Snapshots" section) are created, their
space
         is initially shared between the snapshot and the file system, and
         possibly with previous snapshots. As the file system changes, space
         that was previously shared becomes unique to the snapshot, and
         counted in the snapshot's space used. Additionally, deleting snap‐
         shots can increase the amount of space unique to (and used by)
other
         snapshots.

         The amount of space used, available, or referenced does not take
into
         account pending changes. Pending changes are generally accounted
for
         within a few seconds. Committing a change to a disk using fsync(2)
or
         O_SYNC does not necessarily guarantee that the space usage informa‐
         tion is updated immediately.

available
         The amount of space available to the dataset and all its children,
         assuming that there is no other activity in the pool. Because space
         is shared within a pool, availability can be limited by any number
of
         factors, including physical pool size, quotas, reservations, or
other
         datasets within the pool.

         This property can also be referred to by its shortened column name,
         avail.

referenced
         The amount of data that is accessible by this dataset, which may or
         may not be shared with other datasets in the pool. When a snapshot
or
         clone is created, it initially references the same amount of space
as
         the file system or snapshot it was created from, since its contents
         are identical.

         This property can also be referred to by its shortened column name,
         refer.



On Thu, Mar 10, 2016 at 7:06 PM, Roger Marquis <marquis_at_roble.com> wrote:

> > You don't mkdir it, you create it as a ZFS dataset, and mark it with the
> > 'canmount=no' property, so it only exists to be a parent, not as an
> > actual dataset. This is the default in zfboot currently.
>
> Thanks to everyone for pointing this out.  I'll forget about mkdir then,
> ignore the output of 'zfs list' and get comfortable doing things the zfs
> way.
>
> Still have to tweak scripts/zfsboot to create a /var/spool subvol, a /home
> subvol in place of /usr/home and specify atime=none in the default dataset.
> At least the latter works as expected.
>
> Roger
>
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Fri Mar 11 2016 - 00:28:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC