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

Remotely backing up PFsense Configuration (BASH)
FFMPEG: Converting RMVB to X264 MP4 (BASH)
Recursively print table (print_r equivalent) (LUA)
Bulk Delete Comments from (Self-Hosted) JIRA Issues (Misc)
Add a static entry to the ARP table (BASH)
SSL Cipher Hex codes to Human Readable Names (Misc)
Convert Ascii to Binary (BASH)
Intercepting Outbound DNS Queries (BASH)
Handle Google Verification files within NGinx Configuration (NGinx)
Getting WhatsApp Rich Snippet Previews Working (Misc)

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