Author Archives: Dave - Page 2

ZFS Send Receive Snapshot

List Snapshots ZFS

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

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

To do this we create a key:

Follow the bouncing ball filling in all the details.

Then sign your JAR file with the following:

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

ZFS Get all parameters of zpool

enable lz4 compression on pool

ZFS Feature Flags

New Omnios Stable!

Upgrade from 004 -> 006 here:

RPOOL Mirror

we need to fdisk the partition of the second drive with:

pfexec fdisk -B c13t1d1s0

Copy label from the original rpool member

pfexec prtvtoc /dev/rdsk/c13t1d0s0 | pfexec fmthard -s - /dev/rdsk/c13t1d1s0

Attach mirror drive to the pool

zpool attach -f rpool c13t1d0s0 c13t1d1s0

Install grub on the second drive.

installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c13t1d1s0