2016年7月31日日曜日

2.5インチHDDのLoad_Cycle_Countの上昇

S.M.A.R.T. の中で Load_Cycle_Count というのがあり、WD GREEN に属する HDD では、IntelliPark という機能の作用で、このカウンタがどんどん上がるという話題が有名です。
WD GREEN に限った性質と思ってましたが、ふと手持ちの 2.5 インチ HDD の値を見てみたら、結構な値になっていました。調べてみると、どうやら、APM 機能によるもののようです。

[root@hoge ~]# smartctl -g apm /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.3.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

APM level is:     128 (minimum power consumption without standby)
[root@hoge ~]# smartctl -s apm,253 /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.3.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

APM set to level 253 (intermediate level without standby)
[root@hoge ~]# smartctl -A /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.3.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   173   173   033    Pre-fail  Always       -       2
  4 Start_Stop_Count        0x0012   099   099   000    Old_age   Always       -       1873
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   093   093   000    Old_age   Always       -       3451
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1716
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   097   097   000    Old_age   Always       -       393906
193 Load_Cycle_Count        0x0012   097   097   000    Old_age   Always       -       37845
194 Temperature_Celsius     0x0002   166   166   000    Old_age   Always       -       36 (Min/Max 7/53)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       259
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0

[root@hoge ~]# smartctl -A /dev/sdc
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.3.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   173   173   033    Pre-fail  Always       -       2
  4 Start_Stop_Count        0x0012   099   099   000    Old_age   Always       -       1873
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   093   093   000    Old_age   Always       -       3452
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1716
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   097   097   000    Old_age   Always       -       393906
193 Load_Cycle_Count        0x0012   097   097   000    Old_age   Always       -       37845
194 Temperature_Celsius     0x0002   162   162   000    Old_age   Always       -       37 (Min/Max 7/53)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       259
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0
APM 設定を 253 にすると上がらなくなりました。ただし、温度が高めになります。254 が maximum performance なのですが、254 だと更に温度が高くなるようで、253 のほうが良好に感じました。

2016年7月18日月曜日

中古 HDD の初期確認、4個目(2016年7月)

中古 HDD の初期確認。前回に続き、某ショップより4個目を入手しましたので、今回も備忘録です。

今回入手した中古 HDD も、前回と同じく Seagate Barracuda ES.2 1TB です。今まで入手した中で、もっとも高値でしたが、商品の説明によると、状態は良い(五つ★)ということでした。
ちなみに、4個購入して平均の値段は、3083円 でした。

まず、S.M.A.R.T. の確認です。
[root@hoge ~]# smartctl -A /dev/sdb
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.1.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
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   115   081   006    Pre-fail  Always       -       86548384
  3 Spin_Up_Time            0x0003   091   091   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       157
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       369
  7 Seek_Error_Rate         0x000f   068   060   030    Pre-fail  Always       -       94635312555
  9 Power_On_Hours          0x0032   075   075   000    Old_age   Always       -       22600
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       1
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       140
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       301
188 Command_Timeout         0x0032   100   089   000    Old_age   Always       -       171801313320
189 High_Fly_Writes         0x003a   096   096   000    Old_age   Always       -       4
190 Airflow_Temperature_Cel 0x0022   064   046   045    Old_age   Always       -       36 (Min/Max 28/36)
194 Temperature_Celsius     0x0022   036   054   000    Old_age   Always       -       36 (0 14 0 0 0)
195 Hardware_ECC_Recovered  0x001a   031   016   000    Old_age   Always       -       86548384
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   193   000    Old_age   Always       -       8172
残念ながら、それほど良いコンディションではないですね。
ですが、これまでの経験からは、すこぶる悪いというほどでもないです。

運用時間(9 Power_On_Hours)は、
[root@hoge ~]# echo "22600 / 24 / 365" | bc -l
2.57990867579908675799

次は hdparm -i の出力です。
[root@hoge ~]# hdparm -i /dev/sdb

/dev/sdb:

 Model=ST31000340NS, FwRev=SN04, SerialNo=5QJ0D8RA
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2:  ATA/ATAPI-4,5,6

 * signifies the current active mode

ファームウェアのバージョンは、SN04 でした。同じモデルでも、ずいぶん色々なバージョンがあるもんですね。1個目は NA02、2個目が FSC9、3個目は SN06 でした。

次は、smartctl -a の出力です。
[root@hoge ~]# smartctl -a /dev/sdb
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.1.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda ES.2
Device Model:     ST31000340NS
Serial Number:    5xxxxxxA
LU WWN Device Id: 5 000c50 0yyyyyyyf
Firmware Version: SN04
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:   6
ATA Standard is:  ATA/ATAPI-6 T13 1410D revision 2
Local Time is:    Mon Jun 27 15:25:19 2016 JST

