Red Hat SATELLITE 5.1.0 RELEASE NOTES Instrukcja Instalacji Strona 204

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 203
186 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
0.0.0100(ECKD) at ( 94: 0) is dasda : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0101(FBA ) at ( 94: 4) is dasdb : active at blocksize 512, 524288 blocks, 256 MB
0.0.0102(FBA ) at ( 94: 8) is dasdc : active at blocksize 512, 1048576 blocks, 512 MB
0.0.0103(ECKD) at ( 94:12) is dasdd : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0104(ECKD) at ( 94:16) is dasde : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0105(ECKD) at ( 94:20) is dasdf : n/f
Format the minidisk using the dasdfmt command and make a single partition using the fdasd
-a command as you did before:
# dasdfmt -b 4096 -y -f /dev/dasdf
Finished formatting the device.
Rereading the partition table... ok
# fdasd -a /dev/dasdf
auto-creating one partition for the whole disk...
writing volume label...
writing VTOC...
rereading partition table...
Creating a physical volume
Use the pvcreate command to create a physical volume from the minidisk:
# pvcreate /dev/dasdf1
Physical volume "/dev/dasdf1" successfully created
Extending the volume group
Use the vgextend command to extend the volume group into the new physical volume. Then,
use vgdisplay to verify that the volume group has free space:
# vgextend homevg /dev/dasdf1
Volume group "homevg" successfully extended
# vgdisplay
--- Volume group ---
VG Name homevg
...
Total PE 2932
Alloc PE / Size 2346 / 9.16 GB
Free PE / Size 586 / 2.29 GB
VG UUID IHAq2g-ME3w-b6LY-E3hA-raNk-bF0G-Poprma
Note there are 586 new free physical extents (PEs) in this example.
Extend the logical volume and the file system
Now that you have free space in the volume group, you can increase the size of the existing
logical volume with the lvextend command. The -l option specifies the number extents to
add. Finally, use the resize2fs command, which increases the size of the file system while it
is mounted. You can use the df command to show the file system size before and after you
extend it, as the following example shows:
# df -h | grep home
/dev/mapper/homevg-homelv
9.1G 149M 8.5G 2% /home
# lvextend -l +586 /dev/homevg/homelv
Extending logical volume homelv to 11.45 GB
Logical volume homelv successfully resized
# resize2fs -p /dev/homevg/homelv
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/homevg/homelv is mounted on /home; on-line resizing required
Performing an on-line resize of /dev/homevg/homelv to 3002368 (4k) blocks.
The filesystem on /dev/homevg/homelv is now 3002368 blocks long.
Przeglądanie stron 203
1 2 ... 199 200 201 202 203 204 205 206 207 208 209 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag