跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 怎么查看服务器硬盘用了多久了
未分類
12 1 月 2021

怎么查看服务器硬盘用了多久了

CodyDoby 大佬有话说 :

怎么查看服务器硬盘用了多久了

试了下,怎么老报错

root@PAR-258395:/# sudo apt-get install smartmontools && sudo smartctl –all /dev/sda3
Reading package lists… Done
Building dependency tree      
Reading state information… Done
smartmontools is already the newest version (6.6-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
smartctl 6.6 2017-11-05 r4594 (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               Dell
Product:            Virtual Disk
Revision:             1028
Compliance:         SPC-4
User Capacity:      1,999,307,276,288 bytes
Logical block size:   512 bytes
Logical Unit id:      0x600508e0000000007e225ea7781d6100
Device type:          disk
Local Time is:      Mon Jan 11 14:18:50 2021 CET
SMART support is:   Unavailable – device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:   0 C
Drive Trip Temperature:      0 C

Error Counter logging not supported

Device does not support Self Test logging

clf42 大佬有话说 :

自己看看挂载的盘名

remarkable 大佬有话说 :

你得看你独服硬盘挂载的盘名,用fdisk -l看一下,然后再smartctl -A /dev/***

tomcb 大佬有话说 :

Product:            Virtual Disk

yc022t

CodyDoby 大佬有话说 :

remarkable 大佬有话说 : 2021-1-11 21:31
你得看你独服硬盘挂载的盘名,用fdisk -l看一下,然后再smartctl -A /dev/***

应该没错哦
root@PAR-258395:/# sudo fdisk -l
Disk /dev/sda: 1.8 TiB, 1999307276288 bytes, 3904897024 sectors
Disk model: Virtual Disk   
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: 0x77a7ac8c

Device   Boot   Start      End    SectorsSize Id Type
/dev/sda1*       2048    1048575    1046528511M 83 Linux
/dev/sda2       1048576    3196927    2148352    1G 82 Linux swap / Solaris
/dev/sda3       3196928 3904894975 39016980481.8T 83 Linux

CodyDoby 大佬有话说 :

tomcb 大佬有话说 : 2021-1-11 21:31

这就不懂了,这是OneProvider的独立服务器

matoi 大佬有话说 :

试试
smartctl -d sat /dev/sda3

remarkable 大佬有话说 :

CodyDoby 大佬有话说 : 2021-1-11 22:07
应该没错哦

你这直接smartctl -A /dev/sda就可以了

tomcb 大佬有话说 :

CodyDoby 大佬有话说 : 2021-1-11 22:07
应该没错哦

你这物理盘是/dev/sda,下面123是分的区。

CodyDoby 大佬有话说 :

matoi 大佬有话说 : 2021-1-11 22:10
试试

好像也不行,是这样操作的吗
oot@PAR-258395:/# smartctl -d sat /dev/sda3
smartctl 6.6 2017-11-05 r4594 (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

ATA device successfully opened

Use ‘smartctl -a’ (or ‘-x’) to print SMART (and more) information

root@PAR-258395:/# smartctl -d sat -a /dev/sda3
smartctl 6.6 2017-11-05 r4594 (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error badly formed scsi parameters

A mandatory SMART command failed: exiting. To continue, add one or more ‘-T permissive’ options.
root@PAR-258395:/# smartctl -d sat -a /dev/sda3 -T permissive
smartctl 6.6 2017-11-05 r4594 (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error badly formed scsi parameters

=== START OF INFORMATION SECTION ===
Device Model:   
Serial Number:   
Firmware Version:
Device is:      Not in smartctl database
ATA Version is:   
Local Time is:    Mon Jan 11 15:34:42 2021 CET
SMART support is: Ambiguous – ATA IDENTIFY DEVICE words 82-83 don’t show if SMART supported.
SMART support is: Ambiguous – ATA IDENTIFY DEVICE words 85-87 don’t show if SMART is enabled.
A mandatory SMART command failed: exiting. To continue, add one or more ‘-T permissive’ options.

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具