summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/man/man4/softraid.438
-rw-r--r--sys/arch/amd64/stand/biosboot/biosboot.816
-rw-r--r--sys/arch/amd64/stand/boot/boot.810
-rw-r--r--sys/arch/i386/stand/biosboot/biosboot.816
-rw-r--r--sys/arch/i386/stand/boot/boot.810
5 files changed, 76 insertions, 14 deletions
diff --git a/share/man/man4/softraid.4 b/share/man/man4/softraid.4
index 1b7b4244404..174a444f5ea 100644
--- a/share/man/man4/softraid.4
+++ b/share/man/man4/softraid.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: softraid.4,v 1.31 2013/03/12 14:00:57 jmc Exp $
+.\" $OpenBSD: softraid.4,v 1.32 2013/10/28 15:15:08 stsp Exp $
.\"
.\" Copyright (c) 2007 Todd T. Fries <todd@OpenBSD.org>
.\" Copyright (c) 2007 Marco Peereboom <marco@OpenBSD.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 12 2013 $
+.Dd $Mdocdate: October 28 2013 $
.Dt SOFTRAID 4
.Os
.Sh NAME
@@ -107,6 +107,21 @@ discipline.
It writes data to each chunk in sequence to provide increased capacity.
CONCAT does not provide redundancy.
.El
+.Pp
+.Xr installboot 8
+may be used to install
+.Xr boot 8
+in
+.Nm
+volume meta data to allow booting from the volume.
+Boot support is currently limited to the CRYPTO and RAID 1 disciplines
+on amd64 and i386 platforms.
+At the
+.Xr boot 8
+prompt, softraid volumes have names beginning with
+.Sq sr
+and can be booted from like a normal disk device.
+CRYPTO volumes will require a decryption passphrase or keydisk at boot time.
.Sh EXAMPLES
An example to create a 3 chunk RAID 1 from scratch is as follows:
.Pp
@@ -153,11 +168,26 @@ The RAID volume is now ready to be used as a normal disk device.
See
.Xr bioctl 8
for more information on configuration of RAID sets.
+.Pp
+Install
+.Xr boot 8
+on the RAID volume:
+.Bd -literal -offset indent
+# /usr/mdec/installboot /boot /usr/mdec/biosboot sd0
+.Ed
+.Pp
+At the
+.Xr boot 8
+prompt, load the /bsd kernel from the RAID volume:
+.Bd -literal -offset indent
+boot> boot sr0a:/bsd
+.Ed
.Sh SEE ALSO
.Xr bio 4 ,
.Xr bioctl 8 ,
.Xr disklabel 8 ,
.Xr fdisk 8 ,
+.Xr installboot 8 ,
.Xr newfs 8
.Sh HISTORY
The
@@ -178,10 +208,6 @@ This is due to the scrub functionality not being currently implemented.
.Pp
Currently there is no automated mechanism to recover from failed disks.
.Pp
-.Nm
-has boot support only for the CRYPTO and RAID 1 disciplines,
-and only on amd64 and i386 platforms.
-.Pp
Sparc hardware needs to use fstype
.Dq 4.2BSD
instead of
diff --git a/sys/arch/amd64/stand/biosboot/biosboot.8 b/sys/arch/amd64/stand/biosboot/biosboot.8
index 3999209af08..ec1bd95393f 100644
--- a/sys/arch/amd64/stand/biosboot/biosboot.8
+++ b/sys/arch/amd64/stand/biosboot/biosboot.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: biosboot.8,v 1.10 2011/12/03 23:01:21 schwarze Exp $
+.\" $OpenBSD: biosboot.8,v 1.11 2013/10/28 15:15:08 stsp Exp $
.\"
.\" Copyright (c) 2003 Tom Cosgrove <tom.cosgrove@arches-consulting.com>
.\" Copyright (c) 1997 Michael Shalayeff
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: December 3 2011 $
+.Dd $Mdocdate: October 28 2013 $
.Dt BIOSBOOT 8 amd64
.Os
.Sh NAME
@@ -54,6 +54,17 @@ inode,
the offset within this block of the inode,
and various filesystem parameters (taken from the superblock)
required to convert filesystem blocks to disk sectors.
+Usually,
+.Xr boot 8
+is loaded from the root filesystem of the boot disk.
+If the boot disk is a
+.Xr softraid 4
+volume,
+.Xr installboot 8
+arranges for a copy of
+.Xr boot 8
+to be loaded from a dedicated single-inode filesystem located within
+the volume's meta data area.
.Pp
You must re-run
.Xr installboot 8
@@ -252,6 +263,7 @@ kernel for multiprocessor machines
kernel for installation/recovery
.El
.Sh SEE ALSO
+.Xr softraid 4 ,
.Xr boot 8 ,
.Xr boot_amd64 8 ,
.Xr disklabel 8 ,
diff --git a/sys/arch/amd64/stand/boot/boot.8 b/sys/arch/amd64/stand/boot/boot.8
index fff28ac9188..c6fccb082cf 100644
--- a/sys/arch/amd64/stand/boot/boot.8
+++ b/sys/arch/amd64/stand/boot/boot.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: boot.8,v 1.20 2013/10/25 13:08:03 jmc Exp $
+.\" $OpenBSD: boot.8,v 1.21 2013/10/28 15:15:08 stsp Exp $
.\"
.\" Copyright (c) 1997-2001 Michael Shalayeff
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
-.Dd $Mdocdate: October 25 2013 $
+.Dd $Mdocdate: October 28 2013 $
.Dt BOOT 8 amd64
.Os
.Sh NAME
@@ -138,6 +138,11 @@ attempts to load the kernel executable
.Pa /bsd .
If it fails to find the kernel and no alternative kernel image has
been specified, the system will be unable to boot.
+.Pp
+.Nm
+supports booting from
+.Xr softraid 4
+RAID 1 and CRYPTO volumes.
.Sh COMMANDS
The following commands are accepted at the
.Nm
@@ -380,6 +385,7 @@ option.
.Xr gzip 1 ,
.Xr autoconf 4 ,
.Xr ddb 4 ,
+.Xr softraid 4 ,
.Xr biosboot 8 ,
.Xr boot_amd64 8 ,
.Xr boot_config 8 ,
diff --git a/sys/arch/i386/stand/biosboot/biosboot.8 b/sys/arch/i386/stand/biosboot/biosboot.8
index 679b79bc35f..b154093d068 100644
--- a/sys/arch/i386/stand/biosboot/biosboot.8
+++ b/sys/arch/i386/stand/biosboot/biosboot.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: biosboot.8,v 1.24 2011/12/03 23:01:21 schwarze Exp $
+.\" $OpenBSD: biosboot.8,v 1.25 2013/10/28 15:15:08 stsp Exp $
.\"
.\" Copyright (c) 2003 Tom Cosgrove <tom.cosgrove@arches-consulting.com>
.\" Copyright (c) 1997 Michael Shalayeff
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: December 3 2011 $
+.Dd $Mdocdate: October 28 2013 $
.Dt BIOSBOOT 8 i386
.Os
.Sh NAME
@@ -54,6 +54,17 @@ inode,
the offset within this block of the inode,
and various filesystem parameters (taken from the superblock)
required to convert filesystem blocks to disk sectors.
+Usually,
+.Xr boot 8
+is loaded from the root filesystem of the boot disk.
+If the boot disk is a
+.Xr softraid 4
+volume,
+.Xr installboot 8
+arranges for a copy of
+.Xr boot 8
+to be loaded from a dedicated single-inode filesystem located within
+the volume's meta data area.
.Pp
You must re-run
.Xr installboot 8
@@ -252,6 +263,7 @@ kernel for multiprocessor machines
kernel for installation/recovery
.El
.Sh SEE ALSO
+.Xr softraid 4 ,
.Xr boot 8 ,
.Xr boot_i386 8 ,
.Xr disklabel 8 ,
diff --git a/sys/arch/i386/stand/boot/boot.8 b/sys/arch/i386/stand/boot/boot.8
index 636d3fb9522..9cffef88dee 100644
--- a/sys/arch/i386/stand/boot/boot.8
+++ b/sys/arch/i386/stand/boot/boot.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: boot.8,v 1.57 2013/10/25 13:08:03 jmc Exp $
+.\" $OpenBSD: boot.8,v 1.58 2013/10/28 15:15:08 stsp Exp $
.\"
.\" Copyright (c) 1997-2001 Michael Shalayeff
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
-.Dd $Mdocdate: October 25 2013 $
+.Dd $Mdocdate: October 28 2013 $
.Dt BOOT 8 i386
.Os
.Sh NAME
@@ -138,6 +138,11 @@ attempts to load the kernel executable
.Pa /bsd .
If it fails to find the kernel and no alternative kernel image has
been specified, the system will be unable to boot.
+.Pp
+.Nm
+supports booting from
+.Xr softraid 4
+RAID 1 and CRYPTO volumes.
.Sh COMMANDS
The following commands are accepted at the
.Nm
@@ -380,6 +385,7 @@ option.
.Xr gzip 1 ,
.Xr autoconf 4 ,
.Xr ddb 4 ,
+.Xr softraid 4 ,
.Xr biosboot 8 ,
.Xr boot_config 8 ,
.Xr boot_i386 8 ,