well, if you’re building from scratch you might want to take a look at FreeNAS? or UnDrive is actually quite popular (but not free). Both have somewhat of a learning curve though, but i’ve read a lot of good things about undrive.
What are your main needs/demands for this? What system specs will it have?