如何查看linux服务器上有几块磁盘?

如何查看linux服务器上有几块磁盘?,第1张

有多种方式查看linux服务器上有几块磁盘

方法1:

[root@localhost xly]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sr0 11:01 1024M 0 rom

sda 8:00 40G 0 disk

├─sda1 8:10 300M 0 part /boot

├─sda2 8:20 17.8G 0 part /

└─sda3 8:302G 0 part [SWAP]

sdb 8:16 0 20G 0 disk /opt

可知系统有sda和sdb两块磁盘

方法2:

[root@localhost xly]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes

255 heads, 63 sectors/track, 5221 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00041bdd

Device Boot Start End Blocks Id System

/dev/sda1 * 1 39 307200 83 Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2 39235818631680 83 Linux

/dev/sda323582611 2031616 82 Linux swap / Solaris

Disk /dev/sdb: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

如果用我这箱子就要看单块硬盘是多大的容量,现在由于是新旧盘混装所以才是一百T多一点点,如果全换上最新最大的硬盘达到几百TB和未来的PB级都不是问题,机箱盘位全是3.5的,可以说要装多大的硬盘也行,服务器机箱就不行了才18盘位,我这个是32盘位全内置非USB。


欢迎分享,转载请注明来源:夏雨云

原文地址:https://www.xiayuyun.com/zonghe/429078.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-27
下一篇2023-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存