- About lvextend : To extend the size of a logical volume
- It comes from “lvm2-2.02.72” package.
- Configuration Files:
- Path: /sbin/lvextend
Examples:
1. To disable the udev synchronization
| $ lvextend –noudevsync |
2. To Extend or set the logical volume size in units of logical extents
| $ lvextend -l +10%VG|LV|PVS|FREE|ORIGIN $ lvextend –extents +10%VG|LV|PVS|FREE|ORIGIN $ lvextend -l +10%VG $ lvextend -l +10%LV $ lvextend -l +10%PVS $ lvextend -l +100%FREE |
3. To Extend or set the logical volume size in units of megabytes
| $ lvextend -L [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE] $ lvextend –size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE] |
4. To Gives the number of stripes for the extension
| $ lvextend -i stripes $ lvextend –stripes stripes |
5. To Gives the number of kilobytes for the granularity of the stripes
| $ lvextend -I stripesize $ lvextend –stripesize stripesize |
6. To Proceed with size extension without prompting
| $ lvextend -f $ lvextend –force |
7. To do not perform fsck before extending filesystem when filesystem requires it
| $ lvextend -n $ lvextend –nofsck |
8. To resize underlying filesystem together with the logical volume using fsadm
| $ lvextend -r $ lvextend –resizefs |
Related Commands: fsadm, lvm, lvcreate, lvconvert, lvreduce, lvresize, lvchange