Tuesday, March 1, 2016

How to Resize Root LVM Logical Volume

How to Resize Root LVM Logical Volume

Boot with rescue CD. Skip mounting of the system partitions.

# lvm vgchange -a y
# e2fsck -f /dev/VolGroup00/LogVol00
# resize2fs -f /dev/VolGroup00/LogVol00 10G
# lvm lvreduce -L10G /dev/VolGroup00/LogVol00

Above maybe wrong !!!!!


Example: Removed one LV, and enlarged another LV

# umount /oracle_grid
# df -h
# lvremove /dev/mapper/vg_knaerp01n-lv_oracle_grid
# lvdisplay /dev/mapper/vg_knaerp01n-lv_fra
# man lvextend
# lvextend -L+20G /dev/vg_knaerp01n/lv_fra
# df -h
# umount /fra
# e2fsck -f /dev/vg_knaerp01n/lv_fra
# resize2fs /dev/vg_knaerp01n/lv_fra

# mount /dev/mapper/vg_knaerp01n-lv_fra /fra


No comments:

Post a Comment

  How to Change Instance Type & Security Group of EC2 in AWS By David Taylor Updated April 29, 2023 EC2 stands for Elastic Compute Cloud...