Storage: Logical Volumes Flashcards
Device mapper
Creates virtual device and passes data from that virtual device to one or more physical devices
DM-Multipath
Provides redundancy and improved performance for block storage devices
Where do you find the config files for the multipath-tools package?
/etc/multipath.conf
mdadm
A tool used to create and manage software-based RAID arrays
/proc/mdstat File
Contains a snapshot of the kernel’s RAID/md state
How to view the RAID state?
cat /proc/mdstat
Logical Volume Manager (LVM)
Maps whole physical devices and partitions into one or more virtual containers called volume groups
What does the LVM offer?
● Dynamically create, delete, and resize volumes
● Map logical volumes across physical devices
● Create virtual snapshots of each logical volume
/dev/mapper/
contains all of the logical volumes on a system
pvscan
Scans for all physical devices being used as physical volumes
pvcreate
Initializes a drive or partition to use as a physical volume
pvdisplay
Lists attributes of physical volumes
pvs
Displays information about physical volumes
pvck
Checks the metadata of physical volumes
pvremove
Removes physical volumes