Disk capacity of 300GB, before the partition of only a 150GB/data partition, now/data partition is not enough.
Requirements: Increase the remaining 150GB capacity of this disk to the previous/data partition, and ensure that the original data of the/data partition is not corrupted.
First, shut down the service that uses/data partition, here/data partition is MySQL database
Second, remove the disk, repartition
If you are prompted to be busy, use Fuser to find the program that is using the disk and end it.
Resize a disk partition using the FDISK command
P #查看磁柱号, remember, use the following
Delete the previous partition, then create a new partition, note that the beginning of the magnetic column to be consistent with the original (to ensure that the data do not lose the key steps), the end of the magnetic column default return to use all the disk.
E2fsck-f/DEV/SDB1 #检查分区信息
RESIZE2FS/DEV/SDB1 #调整分区大小
4. Re-mount the partition