Answer the question
In order to leave comments, you need to log in
OVL CentOS 6. How to increase disk size?
Friends.
There is a server on OVL.com with CentOS 6.7, 20 GB of space was purchased and there was not enough space for tasks, we bought another 20 GB of space, but it does not appear in the listing of sections.
How to nail the purchased place to the existing one (preferably without losing data).
[[email protected] mail]# fdisk -l
Disk /dev/vda: 42.9 GB, 42949672960 bytes
16 heads, 63 sectors/track, 83220 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000574cf
Device Boot Start End Blocks Id System
/dev/vda1 * 3 41611 20970496 83 Linux
[[email protected] mail]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 19G 16M 100% /
tmpfs 3.8G 12K 3.8G 1% /dev/shm
Answer the question
In order to leave comments, you need to log in
Linux notification that the size of the hard drive has changed
To do this, you need to know the SCSI ID of the device. You can see it in the dmesg boot log, for example in this message:
sd 2:0:0:0: [sda] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Accordingly, our device ID is 2:0: 0:0.
Run the following command:
# echo 1 > /sys/bus/scsi/devices/2\:0\:0\:0/rescan
Note the spelling of the ID.
After executing the command, we make sure that the disk size has changed - the following message should appear in the log:
May 22 01:49:58 windycat kernel: sda: detected capacity change from 107374182400 to 128849018880
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question