Chapter 15 - Managing Advanced Storage Flashcards
What is an important advantage of LVM (Logical Volume Manager)?
LVM offers a flexible solution for managing storage. Volumes are no longer bound to the restrictions of physical hard drives. If additional storage space is needed, the volume group can easily be extended by adding a new physical volume, so that disk
space can be added to the logical volumes.
What is another advantage of LVM besides flexible storage management?
- LVM supports snapshots
- If a hard disk is failing, data can be moved within the volume group (through the pvmove command), the failing disk can then be removed from the volume group, and a new hard disk can be added dynamically.
What is a snapshot in LVM?
A snapshot is a copy of the current state of the logical volume.
How is a snapshot in LVM created?
LVM snapshots are created by copying the logical volume administrative data (the metadata) that describes the current state of files to a snapshot volume.
What command is used to mode data between volume groups?
pvmove command
Which command to create logical volumes?
pvcreate
In the fdisk an gdisk utilities what is the option to use to change the partition type from the menu?
“t” option
What is the partition type code for a LVM partition in fdisk and gdisk?
in fdisk it is 8e
in gdisk it is 8e00
Which command to use to flag a LVM partition to be used as a physical volume?
pvcreate
Which command to use to verify if the physical volume has been created?
pvs
Which command to use to see a summary of the physical
volumes and their attributes?
pvs or pvdisplay
Which command to get a very compact overview of the current storage configuration on your server?
lsblk
How to use the vgcreate command?
Type vgcreate followed by the name of the volume group you want to create and the name of the physical device you want to add to it.
Eg. vgcreate vgdata /dev/sdc1
What is a physical extent size in volume groups?
The physical extent size defines the size of the building blocks used to create logical volumes. A logical
volume always has a size that is a multiple of the physical extent size
What command to use to specify the physical extent size you want to use?
vgcreate -s