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

  1. Collect information about the current environment.

    imageinfo
    cat /etc/os-release
    df -hT
    lvs -o lv_name,lv_path,vg_name,lv_size
    vgs
  2. If the file system type is not xfs, use the following tune2fs command to check the online resize option. If the file system type is xfs, then you can skip this step.

    tune2fs -l /dev/mapper/VGExaDb-LVDbSys1 | grep resize_inode
  3. Resize both LVDbSys1 and LVDbSys2 logical volumes using the lvextend command.

    lvextend -L +10G /dev/VGExaDb/LVDbSys1
    lvextend -L +10G /dev/VGExaDb/LVDbSys2
  4. Resize the file system within the logical volume.

    • For ext3 and ext4 file system types
    resize2fs /dev/VGExaDb/LVDbSys1
    resize2fs /dev/VGExaDb/LVDbSys2
    • For the xfs file 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
  5. Verify the space was extended for the active system partition

    df -hT