Setup Linux ISCSI targets with tgtd

Posted by Ryan on November 7, 2011 in ComputerInfo, Linux

Purpose:
Low cost ISCSI storage for VMware ESXi 4.1 cluster
Environment:
Sun Storagetek 2530 SAS array connected to a X4100 M2 Sun server.
RHEL 6.1 installed on X4100 M2 Sun server.
1 multipathed LUN presented to RHEL 6.1 server from 2530 storage array.
LUN presented as /dev/mapper/mpathb
Write Caching enabled on 2530 storage array
Configuration:
Using Yum, Install:
scsi-target-utils-1.0.14-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-21.el6.x86_64
Enable services on boot:
chkconfig tgtd on
Configure [...]

Cannot delete a large number of files

Posted by Ryan on July 16, 2011 in ComputerInfo, Linux, Solaris

Ever tried to use the “rm *” command on a directory that has thousands of files?  If so, you were probably greeted with the error “too many files”.  Here’s how to get around this issue by simply deleting 1 file at a time.
cd /directory1
ls -1 > /tmp/output.output
while read i; do echo $i; rm -f $i; [...]

New Mythtv remotes

Posted by Ryan on January 11, 2011 in ComputerInfo, Linux

This is probably one of the best things that I’ve added to my Mythdora setup.  I recently purchased an HTC Hero (Android phone, not activated) and use it to control my Mythtv boxes.  The nicest thing about this, is the phone’s ability to connect to my wireless network.  When connected to wireless, I use the [...]

Redhat Linux multipathing Mpathd

Posted by Ryan on December 30, 2010 in ComputerInfo, Linux

I recently had to setup multiple hosts using Emulex fiber HBAs connecting to a Fiber channel array through 2 SAN switches with redundant paths.  Here are some notes that helped me get the job done.
Linux multipathing (Mpathd)
=================================================================
config file: /etc/multipath.conf

Remark the black list all devices section. This will turn on multipathing for all default devices. e.g.

# [...]

Hacking the HTC Hero running Droid 2.1

Posted by Ryan on July 3, 2010 in Entertainment

Why gain root access to the phone?  For me it was wireless tethering.. its just as good as the expensive “aircards” without the additional monthly fee.
When I received the phone from Sprint it was running 2.27.651.6.  To successfully root the phone, downgrade to 2.27.651.5:
How To:
Install drivers (ADB doesnt install) – Install HTC sync software, it [...]

cannot mount cifs share from Fedora or Ubuntu

Posted by Ryan on June 10, 2010 in ComputerInfo, Linux

Trying to mount a cifs share from the command line fails when attempting the following:
mount -t cifs //<servername>/<share> will result in a “wrong fs type, bad option, bad superblock on //<servername>/<share>…etc” and “CIFS VFS: cifs_mount failed w/return code = -22″ is found in the dmesg output.
mount -t cifs //<server IP>/<share> will result in “cannot mount [...]

Mythtv asx stream port change

Posted by Ryan on January 23, 2010 in ComputerInfo, Linux

I run mythweb on a different port (other than 80) and this change seems to have made the asx stream function just about worthless.  When clicking on the asx link from the browser, it still sends out the asx stream file as port 80.  (you can check this by opening the asx file with a [...]

Show the architecture of installed rpm packages

Posted by Ryan on October 6, 2009 in ComputerInfo, Linux

rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n” | grep <package_name>
Check out the link below for additional info.
http://www.cyberciti.biz/faq/linux-display-rpm-package-architecture/

Upgraded MythTV setup!

Posted by Ryan on October 5, 2009 in ComputerInfo, Entertainment, Linux

The hardware in my MythTV setup I previously mentioned is no more!  Why?  Well two reasons really:
I kept finding myself processor bound when trying to watch HD, let alone recording SD or HD at the same time (that was a lost cause)
AND
I was getting very odd I/O errors in the mysql/mythtv logs.  I found many [...]

Creating my first animation with Blender.

Posted by Ryan on September 3, 2009 in Entertainment

Ok I’ve been spending some time playing with Blender.  Blender is a free opensource 3d Animation program.  So far with my experince it is great for making 3d stills and 3d animations… of course mine are pretty basic as I’ve only just begun.  Check out what I’ve done so far with only about 4 hours [...]