Making all other blogs seem exciting!
RSS icon Home icon
  • Dynamically rescan LUN’s on SLES

    Posted on February 24th, 2009 ashinn No comments

    I’m sure this is kids play to most people, but I’ve just not done much SAN work with Linux.

    We bought a new EMC CLARiiON CX4-240, and I was just tossing it random LUN’s to do speed & HA tests. When I added a LUN I’d see it in powermt, and I didn’t know what the equivalent of devfsadm was in Linux … SLES to be specific. What can I say, I worked with Solaris way too long.

    The first step is to run: powermt display

    # powermt display
    CLARiiON logical device count=3
    —– Host Bus Adapters ——— —— I/O Paths —– —— Stats ——
    ### HW Path Summary Total Dead IO/Sec Q-IOs Errors
    3 qla2xxx optimal 6 0 – 0 0
    4 qla2xxx optimal 6 0 – 0 0

    Note the 3/4 preceding the HBA’s.

    Now, execute this:

    # echo “- – -” > /sys/class/scsi_host/host3/scan
    # echo “- – -” > /sys/class/scsi_host/host4/scan

    Its my understand this also works on RHEL and others, but YMMV. This is all buried in the PowerPath manual too, but hopefully I’ve saved someone a bit of time.

    Till next time…

  • Re-hiding hidden files on OSX

    Posted on February 20th, 2009 ashinn No comments

    This I actually found the other day, but I better post it before I forget.

    For whatever reason I somehow triggered all files to be displayed in Finder. Everywhere I went .DS_Store files (and anything else under the Sun) became visible.

    The fix: Open Terminal -> defaults write com.Apple.Finder AppleShowAllFiles NO

    Then you need to bounce finder by executing: killall Finder

    Till next time…

  • Hackintosh Xquartz / X11 color depth issue(s)

    Posted on February 20th, 2009 ashinn No comments

    I’ve been diving into OSX a bit more lately, and I’d like to share any tips/tricks I find along the way. I should go ahead and mention that I’m running Leopard on an IBM T43 laptop. That being said, many of the tips I might share are related more to the use of a Hackintosh. Consider this the first post of many stupid workarounds.

    Don’t get me wrong… I’d love to own a new MacBook Pro, but I’m a poor man. These T43’s are suprisingly close to the older MacBooks and pretty much everything works on it.


    As most of you might know, Apple started including X11 on the Tiger media and as a download before that. Someone can correct me if I’m wrong, but I believe its installed by default in Leopard. Either way I was having some issues getting it started on this ThinkPad. In /var/log/system.log I noticed this error:

    Feb 20 00:52:13 FakeMac org.x.X11[438]: Fatal server error:
    Feb 20 00:52:13 FakeMac org.x.X11[438]: Unsupported color depth -1

    This T43 has an ATI Radeon X300, which is nativly supported by Leopard, but the Xserver can’t query the depth from the driver. I find it hard to believe that many other people arent running into this too. You could install the MacPorts X11, but even they reccomend using the native Xquartz.

    Now this is in the man page for startx, but most Mac users are terrified of the CLI for whatever reason.

    The Fix: Open Terminal -> defaults write org.x.X11 depth 24

    This hard sets the color depth and viola X11 will now work. If you’re not scared, go ahead and man startx in Terminal and see all the other fun stuff you can do.

    I really needed this to work so I could use the Gimp for OSX and MegaTunix to tune the MegaSquirt in my car 🙂

    Till next time…

  • Adobe Flash Player on Microsoft Terminal Server

    Posted on February 19th, 2009 ashinn No comments

    Adobe Flash can be a systems administrator’s nemesis on a Microsoft Terminal Server.

    After installing the Adobe Flash ActiveX widget, you might notice that non-administrative users aren’t able to browse sites utilizing flash. They’ll be presented with a rather ambiguous message.

    The error: “Hello, you either have JavaScript turned off or an old version of Adobe’s Flash Player. Get the latest Flash player. ”

    I must admit that I do like polite error messages, butbutbutbutbut I already have the latest Flash Player!

    This only happens in IE, Firefox is just fine. I’d tell my users to just browse in Firefox, but of course we have some applications (IE: SharePoint, CRM and others) where IE is pretty much required.

    So, what’s the fix?

    Open regedit and find these two keys:


    Right click -> Permissions -> Click Everyone -> Check the “Read” box -> No reboot needed. Now, with any luck, your users can get Flash goodness. I tend to test the fix out by going to YouTube and rewarding myself with a video.

    Till next time…