fio performance testing: results in disk capacity / dev / vdb size becomes 18Z solution

Confused cloud test hard drive performance, resulting in hard disk is full, Baidu many practical methods do not solve, in reminding operation and maintenance of the power of God can restore the hard disk capacity of the cloud.

Background to the issue:

Disk read the script: fio --name = fio-test --direct = 1 --size = 20G --refill_buffers --norandommap --randrepeat = 0 --filename = / dev / vdb --rw = randread --bs = 4k --ioengine = aio --cgroup_nodelete = 1 --iodepth = 32

First, run the above script finished, df -h query memory is as follows:

Here Insert Picture Description
Already filled, you can not run any commands

Solution:

1. Uninstall disk

umount /dev/vdb

2, re-format the partition to
Here Insert Picture Description

The content of the following error messages for some of the solutions (for your own reference)

1, partition formatting step
steps:
1. Partition
Here Insert Picture Description
the warning is noted that FIG Tip: The Re-Reading failed with error Partition Table 25:. Inappropriate Device for the ioctl
of The Kernel uses Still The Table of The Old Table Will new new AT BE Used. the Next or the After you reboot at The run partprobe (8) or kpartx (8)
Syncing Disks. (partition fails, you need to reboot, or run partprobe to take effect)

2, to see if there is a partition successHere Insert Picture Description

3. After the success of the partition, formatting, error
Could not STAT / dev / vdb1 - No SUCH File or Directory
at The Device Apparently does not exist; the Specify IT DID you correctly &?
Here Insert Picture Description

Query just partition dev / dvb1 device file exists, the results showed the absence of
Here Insert Picture Description

Method a: can be manually added, the command: mknod / dev / vdb1 b 253 17
Here Insert Picture Description

Method Two: As shown in FIG: partprobe performed, re-read the partition
under the command executed partprobe
partprobe rpm package contained in the parted. partprobe kernel can be modified in the partition table, so kernel reread the partition table. Thus, this command can be used to create partitions and partitions in the system to recognize without restarting the machine.
Here Insert Picture Description

4, try again following format, or unsuccessful, the display is already in use:
given: / dev / vdb1 is apparently in use by the system; will not make a filesystem here!
Here Insert Picture Description

5. Just uninstall, dev / vdb can, umount / dev / vdb, formatted again in FIG.
Here Insert Picture Description

6. remount, Mount dev / vdb1 / test1
df -h, check whether to mount a successful
Here Insert Picture Description
disk capacity recovery Success!

Published 12 original articles · won praise 0 · Views 345

Guess you like

Origin blog.csdn.net/Junetest/article/details/102855107