Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error of resource create #17

Open
cai opened this issue Apr 29, 2018 · 4 comments
Open

Getting error of resource create #17

cai opened this issue Apr 29, 2018 · 4 comments

Comments

@cai
Copy link

cai commented Apr 29, 2018

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
Copy link
Owner

ewwhite commented Apr 29, 2018

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
Copy link
Author

cai commented Apr 29, 2018

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
Copy link
Author

cai commented Apr 29, 2018

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

@ewwhite
Copy link
Owner

ewwhite commented Apr 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants