Friday, May 15, 2015

linux - How to partition drive for ZFS



I'm trying to create a ZFS pool using the following command:



zpool create MyPool disk /dev/sda



However, I get the following error:




cannot use '/dev/disk': must be a block device or regular file




I feel like I should have been able to find someone with this issue, but I haven't been able to. /dev/sda is a blank drive. Where am I going wrong? Do I have to format the drive before creating a zpool? If so, what format do I use?


Answer




Remove "disk" from your command line. It's the cause of the error you're receiving.



zpool create MyPool sda

No comments:

Post a Comment