全球主机交流论坛

标题: 17o如何查看硬盘时间 raid0 [打印本页]

作者: 王健林    时间: 2017-6-29 23:48
标题: 17o如何查看硬盘时间 raid0
smartctl -a /dev/sg1
smartctl -a /dev/sg2

这个失败

smartctl -A /dev/sda  

失败


Disk A
smartctl -a -d cciss,0 /dev/sda
Disk B
smartctl -a -d cciss,1 /dev/sda

这个也不行。


作者: Andy1999    时间: 2017-6-29 23:51
提示: 作者被禁止或删除 内容自动屏蔽
作者: Eric.c    时间: 2017-6-30 00:07
smartctl -d ata -a /dev/sda
作者: Eric.c    时间: 2017-6-30 00:08
smartctl -d ata -a /dev/sdb
作者: 王健林    时间: 2017-6-30 00:09
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdb failed: No such device
作者: 王健林    时间: 2017-6-30 00:10
Eric.c 发表于 2017-6-30 00:08
smartctl -d ata -a /dev/sdb

smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdb failed: No such device


不行啊!!!!!
作者: Eric.c    时间: 2017-6-30 00:26
执行 fdisk -l 把结果贴上来
作者: wen    时间: 2017-6-30 02:37
我幫樓主來貼的,我測試了很多方法後,直接用無RAID模式下去看


Disk /dev/sda: 1.8 TiB, 1999307276288 bytes, 3904897024 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
Disklabel type: dos
Disk identifier: 0x62a68e0a

Device     Boot  Start        End    Sectors  Size Id Type
/dev/sda1  *      2048     409599     407552  199M 83 Linux
/dev/sda2       409600 3904894975 3904485376  1.8T 83 Linux
作者: 王健林    时间: 2017-6-30 04:07
Eric.c 发表于 2017-6-30 00:26
执行 fdisk -l 把结果贴上来

Disk /dev/sda: 1.8 TiB, 1999307276288 bytes, 3904897024 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
Disklabel type: dos
Disk identifier: 0x80ac4ec8

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sda1  *          2048     409599     407552  199M 83 Linux
/dev/sda2           409600 3891302399 3890892800  1.8T 83 Linux
/dev/sda3       3891302400 3904894975   13592576  6.5G 82 Linux swap / Solaris

作者: Eric.c    时间: 2017-6-30 15:05
王健林 发表于 2017-6-30 04:07
Disk /dev/sda: 1.8 TiB, 1999307276288 bytes, 3904897024 sectors
Units: sectors of 1 * 512 = 512 by ...


试试这三个:
sudo smartctl -d ata -i /dev/sda
sudo smartctl -d scsi -i /dev/sda
sudo smartctl -d sat -i /dev/sda





欢迎光临 全球主机交流论坛 (https://hostloc.gdisk.cf/) Powered by Discuz! X3.4