Comment 2 for bug 1864404

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote : Re: [bionic] fence_scsi cannot open /var/run/cluster/fence_scsi.key (does not exist)

Make sure to also create the "fence_scsi.dev" file doing the same:

# node01

create a file /etc/fence_scsi.dev containing: /dev/disk/by-path/acpi-VMBUS:01-scsi-0:0:0:0

# node02

create a file /etc/fence_scsi.dev containing: /dev/disk/by-path/acpi-VMBUS:01-scsi-0:0:0:0

# node03

create a file /etc/fence_scsi.dev containing: /dev/disk/by-path/acpi-VMBUS:01-scsi-0:0:0:0

Note: of course do change contents of the file to your shared disk device "by-path" path.

Then, in all 3 nodes, add a 2nd line to /etc/tmpfiles.d/fence_scsi.conf file:

L /var/run/cluster/fence_scsi.key - - - - /etc/fence_scsi.key
L /var/run/cluster/fence_scsi.dev - - - - /etc/fence_scsi.dev

And reboot the node to check if the file gets created after boot:

rafaeldtinoco@clubionic01:~$ sudo ls /var/run/cluster
fence_scsi.dev fence_scsi.key

rafaeldtinoco@clubionic02:~$ sudo ls /var/run/cluster
fence_scsi.dev fence_scsi.key

rafaeldtinoco@clubionic03:~$ sudo ls /var/run/cluster
fence_scsi.dev fence_scsi.key