Created
October 19, 2022 21:14
-
-
Save warrenronsiek/5e899a996f33a06f18d9e133f68e9a62 to your computer and use it in GitHub Desktop.
Set up LVM on top of Raid and mount it in ubuntu server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo vgdisplay | |
| # assuming the vg you want is called vg0 | |
| sudo lvcreate -l 100%VG -n storage_lv vg0 | |
| sudo lvdisplay | |
| sudo fdisk -l | |
| mkfs.ext4 /dev/mapper/vg0-storage_lv | |
| sudo mount /dev/mapper/vg0-storage_lv /home/warren/storage | |
| lsblk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment