diff options
author | pjd <pjd@FreeBSD.org> | 2006-03-08 08:50:52 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-03-08 08:50:52 +0000 |
commit | 65255e20ba3e7d2b2183114095a1f69094a020c6 (patch) | |
tree | 311f51f3970cac354e4797aed5d5a5c4a66ce01e | |
parent | 1c595687a8848b43bbbe289321caa315bc8fc740 (diff) | |
download | FreeBSD-src-65255e20ba3e7d2b2183114095a1f69094a020c6.zip FreeBSD-src-65255e20ba3e7d2b2183114095a1f69094a020c6.tar.gz |
Add some notes how to properly dump kernel onto gmirror provider.
Reviewed and corrected by: brueffer
MFC after: 3 days
-rw-r--r-- | sbin/geom/class/mirror/gmirror.8 | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/sbin/geom/class/mirror/gmirror.8 b/sbin/geom/class/mirror/gmirror.8 index 1c021ef..8feb316 100644 --- a/sbin/geom/class/mirror/gmirror.8 +++ b/sbin/geom/class/mirror/gmirror.8 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 9, 2004 +.Dd March 8, 2006 .Dt GMIRROR 8 .Os .Sh NAME @@ -282,11 +282,52 @@ gmirror deactivate data da1 dd if=/dev/da1 of=/backup/data.img bs=1m gmirror activate data da1 .Ed +.Sh NOTES +Doing kernel dumps to +.Nm +providers. +.Pp +This is possible, but some conditions have to be met. +First of all, a kernel dump will go only to one component and +.Nm +always chooses the component with the highest priority. +Reading a dump from the mirror on boot will only work if the prefer +balance algorithm is used (that way +.Nm +will read only from the component with the highest priority). +If you use a different balance algorithm, you should add: +.Bd -literal -offset indent +gmirror configure -b prefer data +.Ed +.Pp +to the +.Pa /etc/rc.early +script and: +.Bd -literal -offset indent +gmirror configure -b round-robin data +.Ed +.Pp +to the +.Pa /etc/rc.local +script. +The decision which component to choose for dumping is made when +.Xr dumpon 8 +is called. +If on the next boot a component with a higher priority will be available, +the prefer algorithm will choose to read from it and +.Xr savecore 8 +will find nothing. +If on the next boot a component with the highest priority will be synchronized, +the prefer balance algorithm will read from the next one, thus will find nothing +there. +.Ed .Sh SEE ALSO .Xr geom 4 , +.Xr dumpon 8 , .Xr geom 8 , .Xr mount 8 , .Xr newfs 8 , +.Xr savecore 8 , .Xr umount 8 , .Xr vinum 8 .Sh HISTORY |