Changes between Version 25 and Version 26 of extend-disk-on-kvm-guest


Ignore:
Timestamp:
Dec 24, 2016, 7:00:16 AM (4 years ago)
Author:
IMC linksunten
Comment:

Add option to extend the volume with a relative amount of free space

Legend:

Unmodified
Added
Removed
Modified
  • extend-disk-on-kvm-guest

    v25 v26  
    123123== Step 4: Assign free space and resize filesystems ==
    124124
    125 The next step would be to assign the free space from the VG to the LV. That's what lvresize does. For example (size in GB is the new size you want):
     125The next step would be to assign the free space from the VG to the LV. That's what lvresize does.
     126
     127For example (size in GB is the new size you want):
    126128
    127129{{{
     
    130132
    131133will change the specified LV to have 50GB.
     134
     135Alternatively, you can provide the relative amount of free space you want to assign:
     136
     137{{{
     138lvresize --extents +95%FREE /dev/mapper/LVNAME
     139}}}
    132140
    133141Finally you would normally need to resize the filesystem as well so that it can make use of the extra space in the logical volume.