pacemaker - iscsi: failing to do a mount but works when cleaned up
I'm having these experiments with iscsi and pacemaker. I have a san that holds 3 partitions. I have a ocf:heartbeat:iscsi resource for it and it works like a charm.... well, mostly.
I have noticed that if I try to migrate the group that holds everything together, it will move the resources successfully up to the san and then the following resource, which is a mount point for one of its resources) will fail. On the log I can see this:
Now, if I try to do a cleanup from either of the nodes, it won't work.... the interesting part is _why_ it won't work. Instead of just trying to start the resource from that point (having the san active on the appointed node) it will bring everything down, then start everything up to the san, then the mount point and that fails. Then it tried to migrate to the other node and it fails with the same sequence and then it comes back to the node where it was before cleaning up activating up to the san (won't try to mount again).
The funny part is that if I stop the inactive node (by stopping corosync) and I do the clean up, it will work (unlike when both nodes were up, it won't bring the san resource down). Given that the failed attempts happen because the san has been activated right before the mount point I think that by the time the mount is going to be attempted, the resources from the san haven't been probed yet and so the devices that are on it are missing. Is there a way to make the san resource wait for the OS to probe it or something?
Thanks in advance.
Got it. Added a ocf:heartbeat:Delay resource after starting the san.
|All times are GMT -5. The time now is 02:56 AM.|