全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1367|回复: 17
打印 上一主题 下一主题

[Windows VPS] 怎么查看服务器硬盘用了多久了

[复制链接]
跳转到指定楼层
1#
发表于 2021-1-11 21:20:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
试了下,怎么老报错

  1. root@PAR-258395:/# sudo apt-get install smartmontools && sudo smartctl --all /dev/sda3
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. smartmontools is already the newest version (6.6-1).
  6. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  7. smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-13-amd64] (local build)
  8. Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

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

  20. === START OF READ SMART DATA SECTION ===
  21. Current Drive Temperature:     0 C
  22. Drive Trip Temperature:        0 C

  23. Error Counter logging not supported

  24. Device does not support Self Test logging
复制代码
2#
发表于 2021-1-11 21:26:06 来自手机 | 只看该作者
自己看看挂载的盘名
3#
发表于 2021-1-11 21:31:24 | 只看该作者
你得看你独服硬盘挂载的盘名,用fdisk -l看一下,然后再smartctl -A /dev/***
4#
发表于 2021-1-11 21:31:26 | 只看该作者
Product:              Virtual Disk


5#
 楼主| 发表于 2021-1-11 22:07:26 | 只看该作者
remarkable 发表于 2021-1-11 21:31
你得看你独服硬盘挂载的盘名,用fdisk -l看一下,然后再smartctl -A /dev/***

应该没错哦
  1. root@PAR-258395:/# sudo fdisk -l
  2. Disk /dev/sda: 1.8 TiB, 1999307276288 bytes, 3904897024 sectors
  3. Disk model: Virtual Disk   
  4. Units: sectors of 1 * 512 = 512 bytes
  5. Sector size (logical/physical): 512 bytes / 512 bytes
  6. I/O size (minimum/optimal): 512 bytes / 512 bytes
  7. Disklabel type: dos
  8. Disk identifier: 0x77a7ac8c

  9. Device     Boot   Start        End    Sectors  Size Id Type
  10. /dev/sda1  *       2048    1048575    1046528  511M 83 Linux
  11. /dev/sda2       1048576    3196927    2148352    1G 82 Linux swap / Solaris
  12. /dev/sda3       3196928 3904894975 3901698048  1.8T 83 Linux
复制代码
6#
 楼主| 发表于 2021-1-11 22:08:59 | 只看该作者

这就不懂了,这是OneProvider的独立服务器
7#
发表于 2021-1-11 22:10:57 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
8#
发表于 2021-1-11 22:12:09 | 只看该作者

你这直接smartctl -A /dev/sda就可以了
9#
发表于 2021-1-11 22:30:29 | 只看该作者

你这物理盘是/dev/sda,下面123是分的区。
10#
 楼主| 发表于 2021-1-11 22:35:20 | 只看该作者

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

  4. ATA device successfully opened

  5. Use 'smartctl -a' (or '-x') to print SMART (and more) information

  6. root@PAR-258395:/# smartctl -d sat -a /dev/sda3
  7. smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-13-amd64] (local build)
  8. Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

  9. Read Device Identity failed: scsi error badly formed scsi parameters

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

  14. Read Device Identity failed: scsi error badly formed scsi parameters

  15. === START OF INFORMATION SECTION ===
  16. Device Model:     [No Information Found]
  17. Serial Number:    [No Information Found]
  18. Firmware Version: [No Information Found]
  19. Device is:        Not in smartctl database [for details use: -P showall]
  20. ATA Version is:   [No Information Found]
  21. Local Time is:    Mon Jan 11 15:34:42 2021 CET
  22. SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
  23. SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
  24. A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-12-9 07:41 , Processed in 0.064551 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表