27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

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

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

13.2 Adding a logical volume<br />

<strong>The</strong>re are times when you require more disk space than a single direct access storage device<br />

(DASD) volume provides. For example, if you want to have a shared /home/ directory you will<br />

want it to be of sufficient size. When this is the case, you can use the Logical Volume<br />

Manager (L<strong>VM</strong>) to combine multiple DASD volumes into one logical volume.<br />

<strong>The</strong> following process describes how to create a logical volume with additional DASD on a<br />

Linux guest. <strong>The</strong> overall steps in adding a logical volume are:<br />

► “Adding DASD” on page 191<br />

► “Creating a logical volume and file system” on page 194<br />

► “Updating the file system table” on page 197<br />

13.2.1 Creating a logical volume and file system<br />

<strong>The</strong> overall steps involved in creating a logical volume are:<br />

► Create physical volumes from the two partitions<br />

► Create a single volume group<br />

► Create a single logical volume<br />

► Make a file system from the logical volume<br />

Figure 13-1 on page 194 shows a block diagram of the logical volume manager reflecting this<br />

example.<br />

Physical Volume - /dev/dasde1<br />

Physical Extent (PE)<br />

Physical Extent (PE)<br />

Physical Extent (PE)<br />

Physical Extent (PE)<br />

Figure 13-1 L<strong>VM</strong> block diagram<br />

Creating physical volumes from the two DASD<br />

To create physical volumes, per<strong>for</strong>m the following steps:<br />

194 <strong>The</strong> <strong>Virtualization</strong> <strong>Cookbook</strong> <strong>for</strong> RHEL 6<br />

Volume Group - homevg<br />

Physical Volume - /dev/dasdf1<br />

Physical Extent (PE)<br />

Physical Extent (PE)<br />

Physical Extent (PE)<br />

Physical Extent (PE)<br />

Logical Volume - homelv (/dev/homevg/homelv)<br />

ext3 file system<br />

mounted over /home/

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

Saved successfully!

Ooh no, something went wrong!