Bug #762 » vnconfig.8.2.patch
vnconfig.8 9 Aug 2007 20:07:14 -0000 | ||
---|---|---|
option
|
||
.El
|
||
.Sh EXAMPLES
|
||
.Dl vnconfig vn0c /tmp/diskimage
|
||
.Dl vnconfig vn0 /tmp/diskimage
|
||
.Pp
|
||
Configures the vnode disk
|
||
.Pa vn0c .
|
||
.Pa vn0 .
|
||
.Pp
|
||
.Dl vnconfig -e vn0c /var/swapfile swap
|
||
.Dl vnconfig -e vn0 /var/swapfile swap
|
||
.Pp
|
||
Configures
|
||
.Pa vn0c
|
||
.Pa vn0
|
||
and enables swapping on it.
|
||
.Pp
|
||
.Dl vnconfig -c -v /dev/vn0 cdimage.iso
|
||
... | ... | |
Mount an ISO9660 CD image file.
|
||
.Pp
|
||
.Dl umount /mnt
|
||
.Dl vnconfig -u vn0c
|
||
.Dl vnconfig -u vn0
|
||
.Pp
|
||
Unmount the CD image file.
|
||
.Pp
|
||
.Dl vnconfig -d vn0c myfilesystem mount=/mnt
|
||
.Dl vnconfig -d vn0 myfilesystem mount=/mnt
|
||
.Pp
|
||
Unmounts (disables)
|
||
.Pa vn0c .
|
||
.Pa vn0 .
|
||
.Pp
|
||
.Dl vnconfig -ae
|
||
.Pp
|
||
... | ... | |
.Pa /etc/vntab .
|
||
.Pp
|
||
.Dl vnconfig -s labels -c vn0 somebackingfile
|
||
.Dl disklabel -r -w vn0 auto
|
||
.Dl disklabel -e vn0
|
||
.Dl disklabel -r -w vn0s0 auto
|
||
.Dl disklabel -e vn0s0
|
||
.Pp
|
||
Is an example of how to configure a file-backed VN disk with a disk label
|
||
and to initialize and then edit the label. Once you create the label, you
|
||
... | ... | |
VN partitions that previously contained filesystems.
|
||
.Pp
|
||
.Dl vnconfig -e -s labels,reserve -S 400m vn1
|
||
.Dl disklabel -r -w vn1 auto
|
||
.Dl newfs /dev/vn1c
|
||
.Dl mount /dev/vn1c /usr/obj
|
||
.Dl disklabel -r -w vn1s0 auto
|
||
.Dl newfs /dev/vn1s0
|
||
.Dl mount /dev/vn1s0 /usr/obj
|
||
.Pp
|
||
Is an example of a swap-backed VN disk configuration. This example assumes
|
||
that you have at least 400 megabytes of swap free (and hopefully much more).
|