Execute script on boot

ln -s /etc/init.d/<filename> /etc/rc3.d/S<XX><filename>

don’t forget to set the correct permissions on your script, i like 4755 for these types of scripts

ZFS Destroy Snapshot

zfs destroy tank/volume@snapshot_name

ZFS Snapshot

zfs snapshot tank/iscsivol@snapshot_name

ZFS Send Incremental Snapshot

zfs send -i tank/iscsivol@snap1 tank/iscsivol@snap2 > /iserpool/iscsivol_backup

ZFS Send Receive Snapshot

zfs send tank/dana@snap1 > /iserpoool/iscsivolume_backup

List Snapshots ZFS

zfs list -r -t snapshot -o name,creation tank/
zfs list -t snapshot

Unsign, resign and update .JAR manfests

A .jar file is simply a .zip with a funky extension. Rename the .jar to .zip and unzip the file.

CD into the META-INF dir and delete everything EXCEPT the manifest file.

Edit the Manifest file and remove all the SHA hashes (probably not necessary)

Once this has been done, rezip the file

zip -r yourjarfilename.jar *

Now we need to sign the jar. (Make sure you have the latest JDK installed)

To do this we create a key:

/usr/java/jdk1.7.0_21/bin/keytool -genkey -alias xenvncviewer -validity 365

Follow the bouncing ball filling in all the details.

Then sign your JAR file with the following:

/usr/java/jdk1.7.0_21/bin/jarsigner xenvncviewer.jar xenvncviewer

That is it!

Update Grub Omnios

I got caught out trying to update the grub menu in omnios, i foolishly tried to update menu.lst located in /boot/grub

In omnios, you need to edit the menu.lst file located in /rpool/boot/grub/

Add repo OMNIOS

for netperf say


pkg set-publisher -g http://pkg.cs.umd.edu/ cs.umd.edu

pkg install network/netperf

ZFS Get all parameters of zpool

zfs get all tank