Загрузка...

Linux LVM Tutorial: Create Logical Volume Step by Step

🚀 Expand your Linux storage without reinstalling or losing data!
In this hands-on tutorial, Phuong will show you how to configure LVM (Logical Volume Manager) in Linux — step by step — from disk partitioning to creating Physical Volumes (PV), Volume Groups (VG), and Logical Volumes (LV) that you can use immediately.

Whether you’re using Ubuntu, CentOS, or RHEL, this guide will help you master flexible storage management and prepare you for LPIC-2, RHCSA, or any Linux System Administration certification.

⏱️ Timestamps

00:00 – Why use LVM to expand storage easily
00:08 – What is LVM (Logical Volume Manager)?
00:16 – Overview: What we’ll do in this video
00:43 – Step 1: Identify disks using lsblk
01:22 – Step 2: Create partitions for LVM (fdisk /dev/sdb)
02:28 – Change partition type to LVM (8E)
03:04 – Create Physical Volume → pvcreate /dev/sdb1
03:49 – Create Volume Group → vgcreate vg1 /dev/sdb1
04:23 – Verify Volume Groups with vgs
05:04 – Create Logical Volume → lvcreate -n data_lv -L 3G vg1
06:27 – Format with EXT4 → mkfs.ext4 /dev/vg1/data_lv
07:06 – Mount Logical Volume → /data
08:30 – Verify by copying test file
08:41 – Logical Volume ready & working! 🎉
09:00 – Next: How to extend this LV dynamically

🔧 Commands shown in this video (copyable):
lsblk
fdisk /dev/sdb1
pvcreate /dev/sdb1
vgcreate vg1 /dev/sdb1
vgs
lvcreate -n data_lv -L 3G VG1
mkfs.ext4 /dev/VG1/data_lv
mkdir /data
mount /dev/VG1/data_lv /data

💡 What You’ll Learn

✅ How LVM works and why it’s powerful
✅ Step-by-step commands: pvcreate, vgcreate, lvcreate, mkfs, mount
✅ How to build expandable Linux storage without downtime
✅ The foundation for managing servers like a pro SysAdmin

🔗 Related Article & Resources:

📹 Watch "Extending a Logical Volume": https://youtu.be/YTEpOIBO9WE

📘 Full guide on blog: How to Create and Extend LVM in Linux (Step-by-Step): http://bit.ly/4nJ94b7
https://youtu.be/YTEpOIBO9WE

🔗 Related article & resources: https://luuhophuong.com

#Linux #LVM #LogicalVolume #LinuxTutorial #SystemAdministrator #CentOS #Ubuntu #LinuxStorage #DevOps #LinuxTraining #PhuongIT #LPIC2 #RHCSA #LearnLinux

Видео Linux LVM Tutorial: Create Logical Volume Step by Step канала From Lab to Job – IT Skills with Phuong
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять