UI options for metadata vdev (special device)

greg_905

Dabbler
Joined
Jun 1, 2023
Messages
17
Me again. :)

When you create a metadata/special vdev from the command line, and you have multiple disks you wish to mirror for its use, you might type something like this:

zpool add stg2pool0 -o ashifit=12 special mirror /dev/nvme1 /dev/nvme2 /dev/nvme3 mirror /dev/nvme4 /dev/nvme5 /dev/nvme6

And data will stripe over the two mirror sets.

When I added 6 drives to the special devices vdev via the SCALE gui it creates a mirror of one drive, so 6 copies of the same data, one drives worth of capacity.

There doesn't appear to be a 'create mirror sets' option. If we add 3 drives and select 'mirror', it does make a mirror set. If I add 3 more drives to the existing vdev, it doesn't pair them out as two disk mirrors, just one big mirror of 6 drives.

The intention is to get the capacity of 2 drives worth for this vdev, using 6 drives (i was going for 2 mirror sets of 3 drives per).

Is there a way to do this via the gui, and if not is it ok to append it from the command line? (I read Truenas doesn't want you to manage anything outside of their web/api tools).

ps - i know i am incorrectly calling nvme storage devices 'drives'... Probably will forever too. :)


Here is what it looks like when created via the gui:


special - - - - - - - - -
mirror-9 888G 44.1G 844G - - 0% 4.97% - ONLINE
19af3cad-90b7-483c-82d3-2bb87d0c41f8 894G - - - - - - - ONLINE
456c05c8-873b-4183-acea-d9a687d58feb 894G - - - - - - - ONLINE
d1fd3193-d8bb-491e-b718-953e7752c8b6 894G - - - - - - - ONLINE
029fe1a2-5f78-43ed-b82c-4b3bd34c6d72 894G - - - - - - - ONLINE
9371dede-3931-4223-8914-f9426c506d3c 894G - - - - - - - ONLINE
f0681ed8-ac0f-4d7d-8e32-7eec76ea51d5 894G - - - - - - - ONLINE
thanks,
-greg
 
Last edited:

greg_905

Dabbler
Joined
Jun 1, 2023
Messages
17
Just answered myself but I'll leave it here for others just in case its helpful to others.

I created the pool via the gui with just a pair of disks for the special device mirror (testing things...) and after it was created, I was returned to the dashboard, I selected "add drives" and then selected the pool I just created.

Now the "special device" vdev option is available again. I was able to add a second mirror within the special devices vdev. Looks like its just some behaviour the GUI has when initally creating the pool.
-g



special


mirror-9 ONLINE 0 0 0
58ac6f35-8115-4a62-b207-bcffbdc706fe ONLINE 0 0 0
11abc760-d3e9-4a97-81de-f7ef6e842ff5 ONLINE 0 0 0
mirror-10 ONLINE 0 0 0
e95f3295-eb7c-48b2-ba34-ab86935cbe2b ONLINE 0 0 0
0805174b-6d00-4e04-906e-78e4478a92c7 ONLINE 0 0 0
logs

mirror-8 ONLINE 0 0 0
b0e511f4-7603-4e6b-b41f-2aef71080851 ONLINE 0 0 0
86f3133c-2d9d-48c9-95b5-9cb071557d61 ONLINE 0 0 0
cache
14a65454-caf1-4e49-8ebd-acc753c846bb ONLINE 0 0 0
3de588ef-bcce-4d00-83ff-c1f5ef9ba510 ONLINE 0 0 0
39045c69-25cd-4eee-9f31-4012a928108d ONLINE 0 0 0
bccb10c0-71f1-4b29-92e5-5415b6d85ae3 ONLINE 0 0 0
 
Top