- About lvresize: To resize a logical volume
- It comes from “lvm2-2.02.72” package.
- Configuration Files:
- Path: /sbin/lvresize
Examples:
1. To resize a logical volume (in units of logical extents)
| $ lvresize -l [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}] $ lvresize –extents [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}] |
2. To do not perform fsck before resizing filesystem when filesystem requires it
| $ lvresize -n $ lvresize –nofsck |
3. To disable udev synchronization
| $ lvresize –noudevsync |
4. To resize underlying filesystem together with the logical volume using fsadm
| $ lvresize -r $ lvresize –resizefs |
5. To change or set the logical volume size in units of megabytes
| $ lvresize -L [+|-]LogicalVolumeSize[bBsSkKmMgGtTpPeE] $ lvresize –size [+|-]LogicalVolumeSize[bBsSkKmMgGtTpPeE] |
6. To gives the number of stripes to use when extending a Logical Volume
| $ lvresize -i stripes $ lvresize –stripes stripes |
7. To gives the number of kilobytes for the granularity of the stripes
| $ lvresize -I StripeSize $ lvresize –stripesize StripeSize |
Related Commands: fsadm, lvm, lvconvert, lvcreate, lvreduce, lvchange