Bug #1937

vnconfig and swapfile

Added by nonsolosoft almost 4 years ago. Updated almost 4 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:thomas.nikolajsen% Done:

0%

Category:-
Target version:-

Description

Hi,

probably there is something wrong or obsolete in:
http://www.dragonflybsd.org/docs/handbook/handbook-adding-swap-space/

lap# truncate -s700M /dati/swapfile
lap# chmod 0600 /dati/swapfile
lap# vnconfig -e vn0 /dati/swapfile swap
vnconfig: swapon: Device not configured
lap# vnconfig -l
vn0: covering /dati/swapfile on ad0s2h, inode 409
vn1: not in use
vn2: not in use
vn3: not in use
lap# ls /dev/vn*
/dev/vn /dev/vn0s0 /dev/vn2
/dev/vn0 /dev/vn1 /dev/vn3
lap# swapon /dev/vn0
swapon: /dev/vn0: Device not configured
lap# swapon /dev/vn0s0
swapon: /dev/vn0s0: Device not configured

Best wishes, \ferz

History

#1 Updated by thomas.nikolajsen almost 4 years ago

The link is to the old handbook, but problem is the same in new handbook;
will update it.
For the time being vnconfig(8) can't add swap file directly;
you will have to add vn file, label and do swapon(8), e.g.:
# vnconfig -c vn0 /dati/swapfile
# disklabel -rw vn0s0 auto
# disklabel -e vn0s0 # add b: * * swap
# swapon /dev/vn0s0b

Also available in: Atom PDF