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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

► <strong>The</strong> pvcreate command initializes partitions <strong>for</strong> use by L<strong>VM</strong>. Initialize the two new DASD<br />

partitions.<br />

# pvcreate /dev/dasde1 /dev/dasdf1<br />

Physical volume "/dev/dasde1" successfully created<br />

Physical volume "/dev/dasdf1" successfully created<br />

► Verify that the physical volumes were created with the pvdisplay command:<br />

# pvdisplay /dev/dasde1 /dev/dasdf1<br />

"/dev/dasde1" is a new physical volume of "1.15 GiB"<br />

--- NEW Physical volume ---<br />

PV Name /dev/dasde1<br />

VG Name<br />

PV Size 1.15 GiB<br />

Allocatable NO<br />

PE Size 0<br />

Total PE 0<br />

Free PE 0<br />

Allocated PE 0<br />

PV UUID JY247T-Xmb6-iQT5-FlFC-KZgx-CIH0-bVKnbL<br />

"/dev/dasdf1" is a new physical volume of "1.15 GiB"<br />

--- NEW Physical volume ---<br />

PV Name /dev/dasdf1<br />

VG Name<br />

PV Size 1.15 GiB<br />

Allocatable NO<br />

PE Size 0<br />

Total PE 0<br />

Free PE 0<br />

Allocated PE 0<br />

PV UUID 3LciEw-cMM7-tiEM-QEQW-B7Fa-2aoW-thOZ0r<br />

Creating a single volume group<br />

<strong>The</strong> vgcreate command can be used to create a volume group named homevg from the two<br />

partitions. Use the vgdisplay homevg command to verify the volume group was created:<br />

# vgcreate homevg /dev/dasde1 /dev/dasdf1<br />

Volume group "homevg" successfully created<br />

# vgdisplay homevg<br />

--- Volume group ---<br />

VG Name homevg<br />

System ID<br />

Format lvm2<br />

Metadata Areas 2<br />

Metadata Sequence No 1<br />

VG Access read/write<br />

VG Status resizable<br />

MAX LV 0<br />

Cur LV 0<br />

Open LV 0<br />

Max PV 0<br />

Cur PV 2<br />

Act PV 2<br />

VG Size 2.29 GiB<br />

PE Size 4.00 MiB<br />

Total PE 586<br />

Alloc PE / Size 0 / 0<br />

Free PE / Size 586 / 2.29 GiB<br />

VG UUID 9HPTso-Amw3-70HQ-3ofl-AszO-1aeo-dFvB7z<br />

Chapter 13. Miscellaneous recipes 195

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

Saved successfully!

Ooh no, something went wrong!