Fedora 21 + ZFS on Linux, can't add drives because of partition issue

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
I get this:

[root@localhost gigatexal]# zpool create -f test /dev/sdd

cannot create 'test': no such pool or dataset

[root@localhost gigatexal]# zpool create -f test /dev/sdd

the kernel failed to rescan the partition table: 16

cannot label 'sdd': try using parted(8) and then provide a specific slice: -1

[root@localhost gigatexal]#

The first error is super odd.

The second one I have tried to fix by nuking the partitions using dd to no avail. zpool label clear didn't do anything either.

Has anyone run into this? I think I might try to build zfs from the latest git.
 

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
it's not pretty, and even parted reported that my partitions are not aligned, but i was able to create pools by creating partitions and specifying them as /dev/sdX[1] where X is the letter of the drive. I know, I know, device by id is better but this isn't a production box, just for tinkering.