]> git.proxmox.com Git - mirror_zfs.git/commitdiff
man: zpool-import.8: import examples from zpool.8
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Wed, 16 Mar 2022 17:03:56 +0000 (18:03 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Mar 2022 17:13:13 +0000 (10:13 -0700)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228

man/man8/zpool-import.8
man/man8/zpool.8

index 39b0e17ef586d27c8e5d94c709d37c816f68eeaa..20ce41e6459be8ae90d93b7777a4d5a513659c92 100644 (file)
@@ -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 ,
index e9eeaaf83d5c79f55379ae8ed3ce8159d8f3e027..b11c539e28a4a54855e3e40c4ecaf13bea94a843 100644 (file)
@@ -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