> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Implementing Integrated Storage

> This guide covers Vault’s Integrated Storage, its configuration, operation, and benefits for high availability and durability without external storage systems.

In this guide, we cover Vault’s Integrated Storage: what it is, why it matters, and how to configure and operate it. Introduced in Vault 1.4, Integrated Storage embeds a Raft-based backend directly within Vault for high availability and durability—without any external storage system.

<Frame>
  ![The image is an informational graphic about Vault Integrated Storage, highlighting its use of the Raft protocol and locally stored data for high availability and durability without external systems.](https://kodekloud.com/kk-media/image/upload/v1752878459/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/vault-integrated-storage-raft-protocol.jpg)
</Frame>

***

## Why Integrated Storage?

Prior to Vault 1.4, enterprise deployments required Consul or another external backend—adding complexity, network hops, and extra operational overhead. Integrated Storage solves this by:

* Storing all Vault data on each node’s local disk
* Replicating data across nodes via Raft
* Eliminating any external dependency for storage

In a three- or five-node cluster, every node maintains the same dataset. If nodes fail, remaining members serve requests as long as a quorum exists.

***

## Key Benefits

<Frame>
  ![The image is a slide titled "Introduction to Integrated Storage," highlighting benefits such as replicated data copies in a Vault cluster, eliminating network hops, and reducing administrative overhead. It includes a certification badge and a cartoon character at the bottom.](https://kodekloud.com/kk-media/image/upload/v1752878460/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/introduction-integrated-storage-benefits-slide.jpg)
</Frame>

* **No external backend**: Run Vault without Consul or other storage.
* **Reduced latency**: Reads and writes occur on local disk.
* **Simplified operations**: Troubleshoot only Vault, not two systems.

<Callout icon="lightbulb" color="#1CB2FE">
  For best performance, use storage-optimized volumes with high IOPS.
</Callout>

<Frame>
  ![The image is a slide titled "Introduction to Integrated Storage," recommending the use of storage-optimized, high IOPS volumes for local disk data storage. It features a Vault certification badge and a cartoon character at the bottom.](https://kodekloud.com/kk-media/image/upload/v1752878461/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/introduction-integrated-storage-high-iops.jpg)
</Frame>

***

## Feature Evolution

Since version 1.4, Vault’s Integrated Storage has gained:

| Feature                       | Availability     |
| ----------------------------- | ---------------- |
| Raft Replication              | OSS & Enterprise |
| Auto Snapshots                | Enterprise       |
| Cloud Auto-Join               | Enterprise       |
| Autopilot (cleanup, upgrades) | Enterprise       |

<Frame>
  ![The image describes integrated storage features for Vault Enterprise, highlighting replication, auto snapshots, cloud autojoin, and autopilot functionalities. It includes a certification badge and a cartoon character at the bottom.](https://kodekloud.com/kk-media/image/upload/v1752878462/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/vault-enterprise-storage-features-diagram.jpg)
</Frame>

***

## Comparative Advantages

<Frame>
  ![The image outlines the benefits of integrated storage over other solutions, highlighting reduced complexity, decreased costs, and easier troubleshooting. It includes icons and a character illustration, with a focus on Vault's integrated storage features.](https://kodekloud.com/kk-media/image/upload/v1752878463/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/integrated-storage-benefits-vault-illustration.jpg)
</Frame>

* **Lower complexity**: Single system for secrets and storage
* **Cost savings**: No additional Consul cluster or VMs
* **Easier troubleshooting**: Inspect only Vault logs and metrics
* **Disk-backed**: No in-memory bottlenecks

<Frame>
  ![The image outlines the benefits of integrated storage, highlighting similar architecture, fewer networking requirements, not being memory-bound, and no network hops required. It includes icons and brief descriptions for each benefit.](https://kodekloud.com/kk-media/image/upload/v1752878465/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/integrated-storage-benefits-architecture-diagram.jpg)
</Frame>

* **Familiar Raft** if you know Consul
* **Only two ports**: 8200 (API), 8201 (Raft RPC)
* **Durable writes** to disk

***

## Reference Architectures

| Architecture           | Nodes      | Fault Zones      | Quorum | Ports       |
| ---------------------- | ---------- | ---------------- | ------ | ----------- |
| Development Cluster    | 3          | 3 (AZs or racks) | 2/3    | 8200 & 8201 |
| Production Cluster     | 5          | 3 (AZs or racks) | 3/5    | 8200 & 8201 |
| Enterprise Replication | Primary/DR | Multi-region     | N/A    | 8200 & 8201 |

### Development Cluster (3 Nodes)

<Frame>
  ![The image illustrates a reference architecture for a development cluster, showing three nodes (A, B, C) across different fault zones with data replication between them. Node B is the Raft leader, while Nodes A and C are Raft followers.](https://kodekloud.com/kk-media/image/upload/v1752878466/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/development-cluster-reference-architecture.jpg)
</Frame>

* Three nodes in separate fault zones
* Local disk on each node
* Leader handles replication to followers

### Production Cluster (5 Nodes)

<Frame>
  ![The image illustrates a reference architecture for a production cluster with nodes distributed across three fault zones, highlighting a RAFT leader and followers.](https://kodekloud.com/kk-media/image/upload/v1752878467/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/production-cluster-reference-architecture-raft.jpg)
</Frame>

* Five nodes across three zones
* Tolerates up to two node failures (quorum of three)
* TCP 8201 for Raft RPC; 8200 remains API

### Enterprise Replication

<Frame>
  ![The image illustrates a replicated environment for enterprise-level deployments, showing a map of the United States with data centers for performance and disaster recovery replication. It includes a diagram of primary and DR clusters, emphasizing high availability and disaster recovery.](https://kodekloud.com/kk-media/image/upload/v1752878468/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/enterprise-replication-us-data-centers-diagram.jpg)
</Frame>

Use Integrated Storage in primary, performance, and DR clusters—replicate data across regions or data centers for disaster recovery.

***

## Performance Requirements

| Resource     | Recommendation                                        |
| ------------ | ----------------------------------------------------- |
| CPU & Memory | Consolidate Vault + Raft; monitor & scale             |
| Storage      | High-IOPS, ample capacity (*disk full → Vault stops*) |
| Networking   | Low latency, high throughput between nodes            |

<Frame>
  ![The image outlines performance requirements for CPU & Memory, Storage, and Networking, emphasizing resource consolidation, high-performing disks, and low latency connectivity.](https://kodekloud.com/kk-media/image/upload/v1752878469/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/performance-requirements-cpu-memory-storage.jpg)
</Frame>

<Callout icon="triangle-alert" color="#FF6B6B">
  If storage fills up, Vault will halt. Monitor disk usage closely.
</Callout>

***

## Configuration Overview

Add an Integrated Storage stanza to your Vault HCL configuration (see [Vault Raft Storage Docs](https://www.vaultproject.io/docs/configuration/storage/raft)):

```hcl theme={null}
listener "tcp" {
  address         = "0.0.0.0:8200"
  cluster_address = "0.0.0.0:8201"
  tls_disable     = true
}

storage "raft" {
  path                   = "/opt/vault/data"
  node_id                = "vault-node-a.hcvop.com"

  retry_join {
    auto_join = "provider=aws region=us-east-1 tag_key=vault tag_value=us-east-1"
  }

  performance_multiplier = 1
}

api_addr     = "https://vault.hcvop.com:8200"
cluster_addr = "https://vault-node-a.hcvop.com:8201"
```

### Common `storage "raft"` Parameters

* `path`: Local directory for Raft data (use high-performance disk)
* `node_id`: Unique identifier for this node
* `retry_join`: Discovery and join strategy (static or cloud auto-join)
* `performance_multiplier`: Adjust election & heartbeat intervals

***

## Retry Join Options

Vault supports two methods to join a Raft cluster:

1. **Static Join**: Specify `leader_api_addr` for existing nodes.
2. **Cloud Auto-Join**: Use `auto_join` with cloud tags (AWS, Azure, GCP).

If using TLS between nodes, configure certificate files:

```hcl theme={null}
retry_join {
  leader_api_addr         = "https://vault-node-b.hcvop.com:8200"
  leader_ca_cert_file     = "/opt/vault.d/ca.pem"
  leader_client_cert_file = "/opt/vault.d/cert.pem"
  leader_client_key_file  = "/opt/vault.d/pri.key"
}
```

<Frame>
  ![The image is a slide titled "Configuring Integrated Storage" with instructions on setting up a leader node in a cluster, including parameters like leader\_api\_addr, auto\_join, and certificate file paths. It also features a Vault certification badge and a cartoon character at the bottom.](https://kodekloud.com/kk-media/image/upload/v1752878470/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/configuring-integrated-storage-leader-node.jpg)
</Frame>

You can include multiple `retry_join` blocks to cover diverse discovery methods:

```hcl theme={null}
storage "raft" {
  path    = "/opt/vault/data"
  node_id = "vault-node-a.hcvop.com"

  retry_join {
    leader_api_addr         = "https://vault-node-b.hcvop.com:8200"
    leader_ca_cert_file     = "/opt/vault.d/ca.pem"
    leader_client_cert_file = "/opt/vault.d/cert.pem"
    leader_client_key_file  = "/opt/vault.d/pri.key"
  }

  retry_join {
    leader_api_addr         = "https://vault-node-c.hcvop.com:8200"
    leader_ca_cert_file     = "/opt/vault.d/ca.pem"
    leader_client_cert_file = "/opt/vault.d/cert.pem"
    leader_client_key_file  = "/opt/vault.d/pri.key"
  }

  performance_multiplier = 1
}
```

***

## Cluster Initialization & Day-2 Operations

### 1. Initialize and Unseal the First Node

```bash theme={null}
vault operator init        # Generates unseal keys & root token
vault operator unseal      # Use Shamir keys or auto-unseal
```

### 2. Join Additional Nodes

On each follower:

```bash theme={null}
vault operator raft join https://vault-node-a.hcvop.com:8200
```

### 3. Remove a Node Gracefully

```bash theme={null}
vault operator raft leave vault-4
# Peer removed successfully!
```

Always remove nodes via CLI to maintain quorum.

### 4. View Cluster Membership

```bash theme={null}
vault operator raft list-peers
# Node     Address            State     Voter
# vault-0  vault-0.hcvop:8201 leader    true
# vault-1  vault-1.hcvop:8201 follower  true
# vault-2  vault-2.hcvop:8201 follower  true
# vault-3  vault-3.hcvop:8201 follower  true
# vault-4  vault-4.hcvop:8201 follower  true
```

### 5. Raft Snapshots

<Frame>
  ![The image describes "Raft Snapshots," highlighting that integrated storage allows for manual or scheduled snapshot creation, which serves as a point-in-time backup including configuration data and KV store data. It also features a Vault certification badge.](https://kodekloud.com/kk-media/image/upload/v1752878471/notes-assets/images/HashiCorp-Certified-Vault-Operations-Professional-2022-Implementing-Integrated-Storage/raft-snapshots-manual-scheduled-backup.jpg)
</Frame>

#### Manual Snapshot

```bash theme={null}
vault operator raft snapshot save daily.snap
# [INFO] storage.raft: snapshot complete up to: index=389
```

#### Restore from Snapshot

```bash theme={null}
vault operator raft snapshot restore daily.snap
# [INFO] storage.raft.fsm: snapshot installed
```

Automate these commands via cron or your preferred scheduler—even in open source.

***

Integrated Storage is now the default choice for Vault clusters, offering durability, high availability, and simplified operations without sacrificing performance. Use these guidelines to plan, configure, and manage your Vault Integrated Storage deployments effectively.

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/hashicorp-certified-vault-operations-professional-2022/module/b59936f2-3ed0-4ec2-b1fd-971dcce5c2ca/lesson/cc08ce0d-3179-436b-9d9a-bcf1618a9646" />
</CardGroup>
