zfs send tank/dana@snap1 > /iserpoool/iscsivolume_backup
Author Archives: Dave - Page 2
ZFS Send Receive Snapshot
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
enable lz4 compression on pool
zfs set compression=lz4 <dataset>
ZFS Feature Flags
zpool set feature@lz4_compress=enabled tank
New Omnios Stable!
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
Recent Comments