Guest User

Untitled

a guest
May 23rd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. lvremove /dev/mapper/centos-home
  2.  
  3. lvextend -L 500G /dev/mapper/centos-root
  4.  
  5. mount /home
  6.  
  7. ls: cannot open directory .: Input/output error.
  8.  
  9. e2fsck -f /dev/mapper/vg_livecd-lv_home
  10.  
  11. Step:1 Umount the file system
  12. # umount /home/
  13.  
  14. Step:2 check the file system for Errors using e2fsck command.
  15. # e2fsck -f /dev/mapper/vg_livecd-lv_home
  16.  
  17. Step:3 Reduce or Shrink the size of /home to required size.
  18. # resize2fs /dev/mapper/vg_livecd-lv_home 50G
  19.  
  20. Step:4 Reduce the size using lvreduce command.
  21. # lvreduce -L 50G /dev/mapper/vg_livecd-lv_home
  22.  
  23. Step:5 Check the filesystem before mount
  24. # e2fsck -f /dev/mapper/vg_livecd-lv_home
  25.  
  26. Step:6 Mount the file system and verify its size.
  27. # mount /home
  28.  
  29. Step1: Check the free available space in the Volume group
  30. # vgdisplay < Volume-Group-Name>
  31.  
  32. Step2: Increase the size using Lvextend command
  33. # lvextend -L +120G /dev/mapper/vg_livecd-lv_root
  34.  
  35. Step:3 Run the resize2fs command
  36. # resize2fs /dev/mapper/vg_livecd-lv_root
  37.  
  38. Step:4 Verify Size
  39. # df -Th
Add Comment
Please, Sign In to add comment