In all my playing with OpenSolaris and iSCSI I decided to give iSCSI using Linux and OS X another shot. Turns out the GlobalSAN iSCSI client for OS X, available for free from Studio Network Solutions, works much better than it did just a couple of months ago. Lock ups, so far, seem to be a thing of the past.

To make use of it I decided to pull the drive out of my external case and put it in my Linux system. I then exported it via the iSCSI Enterprise Target software (available here) already installed on the system. After installing the latest GlobalSAN iSCSI initiator software (available here)on my mini I was able to connect to the iSCSI Lun on my Linux machine.

So far I’m finding that I’m able to get nearly full speed out of the disk and am able to copy large files to the drive at around 44MB/s.

Update: One caveat I have found is it takes a lot longer for the Mac to enter sleep if it is connected to the iSCSI share.

One of the first things I really hoped ZFS could do when I heard about it (and its ability to share using iSCSI) was the ability to resize things at will. Resizing file systems is something that has been possible for a while but it has never been this easy, at least in my mind. With the ability to resize storage volumes you can put a ton of disks into a single system and then share out exactly what is needed to your systems and then resize if you need more later on. Today I got a chance to test ZFS’s ability to resize volumes as well as how Windows handles the task.

Although the ability to resize file systems has been around for a while it has never been as easy as it is today. Linux has been able to resize file systems for some time and the latest versions of Windows provides the ability right in Disk Management. I run a number of Windows systems and the ability to resize NTFS iSCSI volumes is what I’m primarily interested in.

Click read more to learn how this is done. This isn’t a full how-to but more of an overview of how to make it all happen.

Continue reading

Just a quick note on how to work with packages in OpenSolaris. pkg is used to manage packages.

pkg refresh

Will cause the system to refresh what packages are available.

pkg image-update

Will initiate a system upgrade.

pkg install SUNWiscsitgt

Will start an install OR upgrade of the SUNWiscsitgt package

One of the things I need to test is using iSCSI to store data on some Windows servers. Here is a quick synopsis of how to create a storage pool and then create a ZFS dataset that can be shared using iSCSI

Create the pool from the available disks, if they don’t already exist. Be sure to read docs on what kind of pool you want to create. I’m using raid-z

zpool create raid-z test /dev/dsk/c0t1d0 /dev/dsk/c0t2d0 /dev/dsk/c0t3d0 /dev/dsk/c0t4d0

Create the data set and share it using iSCSI

zfs create -s -V40G test/iscsi
zfs set shareiscsi=on test/iscsi

You should now have 40GB of iscsi based storage available. Use iscsi-initiator on Windows XP/Vista/Server 2003 to attach to the iscsi target, assign a drive letter and format.

A really good friend of mine likes call me an OS whore from time to time. It’s all in fun but he is right, I am. I can’t make up my mind which OS I like the best. Windows, Linux, Windows, Mac? Which is it? To be honest, I don’t know. I change my mind depending on my current needs, current capabilities of the operating systems of the day and I really just like to tinker. I also like to use whatever works based on what I need to get done.

Although my current favorite OS is definitely OS X I’m not exactly afraid to try out other operating systems. OpenSolaris is an OS I’ve played with before simply because I wanted to get to know ZFS, an incredible file system that should not be over looked. I have written about ZFS before but haven’t really worked with it much since then.

My interest in OpenSolaris and ZFS has been renewed as of late because of the need for a good amount of storage in the most cost effective manner possible. In the coming weeks I’ll be posting quite bit as I learn how to use OpenSolaris. Many posts will simply be reference information for myself and others might be more educational. Stay tuned.

I always thought it was just the tech crowd complaining about Vista but that isn’t so. Apparently “average users” are unimpressed with Vista and/or the machines it comes on or they’re having such a difficult time they need to buy a book.

Exhibit A) College student is upset with her junk laptop. Vista won’t access certain university resources and the battery is always dying.

Exhibit B) Book store worker says she has gotten a half dozen or so people in the last couple of weeks looking for books on using Vista. For an OS touted as being easier to use that doesn’t sound promising. One customer was a trained IT professional.

Exhibit C) My own experience. Windows explorer and the save dialogs are a complete cluster fu*&. Browsing for files is a royal pain because the explorer window shows three different views of the same crap, it is just overwhelming and even with all the information you still feel lost. Also, why does the entire machine hang off of the desktop? Doesn’t make sense.

Or how about the borked send to compressed file thing? If you right click on a file and choose send to compressed file the OS will dutifully compress the file and then highlight the part of the file name you want to rename. How convenient! Only problem however is that the highlight doesn’t have keyboard focus, you have to use your mouse anyway. Maybe it’s because I choose to show extensions but either way, pretty lame.

People are sometimes amazed at how quickly I get some things done. Truth be told I’m lazy and hate having to do more than I need to. Sometimes it is great to have just enough programming background to be dangerous.

I’ve posted about for loops before and they are probably one of my most liked bash items. Here is another reason why.

I’m working on a web site and I need to edit a bunch of files, they all need the same edits done and there is no reason I should get interrupted from working on them all in series. Enter the for loop! With the following command I can edit each file in VIM and when I close the file the next file will open for me.

for I in `ls *.php`
do
vim $I
done

Nice and simple.

Ever since we moved into our house the subwoofer output on my Sony receiver has been crappy. It would randomly cut out causing all low frequency sounds to go away. Left with nothing more than a small set of speakers the sound was extremely tinny. To get the sound back I would just wiggle the connection on the receiver or even unplug the cable from the subwoofer and plug it back in. This would some how rejuvenate the connection for just a little while longer. I’ve always thought I knew what the issue was but never took the time to properly fix it. Well this past weekend I said enough was enough.

I pulled my receiver out of the entertainment center, cut the power to it and removed the six screws holding the cover on. The subwoofer port sits on a secondary board in the receiver that is fortunately easily removed. With the RCA cables removed on the outside and a ribbon cable and another connector on the inside there is only the matter of removing four screws. With the screws removed the board comes away from the receiver and I am able to get my first look at the bottom of the board.

It turned out I was right all long, a simple solder joint break.

The fix here is very simple. I got out my trusty soldering iron and heated up the joint and added a slight amount of solder. I don’t have a finished pic but you can look at any of the other solder joints above, that is how it ended up.

I then reversed the above procedure. With the joint soldered correctly the subwoofer doesn’t cut out anymore and in fact, the subwoofer seems sound better than I ever remember it sounding while in the house.