Who rated this post

cancel
Showing results for 
Search instead for 
Did you mean: 
the_rock
MVP Platinum
MVP Platinum

Tip for extending disk space without entering maintanance mode or rebooting

Hey guys,

Credit for this 100% goes to @yukaia . I wanted to share it, as Im sure a lot of people may never heard about it (I certainly never have) and would always reboot, go into maintenance mode and run lvm_manager and then extend, reboot again.

Examples that can be done and works on vm, physical box, regardless of the version/jumbo hotfix:

I always recommend take backup and/or snapshot (just in case), though in my lab, that was not needed, worked like a charm.
 
Example 1:
 
Say you want to extend / dir to 35 BG:
 
First command:
 
lvresize -L35G vg_splat/lv_current
 
Then -> xfs_growfs /
 
Example 2:
 
If you wish to extend /var/log to say 55GB

 

lvresize -L55G vg_splat/lv_log

 

xfs_growfs /var/log

 

Run df -h to verify!

WARNING: As @emmap had indicated, this would prevent you from doing major upgrades (jumbos would work on same version), and I even confirmed with R&D that there is NO WAY to bypass this requirement, since OS needs to have enough unallocated space to generate snapshot during the upgrade.

 

Andy

Best,
Andy
(1)
Who rated this post