StorNext Replication

StorNext Replication is still in its infancy, but its a very powerful tool. Its also a very confusing beast. Unfortunately, using the replication policies requires a great deal of knowledge on how it works from a technical standpoint, however very little of this is actually documented and available for administrators (even within the Quantum training courses). (more…)

Remote from Mac into Linux

You can use the X window system to ‘remote’ into another machine. In OS X it launches X11, as this is the X window client for Mac. What is actually happening is the remote system is sending system information to your local machine and allowing that to render the desktop and graphical views. This is opposed to the way VNC or Apple Remote Desktop works, by taking that already rendered image and compressing it down to sent it over the pipe. The ‘X -query’ tends to have better performance on remote systems because you aren’t sending full screen graphics, only remote system calls.
To do this, use the following command:

X -query I.P.Add.ress


Rsync 3.0.9 for Lion

Lion ships with the same version of rsync as panther did. Version 2.6.9 is great and all, but its a bit outdated. The newer versions of rsync allow you to do some better stuff, and along with some patches for OS X (by Mike Bombich) it is a great tool for Xsan volumes as well. (more…)

MD5 a folder

An MD5 Hash can easily be created on a file. Its a great tool to use for comparing to see if two files are the same.

md5 /path/to/file.123

This will give you a unique hash. If even a small number of bits are different in another file, the hash for that file will differ.

But getting this on a folder is a little bit trickier, you have to manipulate the info a bit more:

find /path/to/dir -type f -exec cat {} \; | md5

This uses find to access the folder and pipes it over to md5, allowing md5 to see it the same way it sees files (sorta). It will then calculate the MD5 Hash of what it sees.

I have compiled this into a small program that will create a hash file and rename it to the same name as the given folder: