# Extending the root LVM Partition on Database Servers
# Extending the root LVM Partition on Systems Running Oracle Exadata System Software Release 11.2.3.2.1 or Later
- Collect information about the current environment.
imageinfo | |
cat /etc/os-release | |
df -hT | |
lvs -o lv_name,lv_path,vg_name,lv_size | |
vgs |
- If the file system type is not
xfs, use the followingtune2fscommand to check the online resize option. If the file system type isxfs, then you can skip this step.
tune2fs -l /dev/mapper/VGExaDb-LVDbSys1 | grep resize_inode |
- Resize both
LVDbSys1andLVDbSys2logical volumes using the lvextend command.
lvextend -L +10G /dev/VGExaDb/LVDbSys1 | |
lvextend -L +10G /dev/VGExaDb/LVDbSys2 |
- Resize the file system within the logical volume.
- For
ext3andext4file system types
resize2fs /dev/VGExaDb/LVDbSys1 | |
resize2fs /dev/VGExaDb/LVDbSys2 |
- For the
xfsfile system type
xfs_growfs / | |
mkdir -p /tmp/mnt/root | |
mount -t xfs /dev/VGExaDb/LVDbSys2 /tmp/mnt/root | |
xfs_growfs /tmp/mnt/root | |
umount /tmp/mnt/root |
- Verify the space was extended for the active system partition
df -hT |