aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2017-05-26 12:02:14 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-05-26 12:02:14 +0000
commit9df2d6f729b7642daf9a1d5d3d610959ba894c3d (patch)
tree0340378e7b358827e3f557a2501104fdc27e265d /man
parentab57ddbb4337cad12982d17a57c06787ba280f17 (diff)
downloadsrc-9df2d6f729b7642daf9a1d5d3d610959ba894c3d.tar.gz
src-9df2d6f729b7642daf9a1d5d3d610959ba894c3d.zip
7446 zpool create should support efi system partition
illumos/illumos-gate@7855d95b30fd903e3918bad5a29b777e765db821 https://github.com/illumos/illumos-gate/commit/7855d95b30fd903e3918bad5a29b777e765db821 https://www.illumos.org/issues/7446 Since we support whole-disk configuration for boot pool, we also will need whole disk support with UEFI boot and for this, zpool create should create efi- system partition. I have borrowed the idea from oracle solaris, and introducing zpool create - B switch to provide an way to specify that boot partition should be created. However, there is still an question, how big should the system partition be. For time being, I have set default size 256MB (thats minimum size for FAT32 with 4k blocks). To support custom size, the set on creation "bootsize" property is created and so the custom size can be set as: zpool create B - o bootsize=34MB rpool c0t0d0 After pool is created, the "bootsize" property is read only. When -B switch is not used, the bootsize defaults to 0 and is shown in zpool get output with value ''. Older zfs/zpool implementations are ignoring this property. https://www.illumos.org/rb/r/219/ Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Yuri Pankov <yuri.pankov@gmail.com> Approved by: Dan McDonald <danmcd@kebe.com> Author: Toomas Soome <tsoome@me.com>
Notes
Notes: svn path=/vendor-sys/illumos/dist/; revision=318941
Diffstat (limited to 'man')
-rw-r--r--man/man1m/zpool.1m20
1 files changed, 19 insertions, 1 deletions
diff --git a/man/man1m/zpool.1m b/man/man1m/zpool.1m
index 04cac897e9b2..da923aa174a9 100644
--- a/man/man1m/zpool.1m
+++ b/man/man1m/zpool.1m
@@ -23,7 +23,7 @@
.\" Copyright (c) 2013 by Delphix. All rights reserved.
.\" Copyright 2016 Nexenta Systems, Inc.
.\"
-.Dd March 30, 2016
+.Dd Oct 2, 2016
.Dt ZPOOL 1M
.Os
.Sh NAME
@@ -47,6 +47,7 @@
.Nm
.Cm create
.Op Fl dfn
+.Op Fl B
.Op Fl m Ar mountpoint
.Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
.Oo Fl O Ar file-system-property Ns = Ns Ar value Oc Ns ...
@@ -430,6 +431,12 @@ The following are read-only properties:
Amount of storage available within the pool. This property can also be referred
to by its shortened column name,
.Sy avail .
+.It Sy bootsize
+The size of the system boot partition. This property can only be set at pool
+creation time and is read-only once pool is created. Setting this property
+implies using the
+.Fl B
+option.
.It Sy capacity
Percentage of pool space used. This property can also be referred to by its
shortened column name,
@@ -708,6 +715,7 @@ those errors associated with the specified device or devices are cleared.
.Nm
.Cm create
.Op Fl dfn
+.Op Fl B
.Op Fl m Ar mountpoint
.Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
.Oo Fl O Ar file-system-property Ns = Ns Ar value Oc Ns ...
@@ -766,6 +774,16 @@ By default all supported features are enabled on the new pool unless the
.Fl d
option is specified.
.Bl -tag -width Ds
+.It Fl B
+Create whole disk pool with EFI System partition to support booting system
+with UEFI firmware. Default size is 256MB. To create boot partition with
+custom size, set the
+.Sy bootsize
+property with the
+.Fl o
+option. See the
+.Sx Properties
+section for details.
.It Fl d
Do not enable any features on the new pool. Individual features can be enabled
by setting their corresponding properties to