Project

General

Profile

Bug #762 » vnconfig.8.2.patch

thomas.nikolajsen, 08/09/2007 09:48 PM

View differences:

vnconfig.8 9 Aug 2007 20:07:14 -0000
213 213
option
214 214
.El
215 215
.Sh EXAMPLES
216
.Dl vnconfig vn0c /tmp/diskimage
216
.Dl vnconfig vn0 /tmp/diskimage
217 217
.Pp
218 218
Configures the vnode disk
219
.Pa vn0c .
219
.Pa vn0 .
220 220
.Pp
221
.Dl vnconfig -e vn0c /var/swapfile swap
221
.Dl vnconfig -e vn0 /var/swapfile swap
222 222
.Pp
223 223
Configures
224
.Pa vn0c
224
.Pa vn0
225 225
and enables swapping on it.
226 226
.Pp
227 227
.Dl vnconfig -c -v /dev/vn0 cdimage.iso
......
230 230
Mount an ISO9660 CD image file.
231 231
.Pp
232 232
.Dl umount /mnt
233
.Dl vnconfig -u vn0c
233
.Dl vnconfig -u vn0
234 234
.Pp
235 235
Unmount the CD image file.
236 236
.Pp
237
.Dl vnconfig -d vn0c myfilesystem mount=/mnt
237
.Dl vnconfig -d vn0 myfilesystem mount=/mnt
238 238
.Pp
239 239
Unmounts (disables)
240
.Pa vn0c .
240
.Pa vn0 .
241 241
.Pp
242 242
.Dl vnconfig -ae
243 243
.Pp
......
245 245
.Pa /etc/vntab .
246 246
.Pp
247 247
.Dl vnconfig -s labels -c vn0 somebackingfile
248
.Dl disklabel -r -w vn0 auto
249
.Dl disklabel -e vn0
248
.Dl disklabel -r -w vn0s0 auto
249
.Dl disklabel -e vn0s0
250 250
.Pp
251 251
Is an example of how to configure a file-backed VN disk with a disk label
252 252
and to initialize and then edit the label.  Once you create the label, you
......
258 258
VN partitions that previously contained filesystems.
259 259
.Pp
260 260
.Dl vnconfig -e -s labels,reserve -S 400m vn1
261
.Dl disklabel -r -w vn1 auto
262
.Dl newfs /dev/vn1c
263
.Dl mount /dev/vn1c /usr/obj
261
.Dl disklabel -r -w vn1s0 auto
262
.Dl newfs /dev/vn1s0
263
.Dl mount /dev/vn1s0 /usr/obj
264 264
.Pp
265 265
Is an example of a swap-backed VN disk configuration.  This example assumes
266 266
that you have at least 400 megabytes of swap free (and hopefully much more).
(4-4/11)