Downloading Packages: (1/5): kmod-iscsitarget-2 100% |=========================| 37 kB 00:00 (2/5): kmod-iscsitarget-0 100% |=========================| 4.3 kB 00:00 (3/5): kernel-2.6.25.14-6 100% |=========================| 18 MB 00:34 (4/5): iscsitarget-0.4.15 100% |=========================| 64 kB 00:00 (5/5): iwl4965-firmware-2 100% |=========================| 237 kB 00:00Beware: This installs iscsitarget-0.4.15 which generates a broken pipe error for certain ietadm commands. This is not obvious until you run strace. 0.4.16 doesn't have this problem.
Saturday, August 30, 2008
iSCSI Enterprise Target via RPMs
This how to is handy. It doesn't end well for the author but my "yum install kmod-iscsitarget" was all I needed. It brought in a 2.6.25 Kernel as a dependency.
Tuesday, August 12, 2008
IronKey USB
IronKey Announces Linux Support. I wonder if this means the "windows initialization" is no longer required.
Update Yes, "windows initialization" is not required. I plugged mine into Ubuntu and was up and running. No need for windows with this.
Python urlencode annoyance
O'Reilly has examples of how to urlencode a string for various languages. Every example has the same semantics -- a variable to define a string and a function to encode it -- except Python. Python's urlencode presumes you want to convert a dictionary whose key (which seems to be a name you should make up when you call this function) will be a GET variable that you would append to the tail of the URL.
I think this presumes too much. I want to build a URL and simply encode the name of a file. I wish I could do this:
url = "http://foo.com/" + urlencode(file_name)Instead I use a substring kludge since len("x=") is 2:
tmp = urlencode({'x':file_name})
url = "http://foo.com/" + tmp[2:]
Applying this back to O'Reilly's example:
from urllib import urlencode
artist = "Kruder & Dorfmeister"
tmp = urlencode({'x':artist})
artist = tmp[2:]
I guess Python is promoting a paradigm where URL values are arguments to methods and the syntax of a URL itself is abstracted away. But I still would have kept urlencode like the other languages and offered a variation of this function that does whatever Python is trying to promote.
Labels:
dictionary,
python,
string,
urlencode,
workaround
Monday, August 11, 2008
Zimbra and LVM
The Zimbra Forum has some things to say about LVM:
- LVM snaphots hurt performance. However they are handy for minimizing downtime if you want to do a full backup of /opt/zimbra. Zimbra's built-in backups seem a better trade-off to me. While reading through this there as a kernel trap post on replacing atime with relatime.
- Someone who claims to be knowledge in storage and who posts to the forum every day on average suggested using LVM for the flexibility.
- Someone using LVM suggests that zmvolume makes LVM less necessary.
- There were plenty of posts mentioning LVM on the Forum which were answered by Zimbra employees or experienced admins where LVM was stated as something someone was using or were going to use and no one said not to use it. This included advice for partitioning new servers or I/O tuning (where the most popular thing you shouldn't do is use RAID5).
Hadoop & NIST Algorithm Dictionary
The Register had a funny article about haddop. I also found a NIST Dictionary of Algorithms and Data Structures.
Subscribe to:
Posts (Atom)