Recently I've installed FreeBSD 9.1 using this article: http://www.aisecure.net/2012/01/16/rootzfs/
This is not first time I installing FreeBSD on root zfs using such instruction from this site. In comparison with previous instructions this instruction has new section:
[CMD="cmd"]zfs create -V 4G zroot/swap
zfs set org.freebsd:swap=on zroot/swap
zfs set checksum=off zroot/swap[/CMD]
And I have several questions about swap on zpool.
I searched articles about zfs swap but did not find any complete and clear description..
This is not first time I installing FreeBSD on root zfs using such instruction from this site. In comparison with previous instructions this instruction has new section:
[CMD="cmd"]zfs create -V 4G zroot/swap
zfs set org.freebsd:swap=on zroot/swap
zfs set checksum=off zroot/swap[/CMD]
And I have several questions about swap on zpool.
- Is it useful to create swap on each zpool? For example I have legacy zpool where my system installed. And I import another zpool containing only my media data. Does media zpool need a swap too? Or it will be useless?
- Which size it should have. Traditional swap partitions have size computed by $YOUR_RAM*2. Does this expression suitable for zfs swap?
I searched articles about zfs swap but did not find any complete and clear description..