Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.09 KB

mount_filesystems_in_lvm_partitions.md

File metadata and controls

59 lines (43 loc) · 1.09 KB

Mount filesystems in LVM partitions

  1. Check that LVM is installed on the system otherwise install it:
#Fedora Linux 

> sudo dnf install lvm2

#CentOS/RHEL/Oracle Linux 

> sudo yum install lvm2

#OpenSUSE/SUSE Linux 

> sudo zypper install lvm2

#Debian/Ubuntu Linux

> sudo apt install lvm2

#Arch Linux install

> sudo pacman -S lvm2
  1. Load the device mapper module:
> sudo modprobe dm-mod
  1. Scan the system for LVM volumes and identify the one that contains the volume needed:
> sudo vgscan 
  Found volume group "VolGrp0" using metadata type lvm2
  1. Activate the volume:
> sudo vgchange -ay VolGrp0
  1. Find the logical volume that contains the needed filesystem (in this case home):
> sudo lvs
  LV   VG      Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home VolGrp0 -wi-ao---- <448.38g
  root VolGrp0 -wi-ao----   20.00g
  swap VolGrp0 -wc-ao----    8.00g
  1. Prepare a mounting point for the volume:
> sudo mkdir /mount/home
  1. Mount the volume
> sudo mount /dev/VolGrp0/home /mnt/home