올바른 값을 얻는 가장 좋은 방법은 무엇입니까쓴 총 바이트 수매일 디스크에?
제 목표는 관리자로서 Linux 서버의 활동에 대한 통찰력을 얻고 SSD의 기대 수명을 예측하는 데 사용할 수 있는 직접적인 지표를 얻을 수 있도록 시간에 따라 기록하는 것입니다. 1등급 - 예를 들어 DWPD를 사용할 수 있거나 수행 중인 작업에 3-DWPD 엔터프라이즈급 SSD가 필요할 수 있습니다.
XFS, EXT4, BTFS 파일 시스템 선택과 SSD의 수명에 영향을 미칠 수 있는 Linux에 설치된 추가 소프트웨어/서비스 간의 차이점에 관심이 있습니다.
smartctl
내가 찾고 있는 정보를 캡처하는 것보다 더 나은 명령이 있습니까? 이 확장 출력을 처리하는 코드를 작성할 수 있습니까 --xall
? 아니면 더 구체적인 smartctl 옵션이 있습니까?
이 출력을 기반으로 드라이브 쓰기를 정확하게 결정하려면 어떤 값을 사용해야 합니까? disk 0..7 을 지정하여 다음을 수행하겠습니다 -d megaraid,#
. 이는 RHEL 8.9에서 작동합니다.
smartctl --xall -d megaraid,0 /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.18.0-513.11.1.el8_9.x86_64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: KPM5WRUG3T84
Revision: B318
Compliance: SPC-4
User Capacity: 3,840,755,982,336 bytes [3.84 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Logical Unit id: 0x58ce38ee20abca55
Serial number: abc123
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Thu Mar 7 13:55:22 2024 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Disabled or Not Supported
Read Cache is: Enabled
Writeback Cache is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Percentage used endurance indicator: 0%
Current Drive Temperature: 29 C
Drive Trip Temperature: 70 C
Manufactured in week 33 of year 2019
Elements in grown defect list: 2
Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 0 0 0 0 0 27081.068 0
write: 0 0 0 0 0 8041.818 0
verify: 0 0 0 0 0 23058.613 0
Non-medium error count: 87
SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background long Completed - 38 - [- - -]
# 2 Background short Completed - 37 - [- - -]
# 3 Background long Completed - 14 - [- - -]
# 4 Background short Completed - 14 - [- - -]
Long (extended) Self-test duration: 300 seconds [5.0 minutes]
Background scan results log
Status: no scans active
Accumulated power on time, hours:minutes 1169:17 [70157 minutes]
Number of background scans performed: 0, scan progress: 0.00%
Number of background medium scans performed: 0
Protocol Specific port log page for SAS SSP
relative target port id = 1
generation code = 4
number of phys = 1
phy identifier = 0
attached device type: SAS or SATA device
attached reason: unknown
reason: loss of dword synchronization
negotiated logical link rate: phy enabled; 12 Gbps
attached initiator port: ssp=1 stp=1 smp=1
attached target port: ssp=0 stp=0 smp=0
SAS address = 0x58ce38ee20abca56
attached SAS address = 0x52cea7f048bd6b07
attached phy identifier = 1
Invalid DWORD count = 12
Running disparity error count = 12
Loss of DWORD synchronization = 3
Phy reset problem = 0
relative target port id = 2
generation code = 4
number of phys = 1
phy identifier = 1
attached device type: no device attached
attached reason: unknown
reason: unknown
negotiated logical link rate: phy enabled; unknown
attached initiator port: ssp=0 stp=0 smp=0
attached target port: ssp=0 stp=0 smp=0
SAS address = 0x58ce38ee20abca57
attached SAS address = 0x0
attached phy identifier = 0
Invalid DWORD count = 0
Running disparity error count = 0
Loss of DWORD synchronization = 0
Phy reset problem = 0