Formatting and mounting logical volumes

Опубликовано: 05 Ноябрь 2024
на канале: lecture snippets
4,996
61

This video is part of a course titled Linux LVM Fundamentals using Ubuntu 18.04. Here is a link to the course: https://dev9.us/course/linux-lvm-fund...

Video objectives:
Format a Logical Volume (LV) with an Ext4 filesystem
Format a Logical Volume with an XFS filesystem
Create a mount location for Logical Volumes
Mount Logical Volumes to a directory
Determine which filesystem is used on a Logical Volume

Commands used:
mkfs.ext4 /dev/mydata-vg/volume1-lv
mkfs.xfs /dev/mydata-vg/volume2-lv
mkdir /mnt/storage1
mkdir /mnt/storage2
mount /dev/mydata-vg/volume1-lv /mnt/storage1
mount /dev/mydata-vg/volume2-lv /mnt/storage2
df- h
lsblk -f
umount /mnt/storage1
umount /mnt/storage 2
sudo nano /etc/fstab