From 8ccb3fd6b1b68ea889a9d2181969a6c7d7eabf45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 16 Mar 2022 18:03:56 +0100 Subject: [PATCH] man: zpool-import.8: import examples from zpool.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13228 --- man/man8/zpool-import.8 | 26 +++++++++++++++++++++++++- man/man8/zpool.8 | 1 + 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/man/man8/zpool-import.8 b/man/man8/zpool-import.8 index 39b0e17ef5..20ce41e645 100644 --- a/man/man8/zpool-import.8 +++ b/man/man8/zpool-import.8 @@ -26,7 +26,7 @@ .\" Copyright 2017 Nexenta Systems, Inc. .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. .\" -.Dd August 9, 2019 +.Dd March 16, 2022 .Dt ZPOOL-IMPORT 8 .Os . @@ -404,6 +404,30 @@ when not explicitly specified. .El .El . +.Sh EXAMPLES +.\" These are, respectively, examples 9 from zpool.8 +.\" Make sure to update them bidirectionally +.Ss Example 9 : No Importing a ZFS Storage Pool +The following command displays available pools, and then imports the pool +.Ar tank +for use on the system. +The results from this command are similar to the following: +.Bd -literal -compact -offset Ds +.No # Nm zpool Cm import + pool: tank + id: 15451357997522795478 + state: ONLINE +action: The pool can be imported using its name or numeric identifier. +config: + + tank ONLINE + mirror ONLINE + sda ONLINE + sdb ONLINE + +.No # Nm zpool Cm import Ar tank +.Ed +. .Sh SEE ALSO .Xr zpool-export 8 , .Xr zpool-list 8 , diff --git a/man/man8/zpool.8 b/man/man8/zpool.8 index e9eeaaf83d..b11c539e28 100644 --- a/man/man8/zpool.8 +++ b/man/man8/zpool.8 @@ -235,6 +235,7 @@ Invalid command line options were specified. .\" Examples 6, 15 are shared with zpool-list.8. .\" Examples 7 are shared with zpool-destroy.8. .\" Examples 8 are shared with zpool-export.8. +.\" Examples 9 are shared with zpool-import.8. .\" Make sure to update them bidirectionally .Ss Example 1 : No Creating a RAID-Z Storage Pool The following command creates a pool with a single raidz root vdev that