Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk11 min

How to Use LVM to Manage Storage on a Linux VPS

A practical, safety-first guide to LVM on Linux VPS servers: understand PVs, VGs, and LVs; create and mount a data volume; expand provider disks; grow filesystems; and use snapshots without confusing them for independent backups.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Linux Logical Volume Manager (LVM) when you need storage that can be pooled, resized, or reorganized without redesigning partitions each time. The workflow is layered: expose a usable disk or an enlarged virtual disk in your VPS, initialize it as a physical volume (PV), place it in a volume group (VG), create a logical volume (LV), format and mount that LV, and then grow each layer in order when capacity increases. LVM cannot create capacity that your VPS provider has not attached or allocated.

What LVM does on a VPS

Canonical describes LVM as a way to allocate and manage mass-storage space that is more flexible than traditional partitioning. Instead of giving a filesystem a fixed partition and leaving the rest of the disk stranded, LVM separates storage into three layers:

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Physical volume (PV): a disk or partition prepared for LVM metadata, such as /dev/sdX.
  • Volume group (VG): a pool that combines one or more PVs and provides free extents for logical volumes.
  • Logical volume (LV): a virtual block device carved from the VG. You normally format an LV with a filesystem and mount it like a disk partition.

That separation lets you add another PV to an existing pool, enlarge an LV when free extents are available, and create point-in-time snapshots. It also adds operational steps: the provider, the partition table (if present), the PV, the VG, the LV, and the filesystem are separate layers that must be handled in the right order.

What your VPS must provide first

LVM operates inside the guest operating system. It cannot manufacture disk space, bypass a provider quota, or turn an unallocated control-panel option into a Linux block device. Before running any LVM command, use the VPS control panel or API to do one of the following:

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
  • Attach a second block device that appears inside Linux.
  • Increase the size of an existing virtual disk and confirm that the guest can see the larger device.

Device names vary by platform. A disk may appear as /dev/sdb, an NVMe-style path, or another provider-specific name. Never assume that /dev/sdb is unused. Run:

lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS

Check the reported size, filesystem type, and mountpoints against the provider’s change. A device that already contains a filesystem or mountpoint may hold important data. DigitalOcean’s storage guidance puts the safety rule plainly: back up important server data before proceeding.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Plan the layout before changing disks

Choose a dedicated data VG or an existing VG

For a new data disk, a dedicated group such as vg_data makes ownership clear. If the server already has an LVM group with free extents, you can extend that group instead. A single VG can contain multiple LVs for application data, logs, or databases, but leaving some free space gives you room to respond to future growth and to create snapshots.

Decide how much of the pool to allocate

An LV can have a fixed size, for example 100 GiB, leaving the rest of the VG free. The command-line units accepted by lvcreate are binary: G means GiB and M means MiB for command input. The alternative -l 100%FREE consumes all currently free extents. Use that only when you have deliberately chosen not to reserve space for another LV or a snapshot.

Choose a filesystem and mountpoint

The filesystem is created after the LV exists. The examples below use ext4 because its creation and growth commands are straightforward. If you use XFS, use its filesystem-specific growth command during expansion. Pick a stable mountpoint such as /srv/data, and decide whether services should stop while you format, mount, or migrate data.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Create and mount a new LVM data volume

The following sequence is destructive at the formatting stage. Replace /dev/sdX with the device that lsblk verified; do not copy it literally if it identifies a system disk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Inspect the device and record the starting state. Run lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS. Confirm the expected capacity and that the target has no needed partitions, filesystem, or mountpoint.
  2. Back up important data. A disk-identification mistake or an incorrect mkfs target can destroy data. Have a tested recovery path before continuing.
  3. Initialize the PV. Run sudo pvcreate /dev/sdX. This writes LVM metadata to the selected disk or partition. Inspect the result with sudo pvs or sudo pvdisplay.
  4. Create a VG, or add the PV to an existing one. For a new pool, run sudo vgcreate vg_data /dev/sdX. To add capacity to an existing pool, run sudo vgextend existing_vg /dev/sdX. Confirm the pool with sudo vgs or sudo vgdisplay.
  5. Create the LV. A fixed-size example is sudo lvcreate -L 100G -n lv_data vg_data. Check the result with sudo lvs or sudo lvdisplay. The resulting device is commonly available as /dev/vg_data/lv_data.
  6. Create the filesystem. For ext4, run sudo mkfs.ext4 /dev/vg_data/lv_data. Formatting an LV erases anything already on that LV, so verify the path one more time before pressing Enter.
  7. Create a mountpoint and mount the LV. Run sudo mkdir -p /srv/data, then sudo mount /dev/vg_data/lv_data /srv/data.
  8. Verify the live mount. Use findmnt /srv/data, lsblk -f, and df -hT. These checks show the source LV, filesystem type, and usable filesystem capacity.
  9. Make the mount persistent. Obtain the filesystem UUID with sudo blkid /dev/vg_data/lv_data. Add a matching UUID entry to /etc/fstab, for example:
    UUID=your-actual-uuid /srv/data ext4 defaults,nofail 0 2
    Use the UUID returned on your server, not the illustrative text above.
  10. Validate fstab before rebooting. Run sudo mount -a. If it reports an error, fix the entry while the current session is still available, then confirm again with findmnt /srv/data.

