---
name: "ocf_heartbeat_gcp-pd-move"
section: "7"
platform: "linux"
package: "resource-agents"
version: "1:4.16.0-3+deb13u2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_heartbeat_gcp-pd-move"
---

# ocf\_heartbeat\_gcp-pd-move(7)

Attach/Detach a persistent disk on current GCP instance

## NAME

ocf\_heartbeat\_gcp-pd-move - Attach/Detach a persistent disk on current GCP instance

## SYNOPSIS

**gcp-pd-move** \[start \| stop \| monitor \| meta-data\]

## DESCRIPTION

Resource Agent that can attach or detach a regional/zonal disk on current GCP instance. Requirements :

\- Disk has to be properly created as regional/zonal in order to be used correctly.

## SUPPORTED PARAMETERS

**disk\_name**

The name of the GCP disk.

(unique, required, string, no default)

**disk\_scope**

Disk scope

(optional, string, default "detect")

**disk\_csek\_file**

Path to a Customer-Supplied Encryption Key (CSEK) key file

(optional, string, no default)

**mode**

Attachment mode (READ\_WRITE, READ\_ONLY)

(optional, string, default "READ\_WRITE")

**device\_name**

An optional name that indicates the disk name the guest operating system will see.

(optional, boolean, default false)

**stackdriver\_logging**

Use stackdriver\_logging output to global resource (yes, true, enabled)

(optional, string, default "no")

## SUPPORTED ACTIONS

This resource agent supports the following actions (operations):

**start**

Starts the resource. Suggested minimum timeout: 300s.

**stop**

Stops the resource. Suggested minimum timeout: 15s.

**monitor**

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

**meta-data**

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

## EXAMPLE CRM SHELL

The following is an example configuration for a gcp-pd-move resource using the [**crm**(8)](/crm/8.md) shell:

```
primitive p_gcp-pd-move ocf:heartbeat:gcp-pd-move \
  params \
    disk_name=string \
  op monitor timeout="15s" interval="10s" depth="0"
```

## EXAMPLE PCS

The following is an example configuration for a gcp-pd-move resource using [**pcs**(8)](/pcs/8.md)

```
pcs resource create p_gcp-pd-move ocf:heartbeat:gcp-pd-move \
  disk_name=string \
  op monitor timeout="15s" interval="10s" OCF_CHECK_LEVEL="0"
```

## SEE ALSO

**http://clusterlabs.org/**

## AUTHOR

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