Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2015 19:30:54 -0400
From:      Jon Radel <jon@radel.com>
To:        Baho Utot <baho-utot@columbus.rr.com>, freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 10.1 + ZFS
Message-ID:  <556653AE.7080608@radel.com>
In-Reply-To: <55663337.4050806@columbus.rr.com>
References:  <5563939F.2070303@columbus.rr.com>, <86oal8gu30.fsf@red.stonehenge.com>, <5563A6E0.4010402@columbus.rr.com> <86382kgoi8.fsf@red.stonehenge.com>, <20150526030812.8e749982.freebsd@edvax.de>, <20150526034748.GA1674@WorkBox.Home>, <5564E1CE.2040700@columbus.rr.com> <5564E6F5.1090306@radel.com>, <5564EF07.2080603@columbus.rr.com> <20150527000713.GA3257@WorkBox.Home>, <CADqw_g+rHfZCC4oDRLZYHjYO5BNTTgaejU53062Qmfx8cefO9Q@mail.gmail.com> <SNT146-W323F8A94EFA6EA618FBD27A1CB0@phx.gbl> <55661AA5.9030403@columbus.rr.com> <55662C35.4000802@radel.com> <55663337.4050806@columbus.rr.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is a cryptographically signed message in MIME format.

--------------ms020503020805020607080906
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

On 5/27/15 5:12 PM, Baho Utot wrote:
>
>
> On 05/27/15 16:42, Jon Radel wrote:
>> On 5/27/15 3:27 PM, Baho Utot wrote:
>>>
>>> I do understand how ZFS works I am using it (ZFS RAID-Z1) on three=20
>>> boxen but not as the root file system.
>>>
>>>
>> <snip>
>>>
>>> You cannot do RAID-Z2 with three drives only as RAID-Z2 has two=20
>>> parity drives
>> You either contradict yourself or you have a shaky understanding of=20
>> the word "cannot".  Not recommended, quite possibly not the best way=20
>> to use 3 disks, sure....    Cannot, well, not so much.
>
> Ok tell me how you have two parity drives with using only three=20
> drives.  It can  not be done.
>
Like this, more or less:

root@pumpkin:/etc # gpart add -t freebsd -s 10G ada0
ada0s2 added
root@pumpkin:/etc # gpart add -t freebsd -s 10G ada0
ada0s3 added
root@pumpkin:/etc # gpart add -t freebsd -s 10G ada0
ada0s4 added, but partition is not aligned on 4096 bytes
root@pumpkin:/etc # zpool create tada raidz2 /dev/ada0s2 /dev/ada0s3=20
/dev/ada0s4
root@pumpkin:/etc # zpool status tada
   pool: tada
  state: ONLINE
   scan: none requested
config:

     NAME        STATE     READ WRITE CKSUM
     tada        ONLINE       0     0     0
       raidz2-0  ONLINE       0     0     0
         ada0s2  ONLINE       0     0     0
         ada0s3  ONLINE       0     0     0
         ada0s4  ONLINE       0     0     0

errors: No known data errors
root@pumpkin:/etc # df
Filesystem   1K-blocks   Used     Avail Capacity  Mounted on
/dev/ada0s1a 253911544 902528 232696096     0%    /
devfs                1      1         0   100%    /dev
tada          10033936     96  10033840     0%    /tada
root@pumpkin:/etc #

Of course, if one wanted a 3-device raidz2 vdev in production in the=20
first place, you'd do
well to have the partitions on 3 different drives, much better=20
performance and resilience
that way.  But the logical structure of the ZFS vdev is the same.

Why are you so certain that this is impossible?

--Jon Radel
jon@radel.com



--------------ms020503020805020607080906
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKrzCC
BK8wggOXoAMCAQICEQDgI8sVEoNTia1hbnpUZ2shMA0GCSqGSIb3DQEBCwUAMG8xCzAJBgNV
BAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQGA1UECxMdQWRkVHJ1c3QgRXh0ZXJu
YWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3QwHhcN
MTQxMjIyMDAwMDAwWhcNMjAwNTMwMTA0ODM4WjCBmzELMAkGA1UEBhMCR0IxGzAZBgNVBAgT
EkdyZWF0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YDVQQIExJHcmVhdGVyIE1hbmNoZXN0
ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMUEwPwYD
VQQDEzhDT01PRE8gU0hBLTI1NiBDbGllbnQgQXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBF
bWFpbCBDQQIQc1TlPH1rtM0NYGkN/M4BGzANBgkqhkiG9w0BAQEFAASCAQC9nCEuX7pXzrhB
ho4G1ZSvhYdGTj1/9PLp7egxdbc9VQtdlAhuuLIk8a6UHRf9y3KF9KqJTBmvn9oRlo/VheJ7
DCpje3pqc7BbaHgNfaf399uiDOoA7N4Jyem0jLJwvrbEsbCLYsv6ArsYGOgb+w6fYqs7ATmQ
B6E1huzGOLP/gjs+knBH765l4Vvhw7+Y5OhInl0AUhUlozHsPNNmMhy7WfhBaW0pUPP/m5dd
s7eQ/TfUifrFffS2tG9m6AK6kAtzNqUfGigrB1hSIGt+s/lOvb18y/0eCstHU5M8RGkWIgJZ
ZYCotwlJPQpfSMNlFxffBJmVP0TAn+hCETnj86kCAAAAAAAA
--------------ms020503020805020607080906--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?556653AE.7080608>