Skip to content

feat(blog): how LINSTOR and DRBD keep your data alive when a server dies#626

Merged
Timur Tukaev (tym83) merged 1 commit into
mainfrom
blog/linstor-drbd-replicated-storage
Jul 22, 2026
Merged

feat(blog): how LINSTOR and DRBD keep your data alive when a server dies#626
Timur Tukaev (tym83) merged 1 commit into
mainfrom
blog/linstor-drbd-replicated-storage

Conversation

@tym83

@tym83 Timur Tukaev (tym83) commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

New blog post about replicated block storage in Cozystack: LINSTOR + DRBD.

What

  • Adds a blog post covering DRBD synchronous block-level replication, LINSTOR orchestration, storage pool setup (ZFS), the replicated StorageClass, and node-failure behavior
  • Includes a social card image (1200×630) wired via images: front matter for link previews

Why

Continues the platform series (previous: network isolation between tenants). Storage is one of the most common questions from bare-metal operators evaluating Cozystack.

Preview

Netlify deploy preview: /blog/2026/07/linstor-drbd-replicated-storage/

Summary by CodeRabbit

  • Documentation
    • Added a blog post explaining how LINSTOR and DRBD provide replicated storage and maintain data availability during server failures.
    • Included an overview of the replication workflow, storage setup guidance, failure recovery behavior, and links to additional documentation.

Fifth post of the platform series, covering replicated block storage:
DRBD synchronous replication, LINSTOR orchestration, storage pool
setup, the replicated StorageClass, and node-failure behavior.
Facts verified against the v1.5 storage docs.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: tym83 <6355522@gmail.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit 98621ee
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/6a60415e14f1eb0008e98e17
😎 Deploy Preview https://deploy-preview-626--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

Replicated storage blog

Layer / File(s) Summary
Architecture and storage setup
content/en/blog/2026-07-22-linstor-drbd-replicated-storage/index.md
Adds the article metadata, introduction, DRBD/LINSTOR/CSI overview, and instructions for configuring ZFS-backed replicated storage.
Failure handling and supporting resources
content/en/blog/2026-07-22-linstor-drbd-replicated-storage/index.md
Documents node-failure behavior, resynchronization, storage references, and community links.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: kvaps

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the new blog post about LINSTOR and DRBD replicated storage and captures the main change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch blog/linstor-drbd-replicated-storage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@content/en/blog/2026-07-22-linstor-drbd-replicated-storage/index.md`:
- Around line 55-73: Update the ZFS storage-pool setup around “Step 2 — Create
storage pools (ZFS)” to configure each created pool with the documented
failmode=continue setting, so DRBD handles disk failures. Apply the setting to
every node’s pool and preserve the existing verification step.
- Around line 86-93: Revise the concluding claims in “What happens when a node
fails” to qualify recovery as applying to a supported single-node failure rather
than guaranteeing uninterrupted, loss-free recovery. Explicitly state that
replication is not a backup and that multiple failures, corruption, or recovery
issues still require backups; avoid promising no manual intervention, restore,
or data loss.
- Around line 75-84: Update the setup instructions before “Step 4 — Use it” to
define or clearly link the required replicated StorageClass, including the
repository-required autoPlace: "3" setting. Ensure users create this
prerequisite before applying application configurations with storageClass:
replicated, while preserving the stated three-replica behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 57d3fc32-c2bd-4feb-935a-c0d813b2bb1c

📥 Commits

Reviewing files that changed from the base of the PR and between 2c93841 and 98621ee.

⛔ Files ignored due to path filters (1)
  • content/en/blog/2026-07-22-linstor-drbd-replicated-storage/linstor-drbd-replicated-storage.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • content/en/blog/2026-07-22-linstor-drbd-replicated-storage/index.md

Comment on lines +55 to +73
**Step 2 — Create storage pools (ZFS):**

```bash
linstor physical-storage create-device-pool \
zfs node1 \
/dev/nvme0n1 /dev/nvme1n1 \
--pool-name data \
--storage-pool data
```

Repeat for each node.

**Step 3 — Verify:**

```bash
linstor storage-pool list
```

You should see a `data` pool on each node with available capacity.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Configure ZFS to let DRBD handle disk failures.

The setup creates ZFS pools but omits zpool set failmode=continue ..., which the repository’s installation documentation recommends so DRBD—not ZFS—handles disk failures. Add this step for every pool or explicitly qualify the failure behavior. (cozystack.io)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/en/blog/2026-07-22-linstor-drbd-replicated-storage/index.md` around
lines 55 - 73, Update the ZFS storage-pool setup around “Step 2 — Create storage
pools (ZFS)” to configure each created pool with the documented
failmode=continue setting, so DRBD handles disk failures. Apply the setting to
every node’s pool and preserve the existing verification step.

Source: MCP tools

Comment on lines +75 to +84
**Step 4 — Use it:**

Any application that specifies `storageClass: replicated` now gets DRBD-replicated volumes (three replicas by default). PostgreSQL, MongoDB, VM disks — all of them.

```yaml
# In any application config:
values:
storageClass: replicated
size: 50Gi
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Create the replicated StorageClass before instructing users to consume it.

These steps never define the StorageClass, yet the post says applications can use it and receive three replicas. The repository setup requires creating a StorageClass with autoPlace: "3"; without that prerequisite, a fresh cluster may fail to provision the PVC. Include the manifest or clearly link to the required prerequisite. (cozystack.io)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/en/blog/2026-07-22-linstor-drbd-replicated-storage/index.md` around
lines 75 - 84, Update the setup instructions before “Step 4 — Use it” to define
or clearly link the required replicated StorageClass, including the
repository-required autoPlace: "3" setting. Ensure users create this
prerequisite before applying application configurations with storageClass:
replicated, while preserving the stated three-replica behavior.

Source: MCP tools

Comment on lines +86 to +93
## What happens when a node fails

1. DRBD detects the node is gone.
2. The volume remains available on the surviving replica node.
3. Kubernetes reschedules the pod to a node that has the replica.
4. When the failed node comes back, DRBD automatically resyncs.

No manual intervention. No restore from backup. No data loss.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Do not promise backup-free, loss-free recovery.

A replicated volume can remain available after a supported single-node failure, but “No manual intervention. No restore from backup. No data loss.” is an unsafe absolute guarantee. Qualify this to state the supported failure scenario and explicitly remind operators that replication is not a backup; multiple failures, corruption, or recovery issues still require backups. (cozystack.io)

🧰 Tools
🪛 LanguageTool

[style] ~93-~93: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...l intervention. No restore from backup. No data loss. ## Documentation - [Storag...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/en/blog/2026-07-22-linstor-drbd-replicated-storage/index.md` around
lines 86 - 93, Revise the concluding claims in “What happens when a node fails”
to qualify recovery as applying to a supported single-node failure rather than
guaranteeing uninterrupted, loss-free recovery. Explicitly state that
replication is not a backup and that multiple failures, corruption, or recovery
issues still require backups; avoid promising no manual intervention, restore,
or data loss.

Source: MCP tools

@tym83
Timur Tukaev (tym83) merged commit 10b0078 into main Jul 22, 2026
7 checks passed
@tym83
Timur Tukaev (tym83) deleted the blog/linstor-drbd-replicated-storage branch July 22, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant