Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
If you want to add a swapfile, perhaps you should read swap files
first. This article deals with adding a additional swapfile after adding your first
swapfile. So if you already have a swap file (and I'm not talking about a swap
partition), and you want to add another, then this is the article for you.
Out of swap space again
I need yet more swap. So I went and created a new swap file:
# dd if=/dev/zero of=/usr2/swapfile bs=15m count=20
10+0 records in
20+0 records out
314572800 bytes transferred in 40.594 secs (387462 bytes/sec)
Note that the above should have give you a 300Mb file (bs=15m, count=20 or 15Mx20 =
Creating a new device
Before we can use this swapfile, we need to create a new vnconfig
device. Here's how I did that:
# cd /dev
# ./MAKEDEV vn1
Telling vnconfig about the new swapfile
Before I started this article, my /etc/vntab contained this:
/dev/vn0c /usr4/swapfile swap
After adding the new device, here's what the config file looked like: