When I try to create a ZPool, the following error occurs:
user@arch ~ % sudo zpool create -f -o ashift=12 -m /data media raidz /dev/disk/by-id/ata-ST2000DM001-1CH164_Z2F0TL8V /dev/disk/by-id/ata-ST2000DM001-1ER164_Z4Z030LK /dev/disk/by-id/ata-ST2000DM001-1ER164_Z4Z06PR the kernel failed to rescan the partition table: 16 cannot label 'sda': try using parted(8) and then provide a specific slice: -1
I have tried running the command multiple times back to back (running
udevadm trigger in between too), clearing the drives using
sgdisk -Z /dev/sdX. I tried
parted /dev/sdX mklabel gpt as well as
zpool labelclear /dev/sdX.
I have referred to the drives by
/dev/disk/by-id as well as
/dev/sdX but the same error occurs where the label changes depending on the order of the drives.
hdparm -z /dev/sdXprior as well?