ラベル RAID の投稿を表示しています。 すべての投稿を表示
ラベル RAID の投稿を表示しています。 すべての投稿を表示

2012年9月1日土曜日

FreeBSD8.3でRocketRAID640に接続したHDDのSMARTを取得する。

メモ。
augearsculs# /usr/bin/hptraidconf -u RAID -p hpt
HighPoint CLI>query controllers
ID                              Channel         Name
1                               4               RocketRAID 64x SATA Controller
-------------------------------------------------------------------------------
HighPoint CLI>query devices
ID      Capacity    MaxFree     Flag    Status    ModelNumber
-------------------------------------------------------------------------------
1/2     3000.50     0           RAID    NORMAL    ST33000651AS
1/4     3000.50     0           RAID    NORMAL    ST33000651AS
-------------------------------------------------------------------------------
HighPoint CLI>exit
augearsculs# smartctl -a -d hpt,1/2/1 /dev/rr64x
smartctl 5.41 2011-06-09 r3365 [FreeBSD 8.3-RELEASE-p3 amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda XT
Device Model:     ST33000651AS
Serial Number:    XXXXXXXX
LU WWN Device Id: XXXXXXXXXXXXXXXXXXX
Firmware Version: XXXX
User Capacity:    3,000,592,982,016 bytes [3.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:    Fri Aug 31 23:31:50 2012 JST
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:                (  600) 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:        ( 255) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x103f) 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   108   099   006    Pre-fail  Always       -       16610240
  3 Spin_Up_Time            0x0003   092   089   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       49
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   066   060   030    Pre-fail  Always       -       4593700
  9 Power_On_Hours          0x0032   088   088   000    Old_age   Always       -       11195
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       49
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   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   058   042   045    Old_age   Always   In_the_past 42 (0 45 49 34)
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       -       48
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       49
194 Temperature_Celsius     0x0022   042   058   000    Old_age   Always       -       42 (0 19 0 0)
195 Hardware_ECC_Recovered  0x001a   012   003   000    Old_age   Always       -       16610240
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      -       84353157704634
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       1654473628
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       593392719

SMART Error Log Version: 1
No Errors Logged

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.

augearsculs# smartctl -a -d hpt,1/4/1 /dev/rr64x
smartctl 5.41 2011-06-09 r3365 [FreeBSD 8.3-RELEASE-p3 amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda XT
Device Model:     ST33000651AS
Serial Number:    XXXXXXXX
LU WWN Device Id: XXXXXXXXXXXXXXXXXXX
Firmware Version: XXXX
User Capacity:    3,000,592,982,016 bytes [3.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:    Fri Aug 31 23:35:37 2012 JST
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:                (  617) 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:        ( 255) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x103f) 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   120   100   006    Pre-fail  Always       -       236377043
  3 Spin_Up_Time            0x0003   092   087   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       50
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   066   060   030    Pre-fail  Always       -       4390439
  9 Power_On_Hours          0x0032   088   088   000    Old_age   Always       -       11194
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       50
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   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   061   043   045    Old_age   Always   In_the_past 39 (0 19 47 34)
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       -       49
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       50
194 Temperature_Celsius     0x0022   039   057   000    Old_age   Always       -       39 (0 19 0 0)
195 Hardware_ECC_Recovered  0x001a   024   004   000    Old_age   Always       -       236377043
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      -       222286032415674
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       2934483168
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       3783571941

SMART Error Log Version: 1
No Errors Logged

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.

2011年5月29日日曜日

AtomD525とRocketRAID640、FreeBSD8.2でZFSなNAS構築その2

AtomD525とRocketRAID640、FreeBSD8.2でZFSなNAS構築その1の続き。
OSやSambaとかインストールするので、その時の備忘録など。

(1)FreeBSD8.2のインストールと設定
64bit版をダンロードしてインストーラに従ってSSDにインストール。
他のハードウェアも特に問題なく認識していた。
  1. IPアドレスの固定
    /etc/rc.conf
    defaultrouter="192.168.100.1"
    hostname="augearsculs"
    ifconfig_re0="inet 192.168.100.189 netmask 255.255.255.0"

    下記を設定しないと名前解決できないので設定する必要がある。
    /etc/resolv.conf
    nameserver 192.168.100.1

  2. hostsファイルへホスト名の追加
    rc.confのhostnameへ設定したホスト名を127.0.0.1の後に、
    localhostの後に半角スペースと伴に追加する。
    /etc/hosts
    127.0.0.1 localhost augearsculs
(2)RocketRAID640のドライバインストール
FreeBSD8のドライバがあるのでPDFのイストールガイドに沿ってインストール。
ドライバがロードされるとSCSIデバイスとして認識される。

(3)ZFS
SCSIデバイスとして認識されているda0をzfs createするだけで
FreeBSDは自動でマウントしてくれたりしたので、
他に設定する必要は特にない。

(4)Samba
Portsからインストールする。場所は下記。
/usr/ports/net/samba35

smb.confは以下のような感じ。
log levelとsyslogはパフォーマンスに影響あるのでデフォルトから変更しておく。
/usr/local/etc/smb.conf
[global]
 dos charset = CP932
 display charset = UTF-8
 server string = AUGEARSCULS
 security = SHARE
 log level = 1
 syslog = 0
 log file = /var/log/samba/log.%m
 max log size = 50
 load printers = No
 dns proxy = No

[homes]
 comment = Home Directories
 read only = No
 browseable = No

[printers]
 comment = All Printers
 path = /var/spool/samba
 printable = Yes
 browseable = No

[regza]
 path = /zpool/share/regza
 read only = No
 create mask = 0777
 directory mask = 0777
 guest ok = Yes

[tmp]
 path = /zpool/share/tmp
 read only = No
 create mask = 0777
 directory mask = 0777
 guest ok = Yes
東芝のREGZA Z3500からSambaで設定した共有ディレクトリに接続した様子。



ついでにパフォーマンスも計測。
以下は、WindowsXPのネットワークドライブとして接続して実行した
Crystal Disk Markの結果。


-----------------------------------------------------------------------
CrystalDiskMark 3.0.1 (C) 2007-2010 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    22.189 MB/s
          Sequential Write :    26.165 MB/s
         Random Read 512KB :    22.679 MB/s
        Random Write 512KB :    28.072 MB/s
    Random Read 4KB (QD=1) :     6.525 MB/s [  1593.1 IOPS]
   Random Write 4KB (QD=1) :     3.158 MB/s [   771.0 IOPS]
   Random Read 4KB (QD=32) :    15.733 MB/s [  3841.0 IOPS]
  Random Write 4KB (QD=32) :     3.254 MB/s [   794.4 IOPS]

  Test : 1000 MB [Z: 13.3% (364.3/2740.5 GB)] (x5)
  Date : 2011/05/26 22:40:44
    OS : Windows XP Professional SP3 [5.1 Build 2600] (x86)
いまいちなのでパフォーマンスチューニングしてみる。
ZFSやSambaはデフォルトで最適化されているらしいので、
特に何も設定値は弄らない。
1番効果があるのはネットワーク絡みらしい。
そこで、下記のコマンドで変更対象の値をチェック。
sysctl net.inet.tcp

FreeBSD8.2では以下の値になっていた。
net.inet.tcp.sendbuf_max: 262144
net.inet.tcp.sendbuf_inc: 8192
net.inet.tcp.recvbuf_max: 262144
net.inet.tcp.recvbuf_inc: 16384

そこで、下記のファイルに以下の値を設定。
とりあえず、基の設定値から2倍にしてみた。
/etc/sysctl.conf

net.inet.tcp.sendbuf_max=524288
net.inet.tcp.sendbuf_inc=16384
net.inet.tcp.recvbuf_max=524288
net.inet.tcp.recvbuf_inc=32788

調整の余地はまだありそうな気はしているものの、
面倒なのでこれで運用してみます。


-----------------------------------------------------------------------
CrystalDiskMark 3.0.1 (C) 2007-2010 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    32.891 MB/s
          Sequential Write :    35.994 MB/s
         Random Read 512KB :    34.595 MB/s
        Random Write 512KB :    39.228 MB/s
    Random Read 4KB (QD=1) :     9.122 MB/s [  2227.0 IOPS]
   Random Write 4KB (QD=1) :     4.648 MB/s [  1134.8 IOPS]
   Random Read 4KB (QD=32) :    22.297 MB/s [  5443.7 IOPS]
  Random Write 4KB (QD=32) :     3.553 MB/s [   867.4 IOPS]

  Test : 1000 MB [Z: 15.7% (430.6/2740.5 GB)] (x5)
  Date : 2011/05/28 9:10:00
    OS : Windows XP Professional SP3 [5.1 Build 2600] (x86)

2011年6月12日追記
HDDの容量が増えて既に同じ状況下ではないものの、試しに値を3倍にしたら全体的にパフォーマンスが劣化したので、デフォルト値の2倍で運用することにした。