Red Hat LVM ADMINISTRATOR 5.0 Manual do Utilizador Página 4

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 6
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 3
and 512 MB. However, the installer limits this range to between
1 MB and 64 MB.
Managing and maintaining system storage
Once LVM is implemented during installation, managing and main-
taining system storage is the next task. If any logical volumes in
the system become full, more space can be added by extending the
logical volume using several methods, including:
Add more space from the free unallocated space in the same
volume group (see Scenario A in this article)
Reduce another logical volume (see Scenario B)
Add more hard drives or Dell PowerVault disk enclosures to
the system (see Scenario C)
In the following scenarios that detail these approaches, /home
is the logical volume to be expanded. Although LVM does not
require these safety measures, administrators should perform a
full system backup and bring the system to runlevel 1 (init 1)
before starting the expansion; in some approaches, the logical
volume being modified should be taken offline. Dell also
recommends performing these operations during off-peak hours.
For more information about the LVM commands used in these
scenarios, see “LVM commands for managing and maintaining
system storage” in this article.
Scenario A: Expanding from unallocated space
in the same volume group
The “Make LVM Volume Group” window in Figure 4 shows that
the volume group lvm00 still has 40 GB of active, unallocated space
that can be used to expand any of the logical volumes. The
following steps describe how to expand the logical volume /home
by 10 GB from this unallocated space:
1. Confirm that the desired logical volume is not being used
and take it offline:
umount /logical_volume_mounting_point
For this scenario, enter:
umount /home
2. To scan for physical and then logical volumes, display all
existing physical volumes with information about the physical
device (such as /dev/sda3) to volume group mappings, the
volume group to which the device belongs, and the present
size status of the device:
pvscan
lvscan
3. To determine the unallocated free space that can be used to
expand the logical volumes, display all volume groups and
their size allocation status:
vgdisplay
4. Expand the logical volume from an active but unallocated
physical volume:
lvextend -L +X /dev/lvm_name/logical_volume_name
/dev/physical_volume
where X is the expansion size. The results from steps 2 and 3
provide the available size for this expansion. The
-L parameter
extends the logical volume size. In this scenario, the unallocated
physical volume is /dev/sda3. Expand the logical volume /home
by 10 GB by entering:
lvextend -L +10G /dev/lvm00/home /dev/sda3
5. Verify that the logical volume was extended by comparing
the current size to that found in step 2:
pvscan
lvscan
These commands should report the updated space information.
6. Resize the file system:
e2fsck -f /dev/logical_volume_name
resize2fs /dev/lvm_name/logical_volume_name
For this scenario, enter:
e2fsck -f /dev/lvm00/home
resize2fs /dev/lvm00/home
STORAGE ENVIRONMENT
POWER SOLUTIONS November 2003
114
Figure 4. Make LVM Volume Group window in Red Hat Linux installer
Vista de página 3
1 2 3 4 5 6

Comentários a estes Manuais

Sem comentários