This is not going to be a full review, but more a general take on things.
Since moving from VMware Server to ESXi to host my virtual machines, I’ve been very interested in looking into some more of the advanced features of ESX and ESXi yet most of these require iSCSI. I remember from a few years back using Openfiler to do some simple samba file sharing, and remembered it supported iSCSI as one method of giving out storage.
Now, I’ve yet to use any of the features of ESX that require iSCSI, or even setup Openfiler to export storage via iSCSI, but I have been using it for simple file sharing and must say I’m quite impressed.
Setup is a breeze, taking about 20 minutes on an older PC. Management is done almost entirely through a web interface, that is very easy to use. Unlink many of the other appliance packages out there, the web interface is very simple and straight forward. Very much impressed with that.
Over the next few months I’ll be exploring Openfiler much more, and hopefully getting into some of it’s more advanced features including interface bonding, md devices and clustering. I plan to keep updating as things more along.
Find Text and Find/Replace Easier Than You Think in Linux
How to search all files for a text string:
-lwill print only the path and file names of the matches.Search all files of a certain name for a certain string:
Yes, do specify ./ if you are doing all directories within current.
(source and more info)
Find an replace a string in files:
Searching for a way to do this usually leads me to finding fancy scripts that don’t work right, are scary (create temp files, etc) or aren’t recursive. Just have backups at hand and test the following combination of
findandsedbefore unleashing it, because it works great! You can test it by replacingsedwithgrepfind ./ -type f -exec sed -i ’s/string1/string2/’ {} \;Within specific file names/extentions…
find ./ -iname \*.htm\* -exec sed -i 's/\-2005/\-2007/g' {} \;Don’t forget to use escape \ as seen above. And if your strings contain forward slash / just use a different delimiter such as pipe | or escape it.
You can also install rpl, as shown in the source pdf, for even cleaner line of code for executing your find and replace.
(source and more info) A nice pdf to keep by your side.