The documentation on adding file based swap space is incorrect
Step 5 is incorrect. The command
# vnconfig -e /dev/vn0b /usr/swap0 swap
Does not seem to work because /dev/vn0b doesn't exist.
# vnconfig -e /dev/vn0 /usr/swap0 swap
Does work. This was done on 5.2 after following the first 4 steps.
Updated by dillon over 1 year ago
- Status changed from New to Closed
That document is pretty old. I'll do a few passes on the whole thing. The swapfile section itself is completely obsolete. We don't recommend assigning swap to a file. It really has to be assigned to a physical partition on a real storage device, otherwise the kernel can deadlock pretty easily in a low-memory situation.