22 lines
466 B
Markdown
22 lines
466 B
Markdown
# LVM Reference Sheet
|
|
|
|
### Create LVM Volume and its filesystem in Thin Pool
|
|
|
|
```
|
|
lvcreate -V 100M -T PoolName/ThinPoolName -n VolumeName
|
|
mkfs.ext4 /dev/ThinPoolName/VolumeName
|
|
#or
|
|
mkfs.btrfs /dev/ThinPoolName/VolumeName
|
|
|
|
```
|
|
|
|
|
|
### Resize LVM Volume and its filesystem in Thin Pool
|
|
|
|
```
|
|
lvextend --resizefs -L +100M /dev/ThinPoolName/VolumeName
|
|
# When using btrfs
|
|
lvextend -L +100M /dev/ThinPoolName/VolumeName
|
|
btrfs filesystem resize max MountPoint
|
|
```
|