昨天看到大家在讨论HH的硬盘不足问题,我自己也使用lsblk命令查了下,显示如下:- [root@hh-sto-500g ~]# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsr0 11:0 1 368K 0 rom vda 252:0 0 465.6G 0 disk └─vda1 252:1 0 465.6G 0 part /
复制代码 可以看到,硬盘显示465.6G,然后我提交了工单,准备问下是不是给少了,Mike W回复如下:- Hi,Please search "TB to TiB" on google for more information. You purchased 2TB, not 2TiB.
复制代码 后来经过一番搜索,发现df命令查询出来的单位是GiB,HH套餐写的是500GB,通过https://www.gbmb.org/gb-to-gib网址换算:- 500 GB = 465.661287308 GiB 约等于466GiB2 TB = 1.818989404 TiB
复制代码 GB是按1000换算
GiB是按1024换算
网上再次搜索一番后,发现这个命令可以查询- [root@hh-sto-500g ~]# fdisk -l |grep DiskDisk /dev/ram0: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram1: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram2: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram3: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram4: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram5: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram6: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram7: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram8: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram9: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram10: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram11: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram12: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram13: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram14: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/ram15: 16 MB, 16777216 bytes, 32768 sectorsDisk /dev/vda: 499.9 GB, 499893927936 bytes, 976355328 sectorsDisk label type: dosDisk identifier: 0x000b050e
复制代码 本人才疏学浅,以上如有错误请大家指正,共同学习。
参考文献:https://blog.51cto.com/shijianfeng/2914788 |