昨天看到大家在讨论HH的硬盘不足问题,我自己也使用lsblk命令查了下,显示如下:
[root@hh-sto-500g ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 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
2 TB = 1.818989404 TiB
GB是按1000换算
GiB是按1024换算
网上再次搜索一番后,发现这个命令可以查询
fdisk -l |grep Disk
[root@hh-sto-500g ~]# fdisk -l |grep Disk
Disk /dev/ram0: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram1: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram2: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram3: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram4: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram5: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram6: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram7: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram8: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram9: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram10: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram11: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram12: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram13: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram14: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/ram15: 16 MB, 16777216 bytes, 32768 sectors
Disk /dev/vda: 499.9 GB, 499893927936 bytes, 976355328 sectors
Disk label type: dos
Disk identifier: 0x000b050e
本人才疏学浅,以上如有错误请大家指正,共同学习。
参考文献:https://blog.51cto.com/shijianfeng/2914788