Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lvremove /dev/mapper/centos-home
- lvextend -L 500G /dev/mapper/centos-root
- mount /home
- ls: cannot open directory .: Input/output error.
- e2fsck -f /dev/mapper/vg_livecd-lv_home
- Step:1 Umount the file system
- # umount /home/
- Step:2 check the file system for Errors using e2fsck command.
- # e2fsck -f /dev/mapper/vg_livecd-lv_home
- Step:3 Reduce or Shrink the size of /home to required size.
- # resize2fs /dev/mapper/vg_livecd-lv_home 50G
- Step:4 Reduce the size using lvreduce command.
- # lvreduce -L 50G /dev/mapper/vg_livecd-lv_home
- Step:5 Check the filesystem before mount
- # e2fsck -f /dev/mapper/vg_livecd-lv_home
- Step:6 Mount the file system and verify its size.
- # mount /home
- Step1: Check the free available space in the Volume group
- # vgdisplay < Volume-Group-Name>
- Step2: Increase the size using Lvextend command
- # lvextend -L +120G /dev/mapper/vg_livecd-lv_root
- Step:3 Run the resize2fs command
- # resize2fs /dev/mapper/vg_livecd-lv_root
- Step:4 Verify Size
- # df -Th
Add Comment
Please, Sign In to add comment