Page 1 of 1

Create mirror of one disk and another striped pool

Posted: 04 Jan 2015 23:24
by rookie
Hello,

I have got two 160G hard drives and one 320G hard drive. I would like to assemble them in a mirrored zpool with one copy of the data on the 320G hard drive and the other copy of the data striped between the other two 160G hard drives. Is this possible with zfs?

I guess the zpool would look something like this:

Code: Select all

  pool: tank
 state: ONLINE
  scan: none requested
config:

	NAME              STATE     READ WRITE CKSUM
	tank              ONLINE       0     0     0
	  mirror-0        ONLINE       0     0     0
	    disk320g      ONLINE       0     0     0
	    striped-0     ONLINE       0     0     0
	      disk160g    ONLINE       0     0     0
	      disk160g    ONLINE       0     0     0

errors: No known data errors
In the end, the two 160G hard drives should act like on big 320G hard drive.

Re: Create mirror of one disk and another striped pool

Posted: 05 Jan 2015 02:24
by Lee Sharp
Yes, but you are actually increasing your chances of a drive failure knocking you out. If either 160G fails, you loose the entire stripe. But it is doable.

Re: Create mirror of one disk and another striped pool

Posted: 05 Jan 2015 15:14
by ChriZathens
Not 100% sure (haven't done it - perhaps I will test it in a vm when I have some time) but I believe you cannot mirror two stripes... You can stripe two mirrors, however.. (but not this case here)