FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
How To Resize LVM Volumes Dynamically In Cloud-Init VMs (Step-By-Step)
How-ToDevOps

How To Resize LVM Volumes Dynamically In Cloud-Init VMs (Step-By-Step)

via Dev.to TutorialPatima Poochai2h ago

Logical Volume Manager (LVM) is the preferred storage framework for Linux VMs. It's easy to resize LVM volumes, migrate data between devices, and combine multiple physical disks into one easy-to-mange volume. These features are especially useful in a virtualized environment, as they enable you to do these tasks without physical access to the machine. When creating VM templates, it's common to create a fixed-size volume for the root partition and use cloud-init to grow the partition size dynamically when cloning the template (unless you want to create multiple templates with each one having 10G, 11G, 12G... storage and so on). However, you can't simply use the built-in growpart module to resize logical volumes. It only works on partitions . But that doesn't mean you should avoid using LVM in your templates. After a few trials and tribulations, I've found a workaround that allows cloud-init to automatically resize logical volumes, as well as a few pitfalls you should avoid when using clo

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

This Perplexity Embedding Model Understands Chunks in Context
How-To

This Perplexity Embedding Model Understands Chunks in Context

Hackernoon • 2h ago

Saatva HD Mattress Review: A Solution for Heavy-Bodied Sleepers
How-To

Saatva HD Mattress Review: A Solution for Heavy-Bodied Sleepers

Wired • 2h ago

4 Tactics for Shipping Faster Without Losing Software Quality
How-To

4 Tactics for Shipping Faster Without Losing Software Quality

Hackernoon • 2h ago

Middleware patterns in Go without over-engineering
How-To

Middleware patterns in Go without over-engineering

Medium Programming • 4h ago

I Thought Learning More Tech Would Make Me a Better Developer — I Was Wrong
How-To

I Thought Learning More Tech Would Make Me a Better Developer — I Was Wrong

Medium Programming • 5h ago

Discover More Articles