12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Understanding LVM 171such as:mount /dev/sda5 /tmpAccess the directory and make sure you can read and write to it.Finally, add the partition to the /etc/fstab file so it is mounted automatically at boottime. For example:LABEL=/tmp /tmp ext3 defaults 1 2If a new swap partition is added, be sure to use swap as the filesystem type instead:LABEL=swap2 swap swap defaults 0 0Resizing PartitionsThe parted utility can also be used to resize a partition. After starting parted as root onthe desired device, use the following command to resize a specific partition:resize To determine the for the partition, look at the partition table with the printcommand such as the output shown in Listing 7.3 and Listing 7.4. The and values should be the start and end points of the partition, in megabytes.Removing PartitionsTo use parted to remove a partition, start parted on the desired device as root, and issuethe following command at the interactive prompt:7rm The minor number for the partition is displayed when you execute the print command tolist partitions. The data on the partition will no longer be accessible after the partition isremoved, so be sure to back up any data you want to keep before removing the partition.Understanding LVMLogical Volume Manager, or LVM, is a storage management solution that allows administratorsto divide hard drive space into physical volumes (PV), which can then be combinedinto logical volume groups (VG), which are then divided into logical volumes (LV) on whichthe filesystem and mount point are created.As shown in Figure 7.1, because a logical volume group can include more than one physicalvolume, a mount point can include more than one physical hard drive, meaning thelargest mount point can be larger than the biggest hard drive in the set. These logicalvolumes can be resized later if more disk space is needed for a particular mount point.After the mount points are created on logical volumes, a filesystem must be created onthem.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!