ZFS expose as LUN over fibrechannel??

Soldato
Joined
18 Oct 2002
Posts
7,139
Location
Ironing
Had a storage question for the experts.

I wanted to play around with FC for remote storage and somehow couple it to my grand plans of having a self-build ZFS storage box. Originally I was going to expose a fixed-size zfs filesystem over iSCSI and connect a single host to it over the network, but I was thinking I might go down the FC route instead. I can probably get some not-that-new FC HBAs from work, so hardware isn't a problem.

My approach would just be to stick an HBA in the storage box, another in my client and run a single fibre stretch between them. The question is, will there be a simple way on Solaris to take a zfs and expose it as a LUN over that FC connection? Googling around reveals a lot about how to get remote LUNs to play as part of a zfs filesystem, but nothing about how to expose a zfs filesystem over a FC connection.

Am I barking up completely the wrong tree here? I've not much experience of FC yet :)
 
Just seeing what HBAs to get, will I be OK with 2GBit, or should I see if I can go a bit quicker and get 4? Hunting on ebay, the QLA2340 seem fairly reasonable.

*edit* if I get a dual-port 2340, can I effectively do 4Gbit, or doesn't it work that way?
 
Last edited:
So you want to create a LUN on ZFS formatted storage? Any reason why as there's probably a better route? As you know usual practice is to create a fixed size volume with zfs and let the remote system format it as it sees fit. If you want ZFS then the best thing to do is let the remote system format it with ZFS.
Technically you can sit the LUN on ZFS but its probably not what you were expecting, you'd need to create a zero'd out file on a zfs system and use that as the back end for the LUN

Good link here http://dlc.sun.com/osol/docs/content/2008.11/COMSTARADMIN/ggqsw.html

I'm aware of the ability to share a fixed size ZFS volume over something like iSCSI, which the client computer would then format and put its own filesystem on. I just want to do the same thing, but over FC instead of iSCSI. :) I'm using ZFS because I've also got NFS / CIFS filesystems and want to take advantage of the snapshotting.

COMSTAR looks to be something like what I need.
 
Excellent. I bought a couple of Qlogic QLA2340s from the bay, 2GBit is probably good enough for my needs for the moment.
 
Back
Top Bottom