docs/51897: Add example for disklable for md devices
Marc Fonvieille
blackend at FreeBSD.org
Wed May 7 07:34:06 UTC 2003
On Tue, May 06, 2003 at 05:10:06PM -0700, Simon L. Nielsen wrote:
[...]
>
> %%%
> Index: mdconfig.8
> ===================================================================
> RCS file: /home/ncvs/src/sbin/mdconfig/mdconfig.8,v
> retrieving revision 1.19
> diff -u -d -r1.19 mdconfig.8
> --- mdconfig.8 27 Apr 2003 01:46:56 -0000 1.19
> +++ mdconfig.8 6 May 2003 23:54:40 -0000
> @@ -164,6 +164,18 @@
> mount /dev/md10 /tmp
> chmod 1777 /tmp
> .Ed
> +.Pp
> +To create a 10MB memory disk named
> +.Pa /dev/md0
> +with the file
> +.Pa somebackingfile
> +as backing and label it with normal partitions:
> +.Bd -literal -offset indent
> +dd if=/dev/zero of=somebackingfile bs=1k count=10k
> +mdconfig -a -t vnode -f somebackingfile -u 0
> +disklabel -w md0
We shoould be consistent with other docs (Handbook etc..) i.e.
disklabel -r -w md0 auto
Marc
More information about the freebsd-doc
mailing list