Join Chaim Krause for an in-depth discussion in this video Logical volume management, part of SUSE Linux Enterprise Server Essential Training.
- [Instructor] Today's servers have increased in complexity. They now demand increased levels of flexibility in terms of file systems and their management. With Logical Volume Management and its components, volume groups and logical volumes you get greater versatility and configurability. Some examples of the improvements you'll see are increasing the storage capacity by adding physical disks while taking the system down, increasing the size of logical volumes while they're being used, and your options are enhanced with the ability to have up to 256 logical volumes.
So if we take a look at the old paradigm and the new technologies that make new paradigms possible, I will show you how to use SUSE Linux Enterprise Server 12 to create volume groups and logical volumes. As with many actions in SUSE Linux Enterprise Server 12, once again we would go to Yast and this time we'll choose the Partitioner. You'll get your warning about loss of data, you should heed that in all cases and if you can, don't work on a production system.
What I have here is virtual machine with various hard drives and I will show you how to make volume groups and logical volumes. Click on Volume Management and from the dropdown, only volume groups would be available, you can add the partitions you wish to use and I'm adding them from various different disks. So you can see we've got Disk B in its entirety, Disk D in its entirety, yet we're using partitions on Drive C.
We give it a name like Alpha and click Finish. Now nothing has been written to the disk yet, but this is what we have templated. Now that we have a volume group, we can create logical volumes within it. Now Logical Volume is available to us and we can give a name to our volume. Types we have available to us are Normal Volumes, Thin Volumes, and Thin Pools. Now a normal volume is what you see in a traditional partition, the volume space is allocated immediately.
With thin volumes, they're created as a sparse volume, which can increase in size based on the pool and you can create a thin pool to provide space for thin volumes. Let's make a normal volume here and I'm going to make it 50 gigabytes. I'm gonna make a data partition and I'm gonna use XFS. So we've created our logical volume and we can add more as necessary. Let's add blue, this time we'll create a thin pool.
Maximum size of the disk can be chosen for ease of use. So we click on Next and we get a summary of what's going to happen to our drive. If that looks correct, simply click Finish.
- What is SUSE Linux Enterprise?
- Installing SLES
- Linux file types
- Working at the command line
- Managing processes
- Working with background processes
- Managing users and groups
- Changing file permissions
- Configuring network interfaces
- Displaying hardware information
- Managing drivers