# FENCE\_SCSI RESOURCE CREATION: unknown error

**URL:** <https://forums.suse.com/t/fence-scsi-resource-creation-unknown-error/34414>\
**Category:** SLES High Availability Extension\
**Created:** [September 30, 2019, 3:55pm UTC](https://forums.suse.com/t/fence-scsi-resource-creation-unknown-error/34414 "2019-09-30T15:55:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pri14bal](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pri14bal](https://forums.suse.com/u/pri14bal)\
**Post date:** [September 30, 2019, 3:55pm UTC](https://forums.suse.com/t/fence-scsi-resource-creation-unknown-error/34414/1 "2019-09-30T15:55:06Z")

</div>

Hi All,

I am trying to create a resource of fence\_scsi resource agent but each time I am getting error:

First i tried:

sudo crm configure primitive FENCE\_SCSI stonith:fence\_scsi params action=off devices="/dev/sdb" verbose=false op monitor interval=60s timeout=0s

got error: Sep 13 05:07:17 [30109] ESDNAS1 stonith-ng: info: update\_remaining\_timeout: Attempted to execute agent fence\_scsi (monitor) the maximum number of times (2) allowed  
Sep 13 05:07:17 [30109] ESDNAS1 stonith-ng: notice: log\_operation: Operation ‘monitor’ [19853] for device ‘FENCE\_SCSI’ returned: -201 (Generic Pacemaker error)  
Sep 13 05:07:17 [30109] ESDNAS1 stonith-ng: warning: log\_operation: FENCE\_SCSI:19853 [Failed: nodename or key is required]  
Sep 13 05:07:17 [30109] ESDNAS1 stonith-ng: warning: log\_operation: FENCE\_SCSI:19853 []  
Sep 13 05:07:17 [30109] ESDNAS1 stonith-ng: warning: log\_operation: FENCE\_SCSI:19853 [Please use ‘-h’ for usage]  
Sep 13 05:07:17 [30109] ESDNAS1 stonith-ng: warning: log\_operation: FENCE\_SCSI:19853 []  
Sep 13 05:07:17 [30110] ESDNAS1 lrmd: notice: log\_finished: finished - rsc:FENCE\_SCSI action:start call\_id:86 exit-code:1 exec-time:1180ms queue-time:0ms

Secondly I tried giving nodename as an option:

sudo crm configure primitive FENCE\_SCSI stonith:fence\_scsi params action=off devices="/dev/sdb" verbose=false nodename=linux-3wc8 op monitor interval=60s timeout=0s

Still the resource is not getting created.

Failed Actions:

- FENCE\_SCSI\_start\_0 on linux-3wc8 ‘unknown error’ (1): call=78, status=Error, exitreason=‘none’,  
last-rc-change=‘Mon Sep 30 03:07:09 2019’, queued=0ms, exec=1202ms
- FENCE\_SCSI\_start\_0 on linux-fqft ‘unknown error’ (1): call=85, status=Error, exitreason=‘none’,  
last-rc-change=‘Mon Sep 30 03:07:13 2019’, queued=1ms, exec=1199ms

The overall config is as follows:

# crm config show  
node 183725435: linux-3wc8  
node 183725437: linux-fqft  
node 183725442: linux-tzkc  
node 183725451: linux-7rbk  
primitive FENCE\_SCSI stonith:fence\_scsi \  
params action=off devices="/dev/sdb" verbose=false nodename=linux-3wc8 \  
op monitor interval=60s timeout=0s  
primitive PGSQL\_FS Filesystem \  
params device="/dev/sdb" directory="/nas" fstype=ext3 \  
op monitor interval=30 timeout=60  
primitive SERVICE systemd:sample \  
op start timeout=120 interval=0 \  
op stop timeout=120 interval=0 \  
op monitor timeout=100s interval=10s  
primitive failover-ip IPaddr \  
params ip=172.18.64.0 nic=eth0 cidr\_netmask=16 \  
op monitor interval=10s  
property cib-bootstrap-options: \  
have-watchdog=false \  
dc-version=1.1.13-10.4-6f22ad7 \  
cluster-infrastructure=corosync \  
cluster-name=hacluster \  
stonith-enabled=false \  
placement-strategy=balanced  
rsc\_defaults rsc-options: \  
resource-stickiness=1 \  
migration-threshold=3  
op\_defaults op-options: \  
timeout=600 \  
record-pending=true

Can someone please help with this!  
I am stuck at this step.

---

<div class="post-metadata">

**Author:** ![strahil-nikolov-dxc](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@strahil-nikolov-dxc](https://forums.suse.com/u/strahil-nikolov-dxc)\
**Post date:** [October 4, 2019, 5:51am UTC](https://forums.suse.com/t/fence-scsi-resource-creation-unknown-error/34414/2 "2019-10-04T05:51:23Z")

</div>

1. Never use naming like /dev/sdb - this is not a persistent name and might change in future reboots - you can use /dev/disk/by-id/scsi-…  
If your device is under multipath -use multipath device without friendly names (unless you have mapped wwids to friendly name and the setup is consistent on both nodes).  
For multiple devices you can use “,” to separate them.
2. Is your storage allowing you to use SCSI persistent reservations?
3. As the error states you lack some vital information for the fencing mechanism to work  
Check all options via:

```auto
crm ra info stonith:fence_scsi
```

The data bellow is based on memory and could be wrong , check all options via the ‘crm ra’ command above!

So you might need pcmk\_host\_list=“node1 node2 nodeN”  
All nodes should be listed here.  
pcmk\_reboot\_action=“off”  
This allows us to ‘off’ the node instead of a reboot.  
meta provides=“unfencing”  
This tells stonith-ng to “on” action on unfence.
