Changes

Jump to: navigation, search
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Adding a New Disk Drive to a Fedora Linux System|Previous]]<td align="center">[[Fedora Linux Essentials|Table of Contents]]<td width="20%" align="right">[[Adding and Managing Fedora Swap Space|Next]]</td>
<tr>
<td width="20%">Adding a New Disk Drive to a Fedora Linux System<td align="center"><td width="20%" align="right">Adding and Managing Fedora Swap Space</td>
</table>
<hr>
<htmlet>fedora</htmlet>
In the previous chapter we looked at adding a new disk drive to a Fedora system, creating a partition and file system and then mounting that file system so that the disk can be accessed. An alternative to creating fixed partitions and file systems is to use Logical Volume Management (LVM) to create logical disks made of space from one or more physical disks or partitions. The advantage of using LVM is that space can be added to or removed from logical volumes as needed without the need to spread data over multiple file systems.
== An Overview of Logical Volume Management (LVM) ==
LVM provides a flexible and high level approach to managing disk space. Instead of each disk drive being split into partitions of fixed sizes onto which fixed size are in turn file systems are created, LVM provides a way to group together disk space into logical volumes which can be easily resized and moved. In addition LVM allows administrators to carefully control disk space assigned to different groups of users by allocating distinct volume groups or logical volumes to those users. When the space initially allocated to the volume is exhausted the administrator can simply add more space without having to move the user files to a different file system.
LVM consists of the following components:
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
=== Volume Group (VG) ===
</pre>
As we can see the in the above example, vg_kvmfed11 has a physical extend size of 4.00MB and has a total of 7.80GB available for allocation to logical volumes. Currently 1997 physical extents are allocated equalling equaling the total 7.80GB capacity. If we want to increase the space allocated to any logical volumes in vg_kvmfed11 we will need to add one or more physical volumes.
The same information can be viewed graphically using the Logical Volume Manager tool, accessed by selecting the ''System->Administration->Logical Volume Management'' menu option:
== Adding Additional Space to a Fedora Volume Group from the Command Line ==
Just as with the previous steps to gatehr gather information about the current Logical Volume Management configuration of a Fedora system, changing this configuration can be performed both from the command line and from within the graphical volume management tool. In this section we will focus on the use of command line tools before looking at the graphical tool in the next section.
In the remainder of this chapter we will assume that a new disk has been added to the system and that it is being seen by the operating system as /dev/sdb. We shall also assume that this is a new disk that does not contain any existing partitions. If existing partitions are present they should be backed up and then the partitions deleted from the disk using the ''fdisk'' utility.
Once the resize completes the file system will have been extended to use the additional space provided by the new disk drive. All this has been achieved without moving a single file. As far as any users on the system are concerned nothing has changed (except that there is now more disk space).
<htmlet>fedora</htmlet>
 
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Adding a New Disk Drive to a Fedora Linux System|Previous]]<td align="center">[[Fedora Linux Essentials|Table of Contents]]<td width="20%" align="right">[[Adding and Managing Fedora Swap Space|Next]]</td>
<tr>
<td width="20%">Adding a New Disk Drive to a Fedora Linux System<td align="center"><td width="20%" align="right">Adding and Managing Fedora Swap Space</td>
</table>

Navigation menu