FreeBSD 9.1 and swap on zfs

Philipp Wuensche cryx-freebsd at h3q.com
Wed Apr 10 15:42:36 UTC 2013


Volodymyr Kostyrko wrote:
> 09.04.2013 15:15, Kai Gallasch:
>>> My suggestion is:
>>>
>>> if you want stability and don't have specific disk layout problems
>>> create a separate swap.
>>
>>
>> I think I'll repartition and swap to a gmirror device then.
>> This also has the advantage of being able to write kernel dumps to the
>> swap (not possible with a ZVOL bases swap AFAIK)
> 
> Be sure to use -b prefer for that as when dump is written it goes to the
> first component. Man page is a bit outdated as we currently miss
> /etc/rc.early.

And I guess you should make sure to use -F so gmirror doesn't try to
resync your invalid swap data after a crash!

greetings,
Philipp


More information about the freebsd-fs mailing list