do not give zfs all your hdd

Status
Not open for further replies.

cloudfire

Cadet
Joined
Apr 10, 2017
Messages
6
While building my first FreeNAS I stumbled over this :

http://www.freebsddiary.org/zfs-with-gpart.php
It basically explains, that drive sizes vary and if eg. a 4TB replacement for a defective 4TB HDD has just one block less , than it can not be used since it has to be > or = in size. So the author recommends to use partitions for zfs which are a little smaller than the hdd to be safe.

I can not remember that I would have read about this in any beginners guide here. Are there disadvantages in doing so or is this not a real world problem (and why), or did I just miss it out.

I want to use encryption, is there any problem with underlying partitions ?
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
FreeNAS does this by default. Drives are partitioned and have swap space. If encrypted, an encrypted device is created on top of the data partition, then ZFS uses that.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
It basically explains, that drive sizes vary and if eg. a 4TB replacement for a defective 4TB HDD has just one block less , than it can not be used since it has to be > or = in size.
Aside from @wblock noting that FreeNAS already does this by default, this isn't the case, and hasn't been for some time. Drive capacities are standardized--any 4 TB drive will have the same usable capacity, to the byte, as any other 4 TB drive.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Aside from @wblock noting that FreeNAS already does this by default, this isn't the case, and hasn't been for some time. Drive capacities are standardized--any 4 TB drive will have the same usable capacity, to the byte, as any other 4 TB drive.
USB flash drives, on the other hand... Well, the less said the better.
 

Vito Reiter

Wise in the Ways of Science
Joined
Jan 18, 2017
Messages
232
You could do the production environment safe thing and when a drive begins to fail order the same exact drive.
 
Status
Not open for further replies.
Top