==> WARNING: There are known problems with these drives,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/207963en  ★かの有名な問題の警告が出ています

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

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:   (  642) 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:   ( 239) minutes.
Conveyance self-test routine
recommended polling time:   (   2) minutes.
SCT capabilities:         (0x003d) SCT Status supported.
     SCT Error Recovery Control 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   115   081   006    Pre-fail  Always       -       86548384
  3 Spin_Up_Time            0x0003   091   091   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       157
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       369
  7 Seek_Error_Rate         0x000f   068   060   030    Pre-fail  Always       -       94635312564
  9 Power_On_Hours          0x0032   075   075   000    Old_age   Always       -       22600
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       1
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       140
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       301
188 Command_Timeout         0x0032   100   089   000    Old_age   Always       -       171801313320
189 High_Fly_Writes         0x003a   096   096   000    Old_age   Always       -       4
190 Airflow_Temperature_Cel 0x0022   064   046   045    Old_age   Always       -       36 (Min/Max 28/36)
194 Temperature_Celsius     0x0022   036   054   000    Old_age   Always       -       36 (0 14 0 0 0)
195 Hardware_ECC_Recovered  0x001a   031   016   000    Old_age   Always       -       86548384
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   193   000    Old_age   Always       -       8172

SMART Error Log Version: 1
ATA Error Count: 301 (device log contains only the most recent five errors)
 CR = Command Register [HEX]
 FR = Features Register [HEX]
 SC = Sector Count Register [HEX]
 SN = Sector Number Register [HEX]
 CL = Cylinder Low Register [HEX]
 CH = Cylinder High Register [HEX]
 DH = Device/Head Register [HEX]
 DC = Device Command Register [HEX]
 ER = Error register [HEX]
 ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 301 occurred at disk power-on lifetime: 16966 hours (706 days + 22 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 ff ff ff 4f 00   3d+15:16:57.119  READ FPDMA QUEUED
  61 00 08 ff ff ff 4f 00   3d+15:16:57.119  WRITE FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:57.035  READ LOG EXT
  60 00 08 ff ff ff 4f 00   3d+15:16:55.303  READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:55.187  READ LOG EXT

Error 300 occurred at disk power-on lifetime: 16966 hours (706 days + 22 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 ff ff ff 4f 00   3d+15:16:55.303  READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:55.187  READ LOG EXT
  60 00 08 ff ff ff 4f 00   3d+15:16:53.463  READ FPDMA QUEUED
  61 00 08 40 0f 60 40 00   3d+15:16:53.463  WRITE FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:53.386  READ LOG EXT

Error 299 occurred at disk power-on lifetime: 16966 hours (706 days + 22 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 ff ff ff 4f 00   3d+15:16:53.463  READ FPDMA QUEUED
  61 00 08 40 0f 60 40 00   3d+15:16:53.463  WRITE FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:53.386  READ LOG EXT
  60 00 08 ff ff ff 4f 00   3d+15:16:50.814  READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:50.738  READ LOG EXT

Error 298 occurred at disk power-on lifetime: 16966 hours (706 days + 22 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 ff ff ff 4f 00   3d+15:16:50.814  READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:50.738  READ LOG EXT
  60 00 08 ff ff ff 4f 00   3d+15:16:48.997  READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:48.857  READ LOG EXT
  61 00 08 ff ff ff 4f 00   3d+15:16:47.118  WRITE FPDMA QUEUED

Error 297 occurred at disk power-on lifetime: 16966 hours (706 days + 22 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 ff ff ff 4f 00   3d+15:16:48.997  READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00   3d+15:16:48.857  READ LOG EXT
  61 00 08 ff ff ff 4f 00   3d+15:16:47.118  WRITE FPDMA QUEUED
  61 00 08 ff ff ff 4f 00   3d+15:16:47.117  WRITE FPDMA QUEUED
  60 00 08 ff ff ff 4f 00   3d+15:16:47.116  READ FPDMA QUEUED

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


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.
エラーの記録がありました。まあ、この程度なら、しばらく使えるとは思いますが。

次は、hdparm -I の出力です。
[root@hoge ~]# hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
 Model Number:       ST31000340NS                            
 Serial Number:      5xxxxxxA
 Firmware Revision:  SN04    
Standards:
 Used: ATA/ATAPI-6 T13 1410D revision 2 
 Supported: 6 5 4 
Configuration:
 Logical  max current
 cylinders 16383 16383
 heads  16 16
 sectors/track 63 63
 --
 CHS current addressable sectors:   16514064
 LBA    user addressable sectors:  268435455
 LBA48  user addressable sectors: 1953525168
 Logical/Physical Sector size:           512 bytes
 device size with M = 1024*1024:      953869 MBytes
 device size with M = 1000*1000:     1000204 MBytes (1000 GB)
 cache/buffer size  = unknown
 Nominal Media Rotation Rate: 7200
Capabilities:
 LBA, IORDY(can be disabled)
 Queue depth: 32
 Standby timer values: spec'd by Standard, no device specific minimum
 R/W multiple sector transfer: Max = 16 Current = 16
 Recommended acoustic management value: 254, current value: 0
 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
      Cycle time: min=120ns recommended=120ns
 PIO: pio0 pio1 pio2 pio3 pio4 
      Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
 Enabled Supported:
    * SMART feature set
      Security Mode feature set
    * Power Management feature set
    * Write cache
    * Look-ahead
    * Host Protected Area feature set
    * WRITE_BUFFER command
    * READ_BUFFER command
    * DOWNLOAD_MICROCODE
    * SET_MAX security extension
    * 48-bit Address feature set
    * Device Configuration Overlay feature set
    * Mandatory FLUSH_CACHE
    * FLUSH_CACHE_EXT
    * SMART error logging
    * SMART self-test
      General Purpose Logging feature set
    * 64-bit World wide name
    * Write-Read-Verify feature set
    * WRITE_UNCORRECTABLE_EXT command
    * Gen1 signaling speed (1.5Gb/s)
    * Native Command Queueing (NCQ)
    * Phy event counters
    * Software settings preservation
    * SMART Command Transport (SCT) feature set
    * SCT Write Same (AC2)
    * SCT Error Recovery Control (AC3)
    * SCT Features Control (AC4)
    * SCT Data Tables (AC5)
Security: 
 Master password revision code = 65534
  supported
 not enabled
 not locked
 not frozen
 not expired: security count
  supported: enhanced erase
Logical Unit WWN Device Identifier: 5000c500yyyyyyyf
 NAA  : 5
 IEEE OUI : 000c50
 Unique ID : 0yyyyyyyf
Checksum: correct

このあと、4台構成の RAIDZ に組み込みましたが、resilver と scrub でエラーが出ませんでしたので、十分に使えそうな感触です。

2016年7月6日水曜日

CentOS7 で systemd: Starting Session を抑止する方法(rsyslogd のフィルターで抑止)

CentOS7 / RHEL7 だと、cron が動くたびに、"systemd: Starting Session ... of user root." というメッセージが出て、邪魔(ノイズ)だと思っていました。これを抑止する方法としては、systemd 自体のログレベルを下げる方法があるのですが、大事なメッセージも出なくなる懸念があり、邪魔だとは思いつつ、デフォルトのままで運用していました。。。

レッドハットのナレッジベースに、rsyslogd のフィルターで抑止する方法(ナレッジ1564823) があるのを発見。メモメモ(ダブルポインタ)。
きっとレッドハットにも、このメッセージの問い合わせが多数寄せられたのでしょう。

そのまま頂戴して、自分のマシンにも設定施しました。
※ナレッジの設定を施して、systemctl restart rsyslog.service 実行後
[root@hoge ~]# grep Session /var/log/messages | head
Jul  5 04:11:01 hoge systemd: Started Session 32 of user root.
Jul  5 04:11:01 hoge systemd: Starting Session 32 of user root.
Jul  5 04:12:01 hoge systemd: Started Session 33 of user root.
Jul  5 04:12:01 hoge systemd: Starting Session 33 of user root.
Jul  5 04:13:01 hoge systemd: Started Session 34 of user root.
Jul  5 04:13:01 hoge systemd: Starting Session 34 of user root.
Jul  5 04:14:01 hoge systemd: Started Session 35 of user root.
Jul  5 04:14:01 hoge systemd: Starting Session 35 of user root.
Jul  5 04:15:01 hoge systemd: Started Session 36 of user root.
Jul  5 04:15:01 hoge systemd: Starting Session 36 of user root.
[root@hoge ~]# date ; tail -f /var/log/messages
2016年  7月  6日 水曜日 07:02:45 JST
Jul  6 06:55:06 hoge systemd: Configuration file /usr/lib/systemd/system/wpa_supplicant.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Jul  6 06:55:07 hoge systemd: [/usr/lib/systemd/system/firstboot-graphical.service:14] Support for option SysVStartPriority= has been removed and it is ignored
Jul  6 06:55:07 hoge systemd: [/usr/lib/systemd/system/initial-setup-text.service:21] Support for option SysVStartPriority= has been removed and it is ignored
Jul  6 06:55:07 hoge systemd: Configuration file /usr/lib/systemd/system/ebtables.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Jul  6 06:55:07 hoge systemd: Configuration file /usr/lib/systemd/system/wpa_supplicant.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Jul  6 06:55:07 hoge rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="1851" x-info="http://www.rsyslog.com"] exiting on signal 15.
Jul  6 06:55:07 hoge rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="10193" x-info="http://www.rsyslog.com"] start
Jul  6 06:55:07 hoge systemd: Stopping System Logging Service...
Jul  6 06:55:07 hoge systemd: Starting System Logging Service...
Jul  6 06:55:07 hoge systemd: Started System Logging Service.

^C
[root@hoge ~]# date
2016年  7月  6日 水曜日 07:03:15 JST
おかげで、ノイズが減って、せいせいしました。。。すっかり慣れっこ (CentOS7/RHEL7 はそういうものとあきらめていました) になってましたが、さすがに1分毎の cron で、大して意味のないメッセージが2行も出るのは、出杉でした。
人気ブログランキングへ にほんブログ村 IT技術ブログへ