Zdb

opensolaris - increase swap

I found this on opensolaris forums…. A nice way to increase your swap without the need for a reboot.

First check your current swap size and details;

swap -lh

or

zfs list

Then create a temp swap zfs store and delete and increase swap

zfs create -V rpool/swp

swap -a /dev/zvol/dsk/rpool/swp

swap -d /dev/zvol/dsk/rpool/swap

zfs destroy rpool/swap

zfs create -V rpool/swap

swap -a /dev/zvol/dsk/rpool/swap

swap -d /dev/zvol/dsk/rpool/swp

zfs destroy rpool/swp

Opensolaris - ZFS recovery after kernel panic

Recently i hit what i thought was a huge disaster with my ZFS array. Essentially i was unable to import my zpool without causing the kernel to panic and reboot. Still unsure of the exact reason, but it didn’t seem to be due to a hardware fault. (zpool import showed all disks as ONLINE)

When i tried to import with zpool import -f tank the machine would lockup and reboot (panic).