STORAGE ENVIRONMENT
POWER SOLUTIONS November 2003
116
Scenario C: Adding more storage
If a Dell PowerEdge server lacks un-
allocated or unused storage space,
administrators must add more storage
to expand volumes. This approach
requires adding more hard drives or
a Dell disk enclosure such as a
PowerVault 220S. For background on
expanding storage for PowerEdge
servers, see “Expanding Storage on
Linux-based Servers” by Matt
Domsch and Tesfamariam Michael in
Dell Power Solutions, February 2003
(http://www.dell.com/us/en/esg/
topics/power_ps1q03-michael.htm).
The article is particularly helpful
because the expansion procedure can be very complex, especially
for RAID storage, the recommended type. To expand a volume by
adding more storage, administrators can follow these steps:
1. Partition the added drive or RAID volume and set its
partition ID to 8e:
fdisk /dev/new_added_drive
For this scenario, to add the drive /dev/sdc, enter:
fdisk /dev/sdc
2. Create a physical volume on the new partition:
pvcreate /dev/partition_of_new_added_drive
For this scenario, enter:
pvcreate /dev/sdc1
3. Take the logical volume to be expanded offline:
umount /logical_volume_mounting_point
For this scenario, enter:
umount /home
4. Expand the volume group:
vgextend volume_group_name physical_volume_name
For this scenario, enter:
vgextend lvm00 /dev/sdc1
5. Expand the size of the logical volume and its file system:
e2fsadm –L +X logical_volume_name
where X is the expansion size.
For this scenario, to expand /home by 10 GB, enter:
e2fsadm -L +10G /dev/lvm00/home
Alternatively, use the lvextend and resize2fs commands
instead of
e2fsadm. In this case, enter:
lvextend -L +10G lvm00
resize2fs /dev/lvm00/home 10G
6. Mount the expanded logical volume:
mount /logical_volume_mounting_point
For this scenario, enter:
mount -a
7. Bring the system back to the desired runlevel (3 or 5):
init desired_runlevel
8. Verify the changes:
df –h
Achieving more manageable storage environments
LVM eases storage management in Linux installations by empow-
ering Linux system administrators to expand and reduce storage at
an abstracted level. Using the techniques described in this article,
administrators can upgrade, reallocate, and modify storage resources
as needed, helping to create a nimble, scalable storage environment
with minimal complexity.
Linux Development Team of the Dell Product Group, which tests Linux on all Dell PowerEdge
servers. Tesfamariam has an M.S. in Computer Science from Clark Atlanta University, a B.S.
in Electrical Engineering from the Georgia Institute of Technology, and a B.S. in Mathemat-
ics from Clark Atlanta University. His areas of interest include operating systems and I/O devices.
neer on the Linux Development Team of the Dell Product Group. His interests include oper-
ating systems, grammar- and automata-based programming, and Support Vector Machine
(SVM) learning. Joshua has a B.S. from the New Mexico Institute of Mining and Technology.
FOR MORE INFORMATION
Dell and Linux: http://www.dell.com/linux
LVM HowTo page: http://tldp.org/HOWTO/LVM-HOWTO
Red Hat Linux: http://www.redhat.com
Sistina LVM: http://www.sistina.com/products_lvm.htm
LVM eases storage
management in Linux
installations by
empowering Linux
system administrators
to expand and
reduce storage at an
abstracted level.
Comentarios a estos manuales