We solve the challenge, showing you how to create a logical volume from scratch including making partitions, physical volumes with pvcreate, volume groups with vgcreate, and logical volumes with lvcreate.
- [Instructor] So, let's see how we can do this.…We need to end up with a logical volume…called lvx that's 200 MiB long,…it was allocated from the volume group vgx,…we made vgx from three physical volumes…that were 50, 100, and 150 MB each.…We want to format this with XFS and mount it,…make sure it works,…then unmount it, resize it to 240 MB,…remount it, and check it.…So let's see how can we do this.…
Number of things we got to do.…So we got to start with the physical volume stuff,…so we need three partitions…and we need those to be physical volumes.…So let's start by making three partitions.…And I'm going to make it from my disk A here.…I'm going to new partition,…and the first one we want to be 50 MB.…
And then another new one,…we're going to make it 100 MB.…And another new one,…and we're going to make it 150 MB.…So that's partitions eight, nine, and ten,…we're going to write that out.…We're going to do a partprobe, so we scan for 'em,…and now let's try to create physical volumes with it.…
And we're going to use the little shell technique here…
- 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
Learning Linux Command Line (2016)with Scott Simpson1h 38m Beginner
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.