Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Manuale di Installazione Pagina 228

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 296
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 227
208 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
PV Size 1.15 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID 3LciEw-cMM7-tiEM-QEQW-B7Fa-2aoW-thOZ0r
Creating a single volume group
The vgcreate command can be used to create a volume group named homevg from the two
partitions. Use the vgdisplay homevg command to verify that the volume group was created:
# vgcreate homevg /dev/dasde1 /dev/dasdf1
Volume group "homevg" successfully created
# vgdisplay homevg
--- Volume group ---
VG Name homevg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 2.29 GiB
PE Size 4.00 MiB
Total PE 586
Alloc PE / Size 0 / 0
Free PE / Size 586 / 2.29 GiB
VG UUID 9HPTso-Amw3-70HQ-3ofl-AszO-1aeo-dFvB7z
In this example, there are 586 free physical extents.
Creating a single logical volume
The lvcreate command is used to create a logical volume. The -l flag specifies using all the
free extents, 586 in this example. The -n homelv flag specifies the name of the new logical
volume. The last argument, homevg, specifies the name of the volume group from which the
logical volume will be created.
# lvcreate -l 586 -n homelv homevg
Logical volume "homelv" created
Use the lvdisplay command to verify the creation. The parameter is the full path of the
logical volume, not just the logical volume name.
# lvdisplay /dev/homevg/homelv
--- Logical volume ---
LV Name /dev/homevg/homelv
VG Name homevg
LV UUID BvXj0n-vA8D-yMY0-Ydex-bF2y-Gfeg-1pyr4O
LV Write Access read/write
Vedere la pagina 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 295 296

Commenti su questo manuale

Nessun commento