ZFS gpart error on nvd0

Hiya,

Had this nvd device provisioned but it wasn't split evenly. It's 1tb and I was using 500g for zfs cache and the remaining available 432g for zil. I destroyed it and when I try to recreate things I get an autofill error. Not sure why it won't let me autofill the remaining 466G.

Code:
root@hvm3b:~ # gpart destroy -F nvd0
nvd0 destroyed
root@hvm3b:~ # gpart create -s gpt nvd0
nvd0 created
root@hvm3b:~ # gpart add -a 1m -b 128 -t freebsd-zfs -s 466G nvd0
nvd0p1 added
root@hvm3b:~ # gpart add -a 1m -b 128 -t freebsd-zfs nvd0
gpart: autofill: No space left on device
root@hvm3b:~ # gpart list nvd0
Geom name: nvd0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 1953525127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: nvd0p1
   Mediasize: 500363689984 (466G)
   Sectorsize: 512
   Stripesize: 131072
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(1,GPT,f24b7245-fc3d-11e9-ae4e-ac1f6bc6cf36,0x800,0x3a400000)
   rawuuid: f24b7245-fc3d-11e9-ae4e-ac1f6bc6cf36
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 500363689984
   offset: 1048576
   type: freebsd-zfs
   index: 1
   end: 977274879
   start: 2048
Consumers:
1. Name: nvd0
   Mediasize: 1000204886016 (932G)
   Sectorsize: 512
   Stripesize: 131072
   Stripeoffset: 0
   Mode: r0w0e0
 
The -b option tells gpart(8) where your partition should start. You're trying to create the second partition starting at the same place as the first. Remove the -b option on your second gpart add.
 
Back
Top