summaryrefslogtreecommitdiff
path: root/sbin/disklabel
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-09-04 08:06:41 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-09-04 08:06:41 +0000
commiteccd2573a55a7d4f055abd7198602bfc50dea755 (patch)
tree11660a164e956cb6b65551ff16af1a8da9360990 /sbin/disklabel
parente2f1ee93e8e5d5a6eb5bb3298c9b14c1dc8a1c61 (diff)
Document disklabel(8) -T's new RAID template
OK jmc
Diffstat (limited to 'sbin/disklabel')
-rw-r--r--sbin/disklabel/disklabel.820
1 files changed, 15 insertions, 5 deletions
diff --git a/sbin/disklabel/disklabel.8 b/sbin/disklabel/disklabel.8
index ec864a7cbd1..b9ca7ec3b3b 100644
--- a/sbin/disklabel/disklabel.8
+++ b/sbin/disklabel/disklabel.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: disklabel.8,v 1.148 2022/07/31 14:29:19 krw Exp $
+.\" $OpenBSD: disklabel.8,v 1.149 2022/09/04 08:06:40 kn Exp $
.\" $NetBSD: disklabel.8,v 1.9 1995/03/18 14:54:38 cgd Exp $
.\"
.\" Copyright (c) 1987, 1988, 1991, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)disklabel.8 8.2 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: July 31 2022 $
+.Dd $Mdocdate: September 4 2022 $
.Dt DISKLABEL 8
.Os
.Sh NAME
@@ -538,11 +538,11 @@ A template for the automatic allocation can be passed to disklabel using
the
.Fl T
option.
-The template consists of one line per partition, with each line giving
+The template consists of one line per partition, each giving partition type or
mount point, min-max size range, and percentage of disk, space-separated.
Max can be unlimited by specifying '*'.
-If only mount point and min size are given, the partition is created with that
-exact size.
+If max size and percentage of disk are omitted, the partition is
+created with the exact min size.
.Bd -literal -offset indent
/ 250M
swap 80M-256M 10%
@@ -555,6 +555,15 @@ swap 80M-256M 10%
/usr/obj 1.3G-2G 4%
/home 1G-* 45%
.Ed
+.Pp
+The partition type
+.Dq RAID
+denotes partitions suitable as
+.Xr softraid 4
+chunks.
+.Bd -literal -offset indent
+RAID 1M-* 100%
+.Ed
.Sh FILES
.Bl -tag -width Pa -compact
.It Pa /etc/disktab
@@ -597,6 +606,7 @@ setting the label on the new partition while shrinking the
.Sq a
partition.
.Sh SEE ALSO
+.Xr softraid 4 ,
.Xr disklabel 5 ,
.Xr disktab 5 ,
.Xr installboot 8 ,