ewwhite / zfs-ha

ZFS High-Availability NAS
749 stars 76 forks source link

Getting error of resource create #17

Open cai opened 6 years ago

cai commented 6 years ago

Hi,

I'm following the steps to here and got errors:

[root@rhino-nfs-3-1 ~]# pcs resource create pool1 ZFS params pool="pool1" importargs="-d /dev/mapper/" op start timeout="90" op stop timeout="90" --group=nfsgrp Error: missing value of 'params' option

CentOS7.4, ZFS 0.7.8

Thanks, -H

ewwhite commented 6 years ago

Hello. Did you create the ZFS zpool yet?

If so, what is the ZFS zpool's name and what command did you use to create it?

cai commented 6 years ago

Thank you for getting back to me. Yes I created zpool:

[root@rhino-nfs-3-1 ~]# zpool status pool: pool1 state: ONLINE scan: none requested config:

    NAME                   STATE     READ WRITE CKSUM
    pool1                  ONLINE       0     0     0
      raidz2-0             ONLINE       0     0     0
        35000cca024a2089c  ONLINE       0     0     0
        35000cca024a203a0  ONLINE       0     0     0
        35000cca024a1521c  ONLINE       0     0     0
        35000cca024a3e008  ONLINE       0     0     0

errors: No known data errors

cai commented 6 years ago

Here is the command I used: % zpool create pool1 -f -o ashift=12 raidz2 35000cca024a2089c 35000cca024a203a0 35000cca024a1521c 35000cca024a3e008

ewwhite commented 6 years ago

Create the ZFS pool with -o cachefile=none - that part is critical.

For the PCS resource, go ahead and try it without the "params" keyword.