Increasing size of an EXT3 formatted LVM Volume

Published: 2018-01-26 10:42:19 +0000
Categories: BASH,




This details the steps required to unmount and resize an ext3 formatted logical volume (LVM) on Linux. The steps listed are performed on Debian, but should be more or less the same for any distro.

The basic approach is more or less the same for any filesystem, though some of the tools used for resizing may vary


# Set the following variables
# MOUNTPOINT - should be the path of the mount (e.g. /mnt/myfiles)
# VOL_NODE - The node of the LVM volume, will normally be /dev/[VOLGROUP NAME]/[Volume Name]

# Get details of the node used by the mount
mount | grep $MOUNTPOINT

# If exported via NFS, Remove it from NFS exports to unlock the mount point
nano /etc/exports 
service nfs-kernel-server restart

# Unmount the volume

# Check how much unallocated space is in the Volume Group 

# Extend the mount by 1TB 
lvextend -L+1T $VOL_NODE

# Run a FSCK against the filesystem (otherwise resize2 will refuse to run)
e2fsck -f $VOL_NODE

# Resize the filesystem to the new size of the volume
resize2fs $VOL_NODE

# Mount again

# Verify the new size
df -h | grep $MOUNTPOINT

# If needed, re-enable in NFS
nano /etc/exports
service nfs-kernel-server restart


LVM, resize, expand, extend, increase, ext3, linux, extfs, resize2fs,

Latest Posts

Urldecode string (LUA)
FFMPEG Convert YUV444p to YUV420p (BASH)
Forcing FFMPEG to honour segment length in HLS Stream Creator (BASH)
Force CURL to place request to a specific IP (BASH)
Set a variable only if it is undefined (Javascript)
Ignore query string with Nginx caching proxy (NGinx)
Get breakdown of UK and non-UK votes for a Parliamentary Petition (Python)
Decompress Mozilla Firefox jsonlz4 bookmark backup files (Python)
Setting Git author details for a single repo (Git)
Checking Virtual Machine Resource Allocations with Libvirt (BASH)

Copyright © 2019 Ben Tasker | Sitemap | Privacy Policy
Available at and snippets.6zdgh5a5e6zpchdz.onion