Rodney wrote:
Needing a larger swap than the default I followed the steps at:
http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#ZFS_Swap_and_Dump_Devices
and at:
http://docs.sun.com/app/docs/doc/819-5461/ggvlr?a=view
Namely:
zfs create -V 2G -b 4k rpool/swap (I've also tried just zfs create -V 2G
rpool/swap)
You should also add -o primarycache=none
pfexec swap -a /dev/zvol/dsk/rpool/swap
This works during the current session.
After a reboot this swap is no longer available.
pfexec swap -a /dev/zvol/dsk/rpool/swap gives the following error message:
/dev/zvol/dsk/rpool/swap: No such file or directory
Correct, unlike filesystems for swap you still have to update the legacy
/etc/vfstab file.
It isn't a bug but it could certainly be better. /sbin/swapadd could
look for swap volumes or libzfs could 'swap -a' them as it finds them.
The problem with that though is that today ZFS doesn't know that the
ZVOLs are used for swap and doesn't actually care.
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss