linux:lvm
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:lvm [2020/05/24 09:54] – created bstafford | linux:lvm [2022/11/23 12:49] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| =====Volumes===== | =====Volumes===== | ||
| - | For this article, we assume that the volume group we are working it called | + | For this article, we assume that the volume group we are working it called |
| ====Create==== | ====Create==== | ||
| - | - Create a 4GB logical volume called | + | - Create a 4GB logical volume called |
| - We then format it with the ext4 filesystem.< | - We then format it with the ext4 filesystem.< | ||
| ====Increase==== | ====Increase==== | ||
| - | Extend the volume | + | Extend the volume |
| < | < | ||
| - | If you skip the < | + | If you skip the '' |
| < | < | ||
| resize2fs / | resize2fs / | ||
| Line 23: | Line 23: | ||
| - Check the file system.< | - Check the file system.< | ||
| - Shrink the file system. Notice that we are deliberately shrinking it below our target size of 5GB.< | - Shrink the file system. Notice that we are deliberately shrinking it below our target size of 5GB.< | ||
| - | - Shrink the volume | + | - Shrink the volume |
| - Expand the file system from 4G to 5G.< | - Expand the file system from 4G to 5G.< | ||
| ====Delete==== | ====Delete==== | ||
linux/lvm.1590314074.txt.gz · Last modified: (external edit)
