Changes between Version 21 and Version 22 of extend-disk-on-kvm-guest


Ignore:
Timestamp:
Apr 4, 2012, 4:05:49 PM (12 years ago)
Author:
Daniel Kahn Gillmor
Comment:

clean up LV and filesystem resize instructions

Legend:

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

    v21 v22  
    114114== Step 2: Assign free space and resize filesystems ==
    115115
    116 The next step would be to assign the free space from the VG to the LV. That's what lvextend does. For example (size in GB is the new size you want):
     116The 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):
    117117
    118118{{{
    119 lvextend --size 50GB /dev/mapper/LVNAME
     119lvresize --size 50GB /dev/mapper/LVNAME
    120120}}}
    121121
    122 will add 100% of the VG's free space to the specified LV.
     122will change the specified LV to have 50GB.
    123123
    124 Finally you would normally need to resize the filesystem as well. This is done for ext2/ext3/ext4 like that:
     124Finally you would normally need to resize the filesystem as well so that it can make use of the extra space in the logical volume.
     125
     126If your filesystem is ext3 or ext4, and the filesystem is currently mounted (online), you should be able to do an online resize with just:
     127
     128{{{
     129resize2fs /dev/mapper/LVNAME
     130}}}
     131
     132If the filesystem isn't currently mounted, it's good form to check its integrity before resizing, like so:
    125133
    126134{{{