Solved gstripe adds two devices but only the size of one of them

I am configuring a gstripe of 2 disks, one of 8TB and another of 4TB, the stripe seems to be created correctly but with reduced size:
Code:
odyssey # ~> gstripe label -v st0 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada2.
warning: /dev/ada3: only 4000787029504 bytes from 8001563221504 bytes used.
Metadata value stored on /dev/ada3.
Done.
When i query the size it reports: 7.3T only ada3 size:
Code:
odyssey # ~> gstripe list
Geom name: st0
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
Stripesize: 65536
ID: 1522304871
Providers:
1. Name: stripe/st0
   Mediasize: 8001574010880 (7.3T)
   Sectorsize: 512
   Stripesize: 65536
   Stripeoffset: 0
   Mode: r0w0e0
Consumers:
1. Name: ada2
   Mediasize: 4000787030016 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   Number: 0
2. Name: ada3
   Mediasize: 8001563222016 (7.3T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   Number: 1
In /var/log/messages I can see the following when gstripe is created:
Code:
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Disk ada2 removed from st0.
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Device stripe/st0 deactivated.
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Disk ada3 removed from st0.
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Device st0 destroyed.
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Device st0 created (id=1522304871).
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Disk ada2 attached to st0.
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Disk ada3 attached to st0.
May 25 16:15:40 odyssey kernel: GEOM_STRIPE: Device stripe/st0 activated.

I tried a dd of 1h before trying to create another time stripe only for beeing sure theres no previously data in disks:
Code:
dd if=/dev/zero of=/dev/ada2 bs=10m
dd if=/dev/zero of=/dev/ada3 bs=10m
How can I get the full two disk size in my stripe?
By the way, I am not using ZFS because I heard that I would need 1GB of RAM for each TB, so 12TB -> 12GB-RAM and the server is 16GB for OS+7jails +ZFS-root
 
I heard that I would need 1GB of RAM for each TB
If you enable dedup, yes. So, don't enable dedup.

The striped disks need to be the same size because the data is 'striped' across both disks. In other words, block 0 is written to disk1, block 1 is written to disk2, block2 is written to disk1, etc. This is different from gconcat(8) which just adds the disks "back-to-back".
 
Thank you very much for the aclaration, do you think that i would use ZFS instead of concat+UFS if i dont use dedup?
 
do you think that i would use ZFS
I think that would work just fine with 16GB of memory you have. You might want to limit the ARC size though, so there's a bit of 'free' memory left for your jails.
 
Back
Top