I'm about the build a Solaris NAS system, currently we have two drives and are planning on adding two more at a later date (2TB enterprise level HDD are a bit expensive!).
Whats the best configuration for setting up these drives bearing in mind I want to expand in the future?
I was thinking of mirroring the drives and then converting to raidz some how?
It will only be a max of 4 drives, the second two of which will be bought later.
Any ideas?
Mirroring is the way to go here. It'll let you easily add additional mirrored pairs to extend your existing volume. No downtime, no tricks, just add more disks and you're on your way. Unless you really need the 6TB of 4x2TB in RAIDZ, the 4TB of 4x2TB mirrored is a better bet. Mirroring also has the benefit of lowered CPU overhead, better performance and easier recovery in case of failure.
But seeing as people prefer to live on the edge and save a couple bucks here's how migrate your data from a two drive mirror to a four drive raidz setup:
zpool create mirror cXt1d0 cXt2d0 yourPool
zpool detach cXt2d0 yourPool
mkfile -n 500GB /path/file.img
zpool create raidz cXt2d0 cXt3d0 cXt4d0 /path/file.img newPool
zpool detach /path/file.img newPool
zpool destroy yourPool
zpool attach cXt1d0 newPool
Unless you want to back up the contents and recreate the zpool, I don't think this can be done. While you can create a raidz pool with just two devices, you can't expand it later to raidz with 4 drives. What you can do is create a mirror with the first two drives and add a second mirror to the pool with the second two drives, but this doesn't get you as much space as you seem to want.
You can also set it as a raidz, create/using a sparse file as your last drive, offline that file immediately, then when you get the drive, replace the sparse file with your new drive where it will actually become a raidz, as opposed to a zfs linear span, after you replace the offlined sparse file with your drive.
Although you wont have the parity, you will have most the power of ZFS online, including scrubbing and some auto repair ability.