Answer the question
In order to leave comments, you need to log in
RAID 1: how to enlarge a partition?
The situation is as follows:
1. There is disk_0 with linux raid 1. The size is about 160 GB.
2. There is disk_1 with a size of 500 GB.
3. disk_0 was "cloned" by acronis on disk_1 "one to one", i.e. in proportion. The system started up from the new disk.
4. But there is unused space on disk_1.
5. OS SME Server 7.5 (remained from the previous admin), it is based on CentOS (4).
6. Two partitions, one for /boot (~100 MB), the second for everything else in lvm.
How to enlarge a section?
Answer the question
In order to leave comments, you need to log in
First pvresize (to enlarge the physical LVM partition)
Then lvextend (to enlarge the logical partition)
And then resize2fs if you have ext3/ext4 (to stretch the filesystem over the entire logical partition)
create a partition on the unused space, add it to lvm, and then change the size using lvm.
In theory, if there is no LVM, then you need to erase the partition table in fdisk (after writing it down on a piece of paper). Then create a volume at the beginning of the same sector as the old one, but make the final sector much further. Record, boot.
Everything is easier with lvm - it's just lvextend.
Then, after adjusting the partition size, you need to do resize2fs to change the boundaries of the file system.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question