<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-use-lvm-with-shared-storage-3w36b2ab2" -->

---
title: How to use LVM with shared storage | daily.dev
description: LVM&#x27;s shared volume groups (VG) feature enables multiple hosts to dynamically split and manage SAN storage without copying data over the network. The setup...
canonical: https://daily.dev/posts/how-to-use-lvm-with-shared-storage-3w36b2ab2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to use LVM with shared storage | daily.dev
og:description: LVM&#x27;s shared volume groups (VG) feature enables multiple hosts to dynamically split and manage SAN storage without copying data over the network. The setup...
og:url: https://daily.dev/posts/how-to-use-lvm-with-shared-storage-3w36b2ab2
og:image: https://api.daily.dev/og/posts/3w36b2aB2.png
og:image:alt: How to use LVM with shared storage
og:image:width: 1200
og:image:height: 630
og:locale: en
---

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

# How to use LVM with shared storage

**[Red Hat Developer](https://daily.dev/sources/rhdev)** · 11 min read · 0 upvotes · 0 comments

## Summary

LVM's shared volume groups (VG) feature enables multiple hosts to dynamically split and manage SAN storage without copying data over the network. The setup relies on the lvmlockd daemon and sanlock lock manager, which coordinate access using only the shared LUNs — no network configuration needed. Locking uses either SCSI COMPARE AND WRITE or Disk Paxos, with leases renewed every 20 seconds. Host failures are handled via SCSI-3 persistent reservations (PR) or watchdog timers. The guide walks through full setup: configuring lvm.conf, starting wdmd/sanlock/lvmlockd services, identifying LUNs by WWN, creating a shared VG with vgcreate --shared, starting locking on each host, and creating/activating LVs across hosts with exclusive lock enforcement.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developers.redhat.com/articles/2026/07/27/how-to-use-lvm-with-shared-storage>

## Similar posts on daily.dev

- [How to get raw device mapping with OpenShift Virtualization](https://daily.dev/posts/how-to-get-raw-device-mapping-with-openshift-virtualization-lpcay9hb2) · Red Hat Developer · 0 upvotes · 0 comments
- [I ignored storage discipline in Proxmox until a restore actually mattered](https://daily.dev/posts/i-ignored-storage-discipline-in-proxmox-until-a-restore-actually-mattered-dq3dkvisc) · XDA Developers · 0 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux)

[View this post on daily.dev](https://daily.dev/posts/how-to-use-lvm-with-shared-storage-3w36b2ab2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to use LVM with shared storage","url":"https://daily.dev/posts/how-to-use-lvm-with-shared-storage-3w36b2ab2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-use-lvm-with-shared-storage-3w36b2ab2"},"datePublished":"2026-07-27T03:12:41.496Z","dateModified":"2026-07-27T03:13:03.013Z","description":"LVM's shared volume groups (VG) feature enables multiple hosts to dynamically split and manage SAN storage without copying data over the network. The setup...","image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","thumbnailUrl":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","isAccessibleForFree":true,"articleSection":"Red Hat Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Red Hat Developer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2a8895f3216c4900bdc455585a4ad3e4","url":"https://daily.dev/sources/rhdev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-use-lvm-with-shared-storage-3w36b2ab2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Red Hat Developer","item":"https://daily.dev/sources/rhdev"},{"@type":"ListItem","position":3,"name":"How to use LVM with shared storage"}]}
```

