Increase or Decrease the Size of Static Partition in Linux

Increase or Decrease the Size of Static Partition in Linux

Follow my last article on creating LVM

Now,

A.FOR EXPANSION:

  1. Extension:
lvextend — size +<size> /dev/<vg name>/<lv name>

No alt text provided for this image

2. Formatting:

resize2fs /dev/<vg name>/<lv name>

No alt text provided for this image

To check :

hadoof dfsadmin -report

No alt text provided for this image

B.FOR REDUCTION:

lvreduce -L <size> /dev/<vg name>/<lv name>

No alt text provided for this image

To check :

No alt text provided for this image

COMPLETED!!!



To view or add a comment, sign in

Explore content categories