View Single Post
  #4   (View Single Post)  
Old 28th February 2011
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Quote:
Originally Posted by DraconianTimes View Post
I'm trying to build a new FreeBSD server for home storage. I've read the zpool and zfs man pages, but am getting a bit lost with the ZFS setup. My config is:

- 1 x 250GB disk - O/S install
- 2 x 750GB disks, 2 x 1TB disks - data

I'd like to configure the data disks so that I have 2 lots of 1TB+750GB (1.75TB) mirrored, presenting 1.75TB of usable, mirrored storage. Do I create a two zpools of 1TB+750GB, then another zpool over the top to mirror them? I found a command of
Code:
# zpool create tank mirror c1d0 c2d0 mirror c3d0 c4d0
- perhaps this is the 'right' way?

Can anyone offer advice?
You have to use the same size disks in the each mirror vdev, so you would create 1 mirror vdev using the 1 TB disks, and another mirror vdev using the 750 GB disks:
Code:
# zpool create mypoolname mirror disk01 disk02 mirror disk03 disk04
That will create a storage pool named mypoolname. In that pool will be two separate mirrors (disk01 and disk02; disk03 and disk04). The two mirrors will automatically be striped together, giving you the equivalent of a RAID10 setup.

Once the pool is setup, then you create your various filesystems using the zfs command.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote