*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Partition HD before adding it to ZFS pool?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

Partition HD before adding it to ZFS pool?

#1

Post by Nikotine » 18 Dec 2012 13:48

Does anyone here do this? Worth the effort, in your opinion?
http://www.freebsddiary.org/zfs-with-gpart.php
zpool replace [-f] pool old_device [new_device]

Replaces old_device with new_device. This is equivalent to attach-
ing new_device, waiting for it to resilver, and then detaching
old_device.

The size of new_device must be greater than or equal to the minimum
size of all the devices in a mirror or raidz configuration.
Partition the HDD and give only the partition to ZFS. [...] This strategy is only useful when setting up a new array. The idea is to use slightly less than your entire HDD. Thus, if a replacement HDD happens to be smaller, you're covered.
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4978
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Partition HD before adding it to ZFS pool?

#2

Post by raulfg3 » 18 Dec 2012 14:31

I do not recomend to partition disk before to adding it to a pool, but I recommend to label it ( using gpart like descrived on your link) to easy manage/administration of disk in the pool.

PD: adax may / can change if you add new disk, labels do not change.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

Re: Partition HD before adding it to ZFS pool?

#3

Post by Nikotine » 19 Dec 2012 21:20

Alright, good tip!
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

BeNooL
Status: Offline

Re: Partition HD before adding it to ZFS pool?

#4

Post by BeNooL » 21 Dec 2012 15:52

raulfg3 wrote:PD: adax may / can change if you add new disk, labels do not change.
Even if the adax changes, doesn't ZFS use it's own internal identification IDs to recognize a drive ?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4978
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Partition HD before adding it to ZFS pool?

#5

Post by raulfg3 » 21 Dec 2012 19:11

yes, but the problem is not ZFS is that you identify your device in case you need to replace / delete / etc... or if you use UFS or Raid sollutions.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

BeNooL
Status: Offline

Re: Partition HD before adding it to ZFS pool?

#6

Post by BeNooL » 01 Feb 2013 11:12

I've used the serial numbers shown on Disks -> Management page to identify with certainty which disk to remove in case of failure.

Post Reply

Return to “ZFS (only!)”