When a system partition resizing problem occurs, the user's mysql Directory has no space, and the/home directory still has 40 GB space. So I want to transfer the 40 GB space to the mysql directory. The peer partition distribution is shown in the figure below: Fortunately, both partitions are LVM partitions and are in the same VG. In order to test the feasibility, we made a special expansion test. As follows:
When a system partition resizing problem occurs, the user's mysql Directory has no space, and the/home directory still has 40 GB space. So I want to transfer the 40 GB space to the mysql directory. The peer partition distribution is shown as follows:
Fortunately, both partitions are LVM partitions and under the same VG.
In order to test the feasibility, we made a special expansion test. As follows:
This is my current partition. my idea is to release 8 GB space to the root/in/home /.
Step 1: uninstall/home
Step 2: resize2fs-p/dev/mapper/VolGroup-LogVo101 1G
Step 3: lvreduce-L 1G/dev/mapper/VolGroup-LogVo101
Step 4: lvextend-L + 8G/dev/mapper/VolGroup-Log100
Step 5: resize2fs-p/dev/mapper/VolGroup-Log100
Step 6: Check if df-TH is successful