This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[SOLVED] help setting up new raidz2 pool

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
waldo22
Starter
Starter
Posts: 29
Joined: 27 Nov 2012 16:20
Status: Offline

[SOLVED] help setting up new raidz2 pool

Post by waldo22 »

I'm trying to set up a new z2 pool and am having difficulty.

Can someone walk me through the steps I may be missing?

I'm using 8 3TB advanced format (4k sector) drives in a z2 vdevice with 9.1.0.1 r531 embedded,

Here's what I've done so far:
[*]Disks->Format->Select each disk->"ZFS storage pool device"
[*]Disks->ZFS->Pools->Virtual Device->create new vdev with double-parity RAID-Z, check "Enable Advanced Format" box
[*]Disks->ZFS->Pools->Management->create pool "mediapool" with the vdev I just created

Disks|ZFS|Pools|Management says "initializing".

It also says:
The configuration has been changed.
You must apply the changes in order for them to take effect.
...but when I click the "apply changes button, I get:
Error: The changes could not be applied (error code 1).
Am I supposed to wait for "initilizing" to go away before clicking apply?

How long is it supposed to take? It's been running for 12 hours. I realize it's a big pool, but I didn't expect it to take so long.

Is there anything I may be missing?

Thanks,

-Wes

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

Re: help setting up new raidz2 pool

Post by raulfg3 »

You are doing things in correct way, but... probably you are using reused disk, so metadata info on it confuse webgui.

A workarround is to create the pool in the shell, and then syncrhonize with WebGUI

viewtopic.php?f=57&t=698&p=1845
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

waldo22
Starter
Starter
Posts: 29
Joined: 27 Nov 2012 16:20
Status: Offline

Re: help setting up new raidz2 pool

Post by waldo22 »

Thanks for the tip.

The following worked from the command line:

Code: Select all

zpool create mediapool raidz2 da1.nop da2.nop da3.nop da4.nop da5.nop da6.nop da7.nop da8.nop
...where mediapool is the name of the pool, raidz2 is the structure (double-parity), and the "device.nop" is required for 4k sectors.

This command replaced the vdev that I had created earlier with an automatically generated vdev called "mediapool_raidz2_0".

Adding another vdev to the pool would presumably be called "mediapool_raidz2_1", etc...

I only have 15.2TiB available out of 6 3TB drives. My math says I should have over 17TiB. Is it possible I've done something wrong?

It appears to be working now, but how do I know if I have "lingering metadata" hanging around?

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

Re: help setting up new raidz2 pool

Post by raulfg3 »

waldo22 wrote:I only have 15.2TiB available out of 6 3TB drives. My math says I should have over 17TiB. Is it possible I've done something wrong?
No, is correct, because Hardisk use 1000x1000 and ZFS use 1024x1024

ej 3TB must be 3x1024x1024X1024x1024= 3.298.534.883.432 but in fact is 3x10^12
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

waldo22
Starter
Starter
Posts: 29
Joined: 27 Nov 2012 16:20
Status: Offline

Re: help setting up new raidz2 pool

Post by waldo22 »

I should have been more clear;

I understand about HD Marketing == base 10 and formatting=base2.

When I initially created the vdev via the GUI, it showed ~16.8TB available.

That seemed about right to me.

3,000,000,000,000 bytes / 1024^4 = ~2.73TiB * 6 drives = 16.4TiB

Now that I've "re-created" the pool from the command line, I'm only showing 15.2TB.

That seems like a lot of overhead to me, losing 1.5Tb to formatting (in addition to the 2 drives I'm losing to double-parity).

What am I forgetting?

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

Re: help setting up new raidz2 pool

Post by raulfg3 »

waldo22 wrote:What am I forgetting?
perhaps (not totally sure) the minimun space reserved for normal user: http://wiki.nas4free.org/doku.php?id=do ... sks_format.

you can select less than default
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

waldo22
Starter
Starter
Posts: 29
Joined: 27 Nov 2012 16:20
Status: Offline

Re: help setting up new raidz2 pool

Post by waldo22 »

Now that's interesting...

I was expecting ~16.4TiB and 15.2TiB is almost exactly 8% lower than that.

I don't see that as a setting for ZFS pools or vdevs for that minimum space, though.

Maybe that's just the unchangeable default for ZFS.

Back on topic, I destroyed the zpool from the command line, deleted the vdev and removed the drives from the system via GUI, and ran the script here to wipe the beginning and end of the drives clean and get rid of metadata.

I was then able to use the GUI to import the disks, format as ZFS Pool devices, create the raidz2 virtual device, and create the pool, all without a hitch.

It still shows 15.2TiB, so I must have dreamed that I saw ~16.x.

Thanks so much for all your help, it's really great to get this going.

-Wes

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: [SOLVED] help setting up new raidz2 pool

Post by fsbruva »

Next steps (usually):
1. Create datasets
2. Run regular scrubs on pool (email results) urln=viewtopic.php?f=70&t=1223
3. Run hourly check on pool healthy (email results) viewtopic.php?f=70&t=1223
4. Run regular snapshots viewtopic.php?f=66&t=1899

Welcome to ZFS!

Post Reply

Return to “ZFS (only!)”