Logical volume Manager Flashcards
LVM benefits
Let’s you create one file system across multiple storage devices
LVM lets you
Easily migrate data from one system to another
LVM mirroring
Lets you store data on two devices
Snapshots
Lets you get the state of your data at a specific moment
Physical volumes
Any devices that the linux operating system can access
Volume group
Groups of physical volumes
Logical volumes
Parts of a volume group
lvmdiskscan
Checks for all the devices that can be used with lvm
lsblk
Tells you more about disks
pv create path
Creates a physical volume
pvs
Lists physical volumes
vgcreate name physical volume path
Creates a volume group with a physical volume underneath
vgs
Tells you about a volume group
lvcreate -L 20G-n lv_data volumegrpup
Creates a 2gigogical volume
lvs
Prints your logical volumes
mkfs
Make file system. Needs an ext value and a path
PE and LE size
4 MB
lvextend -L +5G
Extend the size of a logical volume
-r on lv extend
Resizes the file system on the logical volume
lvcreate -m 1
Creates 1 mirror lv
vgremove
Destroys a vg
lgremove
Destroys an lg
pgremove
Destroys a physical volume
pgmove
Let’s you move a physical volume to a different volume group