Operations 5 min read

How to Expand an Unmounted 160 GB Disk with LVM Without Reboot

Learn step‑by‑step how to identify an unmounted 160 GB disk on a Linux server, create the necessary LVM partitions, extend the volume group and logical volume, and resize the filesystem—all without rebooting—using commands such as df, fdisk, pvcreate, vgextend, lvextend, and xfs_growfs.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Expand an Unmounted 160 GB Disk with LVM Without Reboot

A Linux virtual machine showed only about 30 GB free with df -h, but fdisk -l revealed an unused 160 GB disk that needed to be mounted without restarting the system.

What is LVM? Logical Volume Manager (LVM) is a flexible disk management tool that allows administrators to create, resize, and move logical volumes without affecting existing data, and it works without requiring a reboot.

LVM Architecture

Check current disk usage

df -h

Output shows only ~30 GB available.

Inspect disks

fdisk -l

Reveals an unmounted 160 GB disk (/dev/sdb).

Create a new partition of type 8e (LVM)

fdisk /dev/sdb

Create a physical volume

pvcreate /dev/sdb

Output: "Physical volume \"/dev/sdb\" successfully created".

Verify the physical volume

pvdisplay

Extend the volume group

vgextend centos /dev/sdb

Output: "Volume group \"centos\" successfully extended".

Inspect the volume group

vgdisplay

Extend the logical volume

lvextend -l +100%FREE /dev/mapper/centos-root

Output confirms the size change from 35.47 GiB to 185.50 GiB and that the logical volume was resized successfully.

Grow the filesystem

xfs_growfs /dev/mapper/centos-root

Verify the final disk space

df -h

The new space is now available.

References: linux.cn article , cnblogs tutorial .

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxLVMDisk ExpansionFilesystem
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.