OCF_HEARTBEAT_ISCSI(7)
π ocf_heartbeat_iscsi π
okay bestie, welcome to the ocf_heartbeat_iscsi manual page β that's the OCF_HEARTBEAT_ISCSI(7) situation, and it's literally about managing a local iSCSI initiator and its connections to iSCSI targets. yes we're doing storage networking today, hydrate first π₯€
β¨ NAME β¨
ocf_heartbeat_iscsi β manages a local iSCSI initiator and its connections to iSCSI targets π¦
πΈ SYNOPSIS πΈ
iscsi [start | stop | status | monitor | meta-data | validate-all]
π DESCRIPTION π
It's an OCF Resource Agent for iSCSI, no cap. You use it to add (that's start) or remove (that's stop) iSCSI targets. That's the whole vibe. π
π SUPPORTED PARAMETERS π
okay so these are the knobs you can turn. each one got a little personality, here we go:
portalβ the iSCSI portal address, and the format is exactly this:{ip_address|hostname}[":"port]. It's required, it's a string, and there's no default β you gotta bring your own. πtargetβ the iSCSI target IQN. This one is unique, required, a string, and again no default. you must provide it, bestie. π―discovery_typeβ the target discovery type. Check the open-iscsi documentation for the supported discovery types, because that's where the real tea is. Optional string, and it defaults to"sendtargets". πiscsiadmβ the open-iscsi administration utility binary. Optional string, defaults to"iscsiadm". that's just the name of the tool she's calling. π οΈudevβ if the next resource depends on udev creating a device, then we wait until it's finished. On a normally loaded host this should be done quickly, but you may be unlucky (π). If you are not using udev, set this to"no"β otherwise we will spin in a loop until a timeout occurs. Optional string, defaults to"yes". β³try_recoveryβ if the iSCSI session exists but is currently inactive/broken, which is most probably due to network problems, the iSCSI layer will try to recover. If this parameter is set to true, we'll wait for the recovery to succeed. In that case themonitoroperation can only time out, so you should set the monitor op timeout attribute appropriately. Optional boolean, defaults tofalse. π
π₯ SUPPORTED ACTIONS π₯
This resource agent supports the following actions (operations). mind the timeouts, they're giving main character energy:
startβ starts the resource. Suggested minimum timeout:120s. πstopβ stops the resource. Suggested minimum timeout:120s. πstatusβ performs a status check. Suggested minimum timeout:30s. πmonitorβ performs a detailed status check. Suggested minimum timeout:30s. Suggested interval:120s. πvalidate-allβ performs a validation of the resource configuration. Suggested minimum timeout:5s. βmethodsβ suggested minimum timeout:5s. πmeta-dataβ retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s. π
π EXAMPLE CRM SHELL π
here's an example config for an iscsi resource using the crm(8) shell, periodt:
primitive p_iscsi ocf:heartbeat:iscsi \
params \
portal=string \
target=string \
op monitor depth="0" timeout="30s" interval="120s"
π EXAMPLE PCS π
and here's the same idea but with pcs(8). notice the OCF_CHECK_LEVEL moment, she's different:
pcs resource create p_iscsi ocf:heartbeat:iscsi \
portal=string \
target=string \
op monitor OCF_CHECK_LEVEL="0" timeout="30s" interval="120s"
β SEE ALSO β
- http://clusterlabs.org/ β go look, iykyk π
π«Ά AUTHOR π«Ά
ClusterLabs contributors (see the resource agent source for information about individual authors) π
and that's the whole page bestie, you ate π β this was resource-agents version UNKNOWN, dated 04/08/2026. slay, go configure your iSCSI targets, ily π β¨
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms