Skip to main content

OpenSolaris, ZFS, iSCSI and OSX - Creative Storage - Part I

After getting through the steps required to setup a local network storage solution - I thought I would publish my steps for others that are doing the same thing. Not exactly security related but once the Solaris developers implement encryption into ZFS it will be :)

The needs for the solution were simple - a network (IP) based storage solution which is both reliable, meets performance needs and doesn't break the bank.

There are many people who would argue that a hardware based RAID array with it exposed through some NAS protocol would be a much easier solution to this need, but I'm intentionally trying to be cheap. The steps:

1. Hardware installation

Easiest part - install SATA disks on a supported platform for OpenSolaris. No details here unless someone wants them.

2. Software installation

OpenSolaris 2008.11 - 1 CD image found here. Burn the ISO, boot into the liveCD, double click on the "Install Solaris" icon on the desktop, and follow the instructions. I used many of the default options, but the installation will step you through it.

Reboot, and voila - default Solaris install with an SSH daemon running so that I don't have to use x-windows sessions.

3. ZFS Configuration

Connect with SSH to the console, check the installed disks.

root@CoreOpenSolaris:~# format
Searching for disks...done

0. c0d0 <DEFAULT cyl 1242 alt 2 hd 255 sec 63>
1. c3t0d0 <ATA-WDC WD10EADS-00L-1A01-931.51GB>
2. c3t1d0 <ATA-WDC WD10EADS-00L-1A01-931.51GB>
3. c4t0d0 <ATA-WDC WD10EADS-00L-1A01-931.51GB>
4. c4t1d0 <ATA-WDC WD10EADS-00L-1A01-931.51GB>
Specify disk (enter its number):

The first disk is the boot disk, which also uses the ZFS filesystem and won't be part of the raid. The other four will.

Create the ZFS pool.

root@CoreOpenSolaris:~# zpool create CoreStorage c3t0d0 c3t0d1 c3t1d0 c3t1d1

root@CoreOpenSolaris:~# zfs list CoreStorage
CoreStorage 400G 2.28T 41.9K /CoreStorage

Once the pool has been created we need to set a few properties to enable the types of access we want to provide. First is enabling CIFS and iSCSI access to the pool.

root@CoreOpenSolaris:~# zfs set shareiscsi=on sharesmb=on CoreStorage

4. CIFS Configuration

With the pool setup, we need to configure Solaris to provide connections for CIFS and iSCSI. Lets focus on CIFS first. The CIFS packages are not installed by default so we need to install them.
root@CoreOpenSolaris:~# pkg install SUNWsmbs SUNWsmbskr

Then add the driver, start the service, configure the PAM services needed to properly authenticate (I needed to reboot after these steps).
root@CoreOpenSolaris:~# add_drv smbsrv
root@CoreOpenSolaris:~# svcadm enable -r smb/server

I then needed to re-set the password of the user that will be using the share.
root@CoreOpenSolaris:~# add_drv smbsrv
root@CoreOpenSolaris:~# svcadm enable -r smb/server

Part two of this will include the iSCSI Target and Initiator Configuration, and a discussion of the advantages/disadvantages of using this.


fabrizio said…
please go on...

Popular posts from this blog

Consumer Benefits of Credit Card Security

Recently, new types of credit card security features have be debuted, such as this one from Visa. And as some of the comments on Bruce Schneier's blog point out, its questionable how effective this is. I want to figure out what the motivation is behind these ideas, as it appears banks and the major credit card brands are not completely transparent about the benefits to the consumer. My example is this, one source has that in 2005 $2.8 million was lost due to credit card fraud from Visa and MasterCard in Canada alone. These costs are absorbed by the credit card companies as they protect their cardholders from liability, but as can be expected these costs are directly applied to the card brand customers, people and merchants, in the form of fees and interest rates. Now lets say that card brands can deploy a technology to eliminate 90% of this fraud and associated insurance and liability costs. Likely a large savings both in Canada and globally. Would we, the public and mercha

OpenSolaris, ZFS, iSCSI and OSX - Creative Storage - Part II

In part I of this post, I looked at the simple steps required to setup a relatively simple storage solution using OpenSolaris, ZFS, iSCSI and OSX. This was about a month ago, and I've made some significant changes on how this is used for me. At the end of the last post I left off on the part dealing with configuration of the iSCSI initiator side of the solution. I stopped here because there were some issues related to the installation and use of the software. The iSCSI initiator that I was using was Studio Network Solutions GlobalSAN initiator (version which is used to allow for connections to their products. This software will also allow for connections to ANY iSCSI target! After the configuration of the iSCSI target on the ZFS pool, and installation of the client it was trivial to get the connection established with the storage pool, and it showed up in OSX as a raw disk which had not been formatted. I proceeded to format the disk as HFS+ and it then mounted as a lo

May Security Catch-up

Its been much too long since my last post - Sony's PSN network has been breached a few times , a record number of vulnerabilities have been published , and the US government has released a new set of cyber space strategies . On the cool tools and technologies there have been lots of notable releases: Some research from Albert Cotesi New Zealand on the traffic flowing from IOS to 3rd parties, now sniffable thanks to MITMProxy , and instructions on getting it working with IOS As always SQLmap is making life easier for the vulnerability assessor and pen-tester. Microsoft has released an updated to the Enhanced Mitigation Experience Toolkit - I'll be looking into this over the next few weeks, and how it can be applied practically. New major version of Backtrack also released, for those of you that are still relying upon live-cd's as a source for tools.