Difference between revisions of "Lab 5 Warnings / Debrief"
Line 13: | Line 13: | ||
'''Certainly...''' | '''Certainly...''' | ||
− | [[Image:lvma.png|thumb|right|800px|'''LVM''' ('''Logical Volume Manager''') is a program to manage file system size in an efficient manner.]] | + | [[Image:lvma.png|thumb|right|800px|'''LVM''' ('''Logical Volume Manager''') is a program to manage file system size in an efficient manner. If this diagram was displayed vertically as opposed to horizontally, you could visualize building a large cake with many layers!]] |
'''Think of Using LVM like "building a cake":''' | '''Think of Using LVM like "building a cake":''' | ||
− | * A cake needs to rest on a platter. | + | * A cake needs to rest on a '''platter'''. |
− | * In our case the platter is known as | + | * In our case the ''platter'' is known as a '''volume group'''. One default volume group is automatically created if you enable LVM when installing a Linux OS. In this way we can support '''different volumes groups for different purposes''' (eg. accounting dept, IT, management, etc) just like different platters would hold different types of cakes for the party! |
* Just one thing: We can grow our space between other partitions in various volume groups (or platters). | * Just one thing: We can grow our space between other partitions in various volume groups (or platters). | ||
+ | |||
+ | '''Need a Bigger Cake? Add More Layers!''' | ||
+ | |||
+ | * We can grow a larger cake by adding more layers. | ||
+ | * In our case, we define and add '''physical Volumes''' to our Volume Group. | ||
+ | * Some think of physical volumes as partitions. | ||
+ | * When you want to make a bigger cake, add more layers (in our case, add more physical volumes to volume group | ||
+ | * The partitions should be created and formatted, then can be added as physical volumes to the volume group | ||
+ | |||
+ | |||
+ | |||
Revision as of 13:37, 7 July 2015
Contents
Purpose of Lab 5
What is LVM?
Monitoring and ensuring adequate space for a Linux file-system is considered to be a critical task for any system administrator. An application called LVM is a very useful tool for Linux system administrators to easily manage file systems - even when the computer system is running!
LVM (Logical Volume Management) is used to manage hard disk drives / partitions for Linux and Unix systems. LVM provides more flexibility than just partitioning hard disks. Volume Groups are areas used to define Physical Volumes (i.e. hard disks, disk partitions, or other forms of storage devices). Logical Volumes are then used to relate directories (mount points) to a specific physical volume or for a "range" or "span" of physical volumes.
LVM allows more flexibility and growth potential for Linux systems (for example, having Logical volumes span multiple hard disks). CentOS uses LVM by default upon installation. Other Linux distributions may provide the capacity to install LVM,
Any Simple Comparisons for LVM !?!
Certainly...
Think of Using LVM like "building a cake":
- A cake needs to rest on a platter.
- In our case the platter is known as a volume group. One default volume group is automatically created if you enable LVM when installing a Linux OS. In this way we can support different volumes groups for different purposes (eg. accounting dept, IT, management, etc) just like different platters would hold different types of cakes for the party!
- Just one thing: We can grow our space between other partitions in various volume groups (or platters).
Need a Bigger Cake? Add More Layers!
- We can grow a larger cake by adding more layers.
- In our case, we define and add physical Volumes to our Volume Group.
- Some think of physical volumes as partitions.
- When you want to make a bigger cake, add more layers (in our case, add more physical volumes to volume group
- The partitions should be created and formatted, then can be added as physical volumes to the volume group
Common Mistakes / Warnings
Preparing for Lab Sign-Off
In order to properly complete your lab and move to the next lab, you must have your instructor "sign-off" on your lab
- Each "signed-off" lab (before due date) is worth 1% of your final grade.
- Signing-off on labs help to spot errors that can cause problems with future labs.
- Do you ask the instructor what to check for! Read at the bottom of the lab the requirements, and have all proof available for instructor to view at same time.
- Failing to be prepared and asking instructor what to check when assignment is mark will result in deduct of marks!
- For example, open multiple terminals with command results. If properly set-up ahead of sign-off, the process should only take instructor approx 20 seconds to sign-off your lab.
- If you do not have your lab-logbook, you MUST show your work and your lab log-book to your instructor for sign-off in the next class. This may cause a late penalty if past the required due date.