Mounting by UUID avoids depending on a device name that can change when virtual disks are attached in a different order. Keep the LV path and UUID in your server documentation so another administrator can identify the storage during recovery.

Add a second disk to an existing LVM setup

When the provider attaches a separate device, the least disruptive expansion path is to make that device a new PV and add it to the current VG. First confirm the new disk with lsblk; then run:

  1. sudo pvcreate /dev/sdX
  2. sudo vgextend vg_data /dev/sdX
  3. sudo vgs to confirm that VFree increased.
  4. sudo lvextend -L +20G /dev/vg_data/lv_data to add a defined amount, or sudo lvextend -l +100%FREE /dev/vg_data/lv_data to allocate all free extents.
  5. Grow the filesystem with the command for its type, then verify with lvs and df -hT.

The new PV does not automatically enlarge an LV. It only enlarges the VG’s pool; the LV and filesystem remain their previous sizes until you explicitly extend and grow them.

Extend an LVM volume after increasing the VPS disk

Growing an existing virtual disk is a different path from attaching a second one because the PV may sit inside a partition. Work from the outside layer inward:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
  1. Increase capacity at the provider. Enlarge the VPS disk in the provider control panel, or attach additional storage. Wait for the operation to complete according to the provider’s status.
  2. Confirm the guest sees the new boundary. Run lsblk. If the disk size has not changed in the guest, do not run LVM commands yet; resolve the provider or guest rescan issue first.
  3. Extend a partition when one ends before the new disk boundary. Use the partitioning tool appropriate to your distribution and storage layout. Recheck the resulting partition path and size with lsblk. This step is not needed when the PV occupies the whole disk and the PV device itself already spans the enlarged capacity.
  4. Resize the PV. Run sudo pvresize /dev/<partition> when the PV is on a partition, or use the whole-disk PV path when appropriate. Check sudo pvs and sudo vgs for the newly available free space.
  5. Extend the LV. Use sudo lvextend -L +20G /dev/vg_data/lv_data for an exact increment or sudo lvextend -l +100%FREE /dev/vg_data/lv_data for all available extents. The -L form expresses a size; the -l form expresses extents or percentages.
  6. Grow the filesystem. For ext4, run sudo resize2fs /dev/vg_data/lv_data. For XFS, run sudo xfs_growfs /srv/data using the mounted filesystem’s path. Filesystem growth is a separate operation from LV growth.
  7. Verify both layers. Run sudo lvs to check the LV size and df -hT to check usable filesystem space. If the LV grew but df did not, the filesystem-growth step was missed or used the wrong tool.

Some LVM versions support sudo lvextend -r ..., which requests filesystem resizing together with LV expansion. Treat it as a convenience, not a substitute for verification: confirm the LV with lvs and the filesystem with df -hT, and use the filesystem-specific command directly when the combined operation is unavailable or fails.

Use LVM snapshots for backup workflows

An LVM snapshot is a point-in-time logical-volume image. The original LV continues to be used, while the snapshot presents the blocks as they existed when the snapshot was created. This can let a backup process read a stable filesystem image without shutting down the server.

Create a classic snapshot with:

sudo lvcreate -s -L 10G -n lv_data_snap /dev/vg_data/lv_data

The -L 10G value reserves space for changed blocks, not a second full copy of the source data. As the source LV changes, the snapshot consumes its allocated copy-on-write area. Monitor it with:

sudo lvs

Watch the snapshot’s data-usage percentage during the backup. If the snapshot fills, it becomes unusable and the backup must not be treated as complete. Delete a finished snapshot only after the backup has been verified, using the LV path for that snapshot and your normal change-control process.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Snapshot consistency limits

