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

CodyDoby 12天前 8

试了下,怎么老报错
  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
最新回复 (17)
  • clf42 12天前
    引用 2
    自己看看挂载的盘名
  • remarkable 12天前
    引用 3
    你得看你独服硬盘挂载的盘名,用fdisk -l看一下,然后再smartctl -A /dev/***
  • tomcb 12天前
    引用 4
    Product:              Virtual Disk
  • 楼主 CodyDoby 12天前
    引用 5
    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
  • 楼主 CodyDoby 12天前
    引用 6
    tomcb 发表于 2021-1-11 21:31
    这就不懂了,这是OneProvider的独立服务器
  • matoi 12天前
    引用 7
    试试
    1. smartctl -d sat /dev/sda3
  • remarkable 12天前
    引用 8
    CodyDoby 发表于 2021-1-11 22:07
    应该没错哦
    你这直接smartctl -A /dev/sda就可以了
  • tomcb 12天前
    引用 9
    CodyDoby 发表于 2021-1-11 22:07
    应该没错哦
    你这物理盘是/dev/sda,下面123是分的区。
  • 楼主 CodyDoby 12天前
    引用 10
    matoi 发表于 2021-1-11 22:10
    试试
    好像也不行,是这样操作的吗
    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.
  • 楼主 CodyDoby 12天前
    引用 11
    remarkable 发表于 2021-1-11 22:12
    你这直接smartctl -A /dev/sda就可以了
    直接不输出东西啊
    1. root@PAR-258395:/# smartctl -A /dev/sda
    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. === START OF READ SMART DATA SECTION ===
  • remarkable 12天前
    引用 12
    CodyDoby 发表于 2021-1-11 22:37
    直接不输出东西啊
    不清楚,你的这个硬盘肯定是/dev/sda,可能是smart功能没开启,先smartctl -i /dev/sda看是不是有这句SMART support is: Disabled,如果是的话执行smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda开启smart功能,再执行smartctl -A /dev/sda查看硬盘信息,还不行的话也没办法了
  • 楼主 CodyDoby 12天前
    引用 13
    remarkable 发表于 2021-1-11 22:52
    不清楚,你的这个硬盘肯定是/dev/sda,可能是smart功能没开启,先smartctl -i /dev/sda看是不是有这句SMA ...
    对哦 好像说硬盘是虚拟的,不知道op啥操作
    1. root@PAR-258395:/# smartctl -i /dev/sda
    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. === START OF INFORMATION SECTION ===
    5. Vendor:               Dell
    6. Product:              Virtual Disk
    7. Revision:             1028
    8. Compliance:           SPC-4
    9. User Capacity:        1,999,307,276,288 bytes [1.99 TB]
    10. Logical block size:   512 bytes
    11. Logical Unit id:      0x600508e0000000007e225ea7781d6100
    12. Device type:          disk
    13. Local Time is:        Mon Jan 11 22:54:32 2021 CST
    14. SMART support is:     Unavailable - device lacks SMART capability.
    1. root@PAR-258395:/# smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
    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. === START OF ENABLE/DISABLE COMMANDS SECTION ===
    5. unable to fetch IEC (SMART) mode page [badly formed scsi parameters]
    6. A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
  • remarkable 12天前
    引用 14
    CodyDoby 发表于 2021-1-11 22:55
    对哦 好像说硬盘是虚拟的,不知道op啥操作
    你这整块盘是Virtual Disk,真的是独服吗?哪一款呀
  • wenguonideshou 12天前
    引用 15
    命令应该没什么大问题 主要是硬盘不是物理硬盘
  • vhs.plus 12天前
    引用 16
    df -h
  • 楼主 CodyDoby 12天前
    引用 17
    remarkable 发表于 2021-1-11 22:57
    你这整块盘是Virtual Disk,真的是独服吗?哪一款呀
    1. HARDWARE
    2. CPU
    3. Intel Core i3-530 - 2.93 GHz - 2 core(s)
    4. RAM
    5. 4GB - DDR3
    6. STORAGE
    7. 2x 1TB (HDD SATA)
    8. BANDWIDTH
    9. Unmetered [url=home.php?mod=space&uid=175]@[/url] 1Gbps
    10. OS
    11. Debian 10, 64 bits
    是OP 10欧元的这个呢
  • 楼主 CodyDoby 12天前
    引用 18
    vhs.plus 发表于 2021-1-11 23:10
    df -h
    1. root@PAR-258395:/# df -h
    2. Filesystem      Size  Used Avail Use% Mounted on
    3. udev            1.9G     0  1.9G   0% /dev
    4. tmpfs           387M  6.0M  381M   2% /run
    5. /dev/sda3       1.8T   53G  1.8T   3% /
    6. tmpfs           1.9G     0  1.9G   0% /dev/shm
    7. tmpfs           5.0M     0  5.0M   0% /run/lock
    8. tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
    9. /dev/sda1       487M   47M  411M  11% /boot
    10. overlay         1.8T   53G  1.8T   3% /var/lib/docker/overlay2/6930adbb27e7fc9e57e4f251c7885fa06cf0dcd77a81f4d2fb322f9ddd0ab613/merged
    11. tmpfs           387M     0  387M   0% /run/user/1000
    也是sda3
  • 游客
    19
返回