Centos7

Centos 7 用 fdisk 找不到

  • December 27, 2017

我可以找到 /dev/vda1fdisk但找不到/ dev/vdb。發生了什麼?我該如何解決?

謝謝

[root@tp-gpdb-ku05 master]# fdisk -l                           

Disk /dev/vda: 107.4 GB, 107374182400 bytes, 209715200 sectors 
Units = sectors of 1 * 512 = 512 bytes                         
Sector size (logical/physical): 512 bytes / 512 bytes          
I/O size (minimum/optimal): 512 bytes / 512 bytes              
Disk label type: dos                                           
Disk identifier: 0x000b1ef9                                    

  Device Boot      Start         End      Blocks   Id  System 
/dev/vda1   *        2048   209715166   104856559+  83  Linux  

Disk /dev/vdb: 107.4 GB, 107374182400 bytes, 209715200 sectors 
Units = sectors of 1 * 512 = 512 bytes                         
Sector size (logical/physical): 512 bytes / 512 bytes          
I/O size (minimum/optimal): 512 bytes / 512 bytes              

[root@tp master]# fdisk -l /dev/vdb

Disk /dev/vdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@tp master]#
[root@tp master]#df
/dev/vda1      104846316 5513836  99332480   6% /
devtmpfs         3984412       0   3984412   0% /dev
tmpfs            4005084   16768   3988316   1% /run
tmpfs            4005084       0   4005084   0% /sys/fs/cgroup
/dev/vdb       104806400  156308 104650092   1% /data

似乎 /dev/vdb 已找到、可用且正在使用中,已安裝為 /data。

/dev/vdb       104806400  156308 104650092   1% /data

引用自:https://serverfault.com/questions/889728