Basic Linux Storage Scenario #3

Learn Linux storage with Basic Linux Storage Scenario #3

A New Project has been started in your organization. The developer of this project needs additional disk space for the source code programs related to this project to be stored in their respective home directories. Increase the size of /home to 650MB. If for some reason you are unable to resize it to 650MB, any size between 630MB and 660MB will suffice.

Note: While performing the above operation there should not be any data loss of existing data in the /home directory.Basic Linux Storage Scenario #3

Commands to extend partition size:

  • df –h //STD Partition
  • lvextend
  • resize2fs
$df –h                                  //Check what kind of storage is allocated to /home
$vgdisplay
$lvextend –L 650M /dev/vg/lv-home       // you will get the allocated lv to /home

Read this also: