Creating ZFS pool with slack space

Status
Not open for further replies.

chandeliho

Cadet
Joined
Mar 20, 2012
Messages
2
My setup has 5 drives that are all the same model - currently I believe when creating the data partition the entire disk is used (aside from the swap). Is there a way to add in some slack space that isn't partitioned at all? My concern is that if one of my drives die, and I have to replace it with a drive from another manufacturer, the size of the replacement might not exactly match the drive that died. If the size of the replacement is even slightly smaller (since drives from different manufacturers may have slightly different byte counts), then repairing the array might have trouble, right?
 

chandeliho

Cadet
Joined
Mar 20, 2012
Messages
2
Is this not a supported usage model? Is it expected that every drive is identical? Anyone know at all?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
From personal experience different hardware versions of the same hard drive can give different drive sizes. I RMA'd a hard drive that was part of a RAID-6 a few years ago and the replacement drive was 14MB smaller. Ever since that time I have ALWAYS left 10GB of free space on any arrays I build.

Unfortunately, I don't know if that's possible. I'm still experimenting with Linux and run Freenas 8 in a virtual machine just so I can get comfortable with it. Hopefully someone can comment as I'd like to know if it's possible.
 

peterh

Patron
Joined
Oct 19, 2011
Messages
315
You may partition the disks and use the partitions as building blocks for a zpool.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
The swap space at the beginning is also a convenient way to create a buffer. You can recreate the ZFS partition on a disk without the swap and the swap on the other disks will continue to function, so you could just create a bigger swap at the beginning of each disk. The swap size setting is in the GUI under Settings->Advanced.
 
Status
Not open for further replies.
Top