A snapshot freezes the filesystem view at creation time, but that does not automatically make every application backup-consistent. Databases and other write-heavy services may need a flush, checkpoint, or application-aware backup procedure before the snapshot is read. The snapshot itself is also not independent storage: losing the VG, VPS, or provider disk can lose both the original and its snapshot. Copy backup data to separate storage and test restoration.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

LVM compared with other storage choices

The right choice depends on where you want allocation, snapshots, and recovery to be controlled. Provider-attached volumes and filesystem-native features may be simpler for a particular workload; LVM is useful when you need Linux-side pooling and LV-level control.

Storage approach Expansion model Snapshot behavior Portability and recovery Operational trade-off
LVM LV inside the VPS Add PVs or enlarge a PV, extend the VG, then the LV and filesystem. LVM snapshots provide a point-in-time block view; snapshot space must be monitored. Configuration is managed in the guest; recovery requires the disk, VG metadata, and filesystem to be available. Flexible pooling and multiple LV types, with more layers to operate.
Separate provider block volume Use the provider’s attach or resize workflow, then configure the guest. Provider snapshot behavior depends on that provider’s implementation and plan. Provider controls attachment and recovery between VPS instances; guest mount configuration still matters. Can be simpler when provider automation is strong, but ties operations to provider capabilities.
Filesystem-native volume or feature Use the filesystem’s own growth and management tools. Snapshot and backup functions depend on the filesystem and its tooling. Portability depends on filesystem support in the recovery environment. Fewer LVM layers, but no LVM pool or LV allocation model.

Performance and redundancy are not guaranteed merely by choosing LVM. The underlying VPS storage, the number and type of PVs, and the LV type determine the actual failure and performance model. LVM can create linear, striped, mirrored, snapshot, and thin-pool logical volumes, but each type has different administration and recovery requirements; use the simplest type that meets your workload.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Verification and monitoring commands

Keep these checks in your runbook and capture their output after every storage change:

  • lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS — maps disks, partitions, filesystems, and mounts.
  • pvs or pvdisplay — shows PV membership and free space.
  • vgs or vgdisplay — shows VG size and unallocated extents.
  • lvs or lvdisplay — shows LV sizes, attributes, and snapshot usage.
  • findmnt /srv/data — confirms which device is mounted at the intended path.
  • lsblk -f and blkid — show filesystem types and UUIDs used by /etc/fstab.
  • df -hT — reports filesystem capacity and type, which can differ from the LV size until the filesystem is grown.

Monitoring should alert separately on filesystem fullness, VG free space, and snapshot copy-on-write usage. A filesystem can be nearly full while the VG still has free extents, or an LV can be enlarged while its filesystem remains unchanged.

Common failure modes and recovery decisions

The new disk is not visible

If lsblk does not show the provider-attached or enlarged device, stop. LVM cannot initialize a path the guest does not see. Check the provider operation, attachment state, and guest device discovery before considering pvcreate.

pvcreate warns about existing signatures

That warning may indicate a filesystem, RAID metadata, or another previous use. Do not force initialization until you have identified the device and confirmed that its contents can be discarded. Re-run lsblk and inspect mountpoints and filesystem types.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The VG has no free space

lvextend cannot allocate beyond the VG’s free extents. Add a new PV with pvcreate and vgextend, or enlarge an existing PV and run pvresize. Then recheck vgs before extending the LV.

The LV grew but applications still report the old capacity

The filesystem was not grown, or the wrong filesystem command was used. Confirm the LV with lvs, identify the filesystem with df -hT or lsblk -f, then run resize2fs for ext4 or xfs_growfs for XFS and verify again.

The server fails to mount after reboot

Check the UUID from blkid, the filesystem type and mountpoint in /etc/fstab, and the output of sudo mount -a. A device-name entry that changed after a disk attachment can cause this problem; UUID-based entries avoid that dependency.

A snapshot becomes full

Stop relying on that snapshot, investigate the backup duration and write rate, and remove or recreate it with an appropriately sized copy-on-write area after confirming the original LV remains healthy. A full snapshot is not a usable backup image.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Operational rules for safe LVM administration

  • Identify devices by size, type, filesystem, and mountpoint before every destructive command.
  • Keep independent backups; an LVM snapshot is a temporary consistency aid, not disaster recovery.
  • Reserve VG space when you expect future LVs or snapshots instead of allocating 100% of free extents automatically.
  • Expand in order: provider disk, partition (if applicable), PV, VG, LV, then filesystem.
  • Record the VG name, LV name, filesystem type, UUID, mountpoint, and the commands used to grow it.
  • Validate /etc/fstab with mount -a before rebooting.
  • After every change, compare lvs with df -hT; they measure different layers.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.