This shows you the differences between two versions of the page.
|
lvm_handling [2012/04/11 15:11] root [Prepare new disk/VolumeGroup/Logical Volume] |
lvm_handling [2017/04/16 23:50] (current) root [Prepare new disk/VolumeGroup/Logical Volume] |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| | | ||
| Create filesytem | Create filesytem | ||
| + | |||
| + | EXT FS: | ||
| mkfs.ext4 -F -b 4096 /dev/<vgname>/<lvname> | mkfs.ext4 -F -b 4096 /dev/<vgname>/<lvname> | ||
| Depending on distribution use relevant ext2/ext3/ext4 file system type. | Depending on distribution use relevant ext2/ext3/ext4 file system type. | ||
| + | XFS FS: | ||
| + | mkfs.xfs /dev/<vgname>/<lvname> | ||
| ===== Resize existing Logical volume ===== | ===== Resize existing Logical volume ===== | ||
| Line 31: | Line 35: | ||
| Resize Physical Volume | Resize Physical Volume | ||
| pvresize /dev/<device> | pvresize /dev/<device> | ||
| + | |||
| + | If LUN is under multipath: | ||
| + | multipathd resize map <multipath_device> | ||
| + | |||
| + | Where <multipath_device> is mpath<x> or wwid depending on multipath configuration. | ||
| Extend Logical Volume | Extend Logical Volume | ||
| Line 37: | Line 46: | ||
| Extend filesytem which resides on Logical Volume | Extend filesytem which resides on Logical Volume | ||
| + | |||
| + | EXT FS: | ||
| resize2fs /dev/<vgname>/<lvname> | resize2fs /dev/<vgname>/<lvname> | ||
| - | [[https://access.redhat.com/kb/docs/DOC-9855]] | + | XFS FS: |
| + | xfs_growfs /dev/<vgname>/<lvname> | ||
| + | [[https://access.redhat.com/kb/docs/DOC-9855]] | ||
| ===== Resize swap on Logical volume ===== | ===== Resize swap on Logical volume ===== | ||