The softraid(4) example could also use echo 'raid 1m-* 100%' | disklabel -wAT/dev/stdin wd1
but that's not as clear as echo 'RAID 1M-* 100%' > template disklabel -wAT template wd1 Feedback? OK? Index: sbin/disklabel/disklabel.8 =================================================================== RCS file: /cvs/src/sbin/disklabel/disklabel.8,v retrieving revision 1.148 diff -u -p -r1.148 disklabel.8 --- sbin/disklabel/disklabel.8 31 Jul 2022 14:29:19 -0000 1.148 +++ sbin/disklabel/disklabel.8 3 Sep 2022 14:23:47 -0000 @@ -538,11 +538,11 @@ A template for the automatic allocation 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 w .Sq a partition. .Sh SEE ALSO +.Xr softraid 4 , .Xr disklabel 5 , .Xr disktab 5 , .Xr installboot 8 , Index: share/man/man4/softraid.4 =================================================================== RCS file: /cvs/src/share/man/man4/softraid.4,v retrieving revision 1.48 diff -u -p -r1.48 softraid.4 --- share/man/man4/softraid.4 13 Aug 2022 11:13:17 -0000 1.48 +++ share/man/man4/softraid.4 3 Sep 2022 14:05:22 -0000 @@ -183,9 +183,10 @@ Initialize the partition tables of all d .Pp Now create RAID partitions on all disks: .Bd -literal -offset indent -# printf "a\en\en\en\enRAID\enw\enq\en" | disklabel -E wd1 -# printf "a\en\en\en\enRAID\enw\enq\en" | disklabel -E wd2 -# printf "a\en\en\en\enRAID\enw\enq\en" | disklabel -E wd3 +$ echo 'RAID 1M-* 100%' > template +# disklabel -wAT template wd1 +# disklabel -wAT template wd2 +# disklabel -wAT template wd3 .Ed .Pp Assemble the RAID volume: