From a448a2557ec4938ed6944c7766fe0b8e6e5f6456 Mon Sep 17 00:00:00 2001 From: Serapheim Dimitropoulos Date: Mon, 20 Aug 2018 09:52:37 -0700 Subject: Introduce read/write kstats per dataset The following patch introduces a few statistics on reads and writes grouped by dataset. These statistics are implemented as kstats (backed by aggregate sums for performance) and can be retrieved by using the dataset objset ID number. The motivation for this change is to provide some preliminary analytics on dataset usage/performance. Reviewed-by: Richard Elling Reviewed-by: Brian Behlendorf Reviewed by: Matthew Ahrens Signed-off-by: Serapheim Dimitropoulos Closes #7705 --- man/man8/zfs.8 | 10 ++++++++++ man/man8/zpool.8 | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index 02141da71..d21966c3d 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -718,6 +718,16 @@ This property can be either .Sy yes or .Sy no . +.It Sy objsetid +A unique identifier for this dataset within the pool. Unlike the dataset's +.Sy guid +, the +.Sy objsetid +of a dataset is not transferred to other pools when the snapshot is copied +with a send/receive operation. +The +.Sy objsetid +can be reused (for a new datatset) after the dataset is deleted. .It Sy origin For cloned file systems or volumes, the snapshot from which the clone was created. diff --git a/man/man8/zpool.8 b/man/man8/zpool.8 index b3196399d..44ee116f3 100644 --- a/man/man8/zpool.8 +++ b/man/man8/zpool.8 @@ -20,7 +20,7 @@ .\" .\" .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. -.\" Copyright (c) 2012, 2017 by Delphix. All rights reserved. +.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved. .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved. .\" Copyright (c) 2017 Datto Inc. .\" Copyright (c) 2018 George Melikov. All Rights Reserved. @@ -562,6 +562,15 @@ Health can be one of .Sy ONLINE , DEGRADED , FAULTED , OFFLINE, REMOVED , UNAVAIL . .It Sy guid A unique identifier for the pool. +.It Sy load_guid +A unique identifier for the pool. +Unlike the +.Sy guid +property, this identifier is generated every time we load the pool (e.g. does +not persist across imports/exports) and never changes while the pool is loaded +(even if a +.Sy reguid +operation takes place). .It Sy size Total size of the storage pool. .It Sy unsupported@ Ns Em feature_guid -- cgit v1.2.3