Sponsor:

Your company here ā€” click to reach over 10,000 unique daily visitors

ocf_heartbeat_nvmet-subsystem - Man Page

NVMe-oF target export agent

Synopsis

nvmet-subsystem [start | stop | status | monitor | meta-data | validate-all]

Description

Manages NVMe-oF subsystems. An NVMe-oF subsystem is part of an NVMe-oF target. A subsystem must be created first, before namespace(s) and port(s).

Supported Parameters

nqn

The NVMe Qualified Name (NQN) is used to identify the remote NVMe storage target. It is similar to an iSCSI Qualified Name (IQN). While it is a free-form string, you should follow the convention: nqn.2014-08.com.vendor:nvme:nvm-subsystem-sn-12345

(unique, required, string, no default)

allowed_initiators

Allowed initiators. A space-separated list of initiators allowed to connect to this target. Initiators are identified by their NQN. If the list is empty, any initiator will be allowed to connect.

(optional, string, no default)

serial

The serial of the subsystem. Set it to a random 16 character hex value. Use hexdump -n 8 -e '4/4 "%08x" 1 "\n"' /dev/urandom

(optional, string, no default)

Supported Actions

This resource agent supports the following actions (operations):

start

Starts the resource. Suggested minimum timeout: 10s.

stop

Stops the resource. Suggested minimum timeout: 10s.

status

Performs a status check. Suggested minimum timeout: 10s. Suggested interval: 10s.

monitor

Performs a detailed status check. Suggested minimum timeout: 10s. Suggested interval: 10s.

meta-data

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.

validate-all

Performs a validation of the resource configuration. Suggested minimum timeout: 10s.

Example CRM Shell

The following is an example configuration for a nvmet-subsystem resource using the crm(8) shell:

primitive p_nvmet-subsystem ocf:heartbeat:nvmet-subsystem \
  params \
    nqn=string \
  op monitor timeout="10s" interval="10s" depth="0"

Example PCS

The following is an example configuration for a nvmet-subsystem resource using pcs(8)

pcs resource create p_nvmet-subsystem ocf:heartbeat:nvmet-subsystem \
  nqn=string \
  op monitor timeout="10s" interval="10s" OCF_CHECK_LEVEL="0"

See Also

http://clusterlabs.org/

Author

ClusterLabs contributors (see the resource agent source for information about individual authors)