In this video Kevin Dankwardt describes how logical volumes fit into the LVM abstraction layers. We create and resize Logical Volumes use lvcreate, lvextend, fsadm, and lvresize
- [Instructor] Now let's talk about logical volumes.…Logical volumes are carved out of a volume group,…and volume groups, as we should remember,…are made out of physical volumes.…So we create a logical volume with lvcreate.…In the example here, we're going to create one of size 700G,…we're going to call it lvm1…and it's going to take space out of vg1,…which of course needs to have enough space for that.…After that lvcreate, were going to get a new device file.…The device file will be / dev / name of the volume group…/ name of the logical volume,…and that's like a partition and we can format it.…
In this case, we're going to format it with ext4.…One of the great things about logical volumes…is you can change their size.…Here we see doing an lvextend…to set the size of a logical volume to be 400M.…Now, on your logical volume,…you probably have a file system you formatted it.…You could resize the file system with the fsadm command.…Here we're resizing the file system in lvm1 to be 300M.…If you're going to shrink a logical volume,…
- Partitioning storage
- Creating, mounting, and unmounting file systems
- Formatting file systems
- Making volumes with LVM
- Adding storage security
- Managing swap spaces
- Backing up and recovering Linux storage systems
- Working with networked file systems like NFS and SSHFS
Skill Level Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
Linux: Multitasking at the Command Linewith Scott Simpson39m 1s Intermediate
1. Disk Partitions, Formatting, and Mounting
2. Logical Volume Manager (LVM)
3. Security and Resource Constraints
4. Special Storage Features and Considerations
5. Networked File Systems
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.