диски в raid1 нагружены по-разному, в smart немного отличаются. Почему?
#37585178
Ссылка:
Ссылка на сообщение:
Ссылка с названием темы:
Ссылка на профиль пользователя:
|
|
|
Есть в centos 5.7 dm raid1, созданный самым обычным образом без всяких там --write-mostly
mdadm --query --detail /dev/md2
/dev/md2:
Version : 0.90
Creation Time : Mon Sep 26 17:15:23 2011
Raid Level : raid1
Array Size : 959875648 (915.41 GiB 982.91 GB)
Used Dev Size : 959875648 (915.41 GiB 982.91 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Tue Dec 20 15:32:46 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 5695553:2e55553:aef55555:55555
Events : 0.42
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
Однако не понятно это ОС его неправильно нагружает или просто первый диск sda сам по себе тормознее попался?
явно у sda большая утилизация. вот вывод iostat -x с периодом 60 секунд чтобы сгладить неравномерности :
iostat -x 60 sda sdb
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41.
avg-cpu: %user %nice %system %iowait %steal %idle
22.48 0.61 3.36 6.86 0.00 66.70
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 13.86 203.28 121.12 64.35 14287.82 2141.18 88.58 11.83 63.76 1.96 36.43
sdb 6.44 206.03 12.16 160.60 747.43 14813.79 90.07 8.35 48.32 1.69 29.26
avg-cpu: %user %nice %system %iowait %steal %idle
22.17 1.34 4.03 11.02 0.00 61.43
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 7.17 76.03 13.13 65.83 1390.27 1135.07 31.98 18.62 235.86 4.87 38.47
sdb 6.35 75.52 13.95 66.37 1119.33 1135.07 28.07 3.47 43.21 2.94 23.60
avg-cpu: %user %nice %system %iowait %steal %idle
21.77 1.49 4.00 8.78 0.00 63.95
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 5.35 80.58 11.60 72.58 958.80 1225.33 25.94 15.53 184.44 4.31 36.27
sdb 8.08 80.60 18.12 72.55 1675.47 1225.20 31.99 3.93 43.31 3.22 29.20
avg-cpu: %user %nice %system %iowait %steal %idle
20.97 2.18 3.92 12.25 0.00 60.67
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 8.00 74.78 20.88 66.93 1574.00 1133.73 30.83 19.67 223.93 5.07 44.53
sdb 7.65 74.83 19.45 66.90 1535.47 1133.87 30.91 3.71 43.04 3.03 26.14
avg-cpu: %user %nice %system %iowait %steal %idle
19.74 1.75 3.57 11.29 0.00 63.65
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 9.63 73.08 23.33 64.83 1764.93 1103.47 32.53 18.41 208.79 4.71 41.57
sdb 8.70 72.90 18.73 65.02 1682.93 1103.47 33.27 10.18 121.45 4.10 34.36
avg-cpu: %user %nice %system %iowait %steal %idle
17.87 1.88 3.70 10.12 0.00 66.42
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 10.37 86.32 22.55 68.18 2019.07 1236.13 35.88 21.20 233.64 4.68 42.49
sdb 9.67 85.55 22.18 68.97 1862.13 1236.13 33.99 3.88 42.60 3.00 27.31
smartctl -a /dev/sda
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101. 102. 103.
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.18-238.el5] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda Green (Adv. Format)
Device Model: ST1000DL002-9TT153
Serial Number: W1XXXXX
LU WWN Device Id: 5 000c50 03555555
Firmware Version: CC32
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 4
Local Time is: Tue Dec 20 15:01:47 2011 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 612) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 162) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x30b7) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 118 099 006 Pre-fail Always - 189091744
3 Spin_Up_Time 0x0003 092 092 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 25
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail Always - 4629530011
9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2039
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 25
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 098 000 Old_age Always - 18
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 057 038 045 Old_age Always In_the_past 43 (0 131 45 42)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 22
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 25
194 Temperature_Celsius 0x0022 043 062 000 Old_age Always - 43 (0 22 0 0)
195 Hardware_ECC_Recovered 0x001a 034 021 000 Old_age Always - 189091744
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 127831111632888
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 3969161646
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 1382606765
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged.
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
и
smartctl -a /dev/sdb
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101. 102. 103.
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.18-238.el5] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda Green (Adv. Format)
Device Model: ST1000DL002-9TT153
Serial Number: W1XXXXXX
LU WWN Device Id: 5 000c50 0355555c
Firmware Version: CC32
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 4
Local Time is: Tue Dec 20 15:01:47 2011 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 612) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 168) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x30b7) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 117 099 006 Pre-fail Always - 123923072
3 Spin_Up_Time 0x0003 093 093 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 25
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 085 060 030 Pre-fail Always - 339182914
9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2038
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 25
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 098 000 Old_age Always - 12
189 High_Fly_Writes 0x003a 089 089 000 Old_age Always - 11
190 Airflow_Temperature_Cel 0x0022 055 038 045 Old_age Always In_the_past 45 (0 134 46 43)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 22
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 25
194 Temperature_Celsius 0x0022 045 062 000 Old_age Always - 45 (0 21 0 0)
195 Hardware_ECC_Recovered 0x001a 035 020 000 Old_age Always - 123923072
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 13043815679991
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 3842120637
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 3950662564
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged.
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
разница diff
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39.
49c49
< recommended polling time: ( 162) minutes.
---
> recommended polling time: ( 168) minutes.
59,60c59,60
< 1 Raw_Read_Error_Rate 0x000f 118 099 006 Pre-fail Always - 189091744
< 3 Spin_Up_Time 0x0003 092 092 000 Pre-fail Always - 0
---
> 1 Raw_Read_Error_Rate 0x000f 117 099 006 Pre-fail Always - 123923072
> 3 Spin_Up_Time 0x0003 093 093 000 Pre-fail Always - 0
63,64c63,64
< 7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail Always - 4629530011
< 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2039
---
> 7 Seek_Error_Rate 0x000f 085 060 030 Pre-fail Always - 339182914
> 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2038
70,72c70,72
< 188 Command_Timeout 0x0032 100 098 000 Old_age Always - 18
< 189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
< 190 Airflow_Temperature_Cel 0x0022 057 038 045 Old_age Always In_the_past 43 (0 131 45 42)
---
> 188 Command_Timeout 0x0032 100 098 000 Old_age Always - 12
> 189 High_Fly_Writes 0x003a 089 089 000 Old_age Always - 11
> 190 Airflow_Temperature_Cel 0x0022 055 038 045 Old_age Always In_the_past 45 (0 134 46 43)
76,77c76,77
< 194 Temperature_Celsius 0x0022 043 062 000 Old_age Always - 43 (0 22 0 0)
< 195 Hardware_ECC_Recovered 0x001a 034 021 000 Old_age Always - 189091744
---
> 194 Temperature_Celsius 0x0022 045 062 000 Old_age Always - 45 (0 21 0 0)
> 195 Hardware_ECC_Recovered 0x001a 035 020 000 Old_age Always - 123923072
81,83c81,83
< 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 127831111632888
< 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 3969161646
< 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 1382606765
---
> 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 13043815679991
> 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 3842120637
> 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 3950662564
|
|