Description |
This article describes Logical Volume Manager, a tool in Linux that provides a more flexible and powerful way to manage disk storage compared to traditional partitioning methods. With LVM, this can create logical volumes that span across multiple physical disks, allowing for easier resizing and management of disk space. Here are the basic concepts and how LVM works. |
Scope | FortiSIEM. |
Solution |
To expand an LVM disk, follow these steps:
Step 1. Check the current disk and LVM setup.
df -h
Step 2. Add a new disk to the server and rescan the SCSI subsystem for new or removed devices without the server reboot.
fdisk -l |grep Disk
Step 3. Declare the required variable and create an LVM partition.
export DISK=/dev/sdb <-- Replace this disk with newly added disk.
Step 4. Create Physical Volume (PV) from the newly added disk.
Step 5. Extend Volume Group (VG).
Step 6. LV extend.
_LV_NAME="/dev/centos/root" <-- Mention LV PATH from above command. For ext format:- resize2fs ${_LV_NAME} <-- i.e. Run this command to resize if the partition is in EXT4 filesystem. For XFS format:- xfs_growfs ${_LV_NAME} <--i.e. Run this command to resize if the partition is in XFS filesystem. df -hT / <-- To verify the final expansion.
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.