Skip to content

Instantly share code, notes, and snippets.

@warrenronsiek
Created October 19, 2022 21:14
Show Gist options
  • Select an option

  • Save warrenronsiek/5e899a996f33a06f18d9e133f68e9a62 to your computer and use it in GitHub Desktop.

Select an option

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
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