Extending the Logical Volume by Expanding Capacity of an EVS Disk
Scenarios
If the logical volume space becomes insufficient, you can extend the logical volume. This section describes how to add 10 GB space to a 19 GB logical volume by expanding the capacity of an EVS disk.
Procedure
- Expand the capacity of an EVS disk on the console.
- Sign in to the EVS console.
- Locate the to-be-expanded disk and expand the capacity.
For details, see Expand Disk Capacity.
- Log in to the ECS as user root.
- Check whether the system has identified the added space.
fdisk -l
Information similar to the following is displayed:
The size of /dev/vdb has increased from 10 GB to 20 GB.
- View information of the physical volumes.
pvdisplay
Information similar to the following is displayed:
The size of /dev/vdb remains 10 GB, indicating that the size of the physical volume is not increased.
- Extend the physical volume of the corresponding EVS disk.
pvresize -v <disk-device-name>
Example command:
pvresize -v /dev/vdb
Information similar to the following is displayed:
In the command output, the physical volume corresponding to /dev/vdb has been extended.
- Extend the corresponding logical volume if needed.
lvextend -l +100%FREE <logical-volume-path>
Example command:
lvextend -l +100%FREE /dev/vgdata/lvdata1
Information similar to the following is displayed:
- Extend the file system on the partition.
- Run the following command to view the capacity expansion result:
lvdisplay
Information similar to the following is displayed:
In the command output, the logical volume size (LV Size) is increased by 10 GB.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot