Can't create a pool with ZFS - invalid argument for this pool operation

rubylaser

Renowned Member
Nov 11, 2009
31
2
73
Hello,

I have a Proxmox 3.4 host, and for some reason, I can't create a simple zfs mirror. Here's what I'm trying to do.

Code:
zpool create -f -o ashift=12 datastore mirror /dev/disk/by-id/ata-Crucial_CT256MX100SSD1_14330CEDCBB5 /dev/disk/by-id/ata-Crucial_CT256MX100SSD1_14290CA27F0F log /dev/disk/by-id/ata-INTEL_SSDSC2BA100G3_BTTV3354065M100FGN

When I enter this, I always receive this error.
Code:
[SIZE=1]cannot create 'datastore': invalid argument for this pool operation
[/SIZE]

This 3.4 install was a fresh install. All the libraries seem to be installed, and loading.

Code:
[SIZE=1]root@proxmox2:~# dmesg | grep -E 'SPL:|ZFS:'
[   12.391091] SPL: Loaded module v0.6.4.1-1
[   12.866580] ZFS: Loaded module v0.6.4.1-1, ZFS pool version 5000, ZFS filesystem version 5
[   15.193521] SPL: using hostid 0xa8c00802
[/SIZE]

Code:
[SIZE=1]root@proxmox2:~# dpkg -l | grep zfs
ii  libzfs2                          0.6.4-4~wheezy                amd64        Native ZFS filesystem library for Linux
ii  zfs-doc                          0.6.3-3~wheezy                amd64        Native OpenZFS filesystem documentation and examples.
ii  zfs-initramfs                    0.6.4-4~wheezy                amd64        Native ZFS root filesystem capabilities for Linux
ii  zfsutils                         0.6.4-4~wheezy                amd64        command-line tools to manage ZFS filesystems
[/SIZE]

Any ideas to get this working are appreciated.



 
Thanks for the reply, but this is a host that I've been running for a while now. I have restarted a few times already trying to get this to work. I use the pve test 3.10 kernel if that makes any difference.
 
And are you sure that the "zpool" command is the same version as the kernel modules? All the searches for your error point to different versions. Did you install ZoL from Proxmox repos or from zfsonlinux.org site?
 
And are you sure that the "zpool" command is the same version as the kernel modules? All the searches for your error point to different versions. Did you install ZoL from Proxmox repos or from zfsonlinux.org site?
Everything is stock Proxmox. I haven't install anything from the zfsonlinux site. A few weeks ago I setup a small pool of SSDs to temporarily, so this used to work (I used zpool destroy to remove the unused pool a few days ago). Unfortunately, I can't create new pools anymore.
 
Try to create the pool using a single SSD first (or 3 pools using each SSD) to make sure that the drives and paths are OK.

Another attempt would be to reinstall Proxmox ZFS related packages to make sure they are in sync (yes I know I'm pressing this, but that's what ZoL issues list say).