LVM modifies the partition size to reduce the size of a partition # umount/home # mke2fs-n/dev/vgsys/lvhome this command can get blocksize and blocks. Blocksize * blocks is the total size of the partition, byte, and then calculate the final size or the reduced size. change the partition size for a single... LVM.
Reduce the size of a partition
# Umount/home
# Mke2fs-n/dev/vgsys/lvhome
This command can obtain blocksize and blocks. Blocksize * blocks is the total partition size, byte,
Then calculate the final size or the reduced size, in bytes, and divide it by blocksize, that is, the final size of blocks.
# Resize2fs-f/dev/vgsys/lvhome new_block_size
# Lvreduce-L-20G/dev/vgsys/lvhome
# Mount/home
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service