A USB HDD is trouble outbreak in debian7.7

2015-01-04 Thread Jun Itou
I managed debian 7 by the following constitution.

  Body) I-O DATA GLANTANK 2.0TB (500GB * 4 RAID0, iop32x)
  USB1) I-O DATA HDZ-UES  2.0TB (500GB * 4 JBOD)
  USB2) I-O DATA HDZ-UES  1.0TB (250GB * 4 JBOD)
  USB3) I-O DATA HDZ-UES  1.0TB (250GB * 4 JBOD)
  USB4) I-O DATA HDW-UE   1.0TB (500GB * 2 JBOD)

After making 7.7 from debian 7.6, malfunction occurred.

  1) A sector error occurs when I do mount and becomes the lead only
  2) I fail in synchronization of the file system when I do fdisk

I gave following tests to cut a problem into pieces.

  1) I do operation same as GLANTANK in x64 environment whether it is a problem 
of the hardware.
-> Because the same problem occurs with both, it is not peculiar to 
hardware.

  2) I confirm whether it is the problem of the HDD of USB1 - 4 with the test 
tool of the HDD maker.
-> Because the HDD of all passed a test, it is not a problem of USB1 - 4.

  3) I do the same operation in Fedora whether it is a problem peculiar to 
debian.
-> Because it reappeared in Fedora, I conclude it to be a problem of kernel.

  4) I change a version of kernel on debian and do the same operation.
-> 3.2.62   : It does not reappear
   3.2.63 ~ : Reappear
   3.18.0 ~ : Reappear

  5) I report it to kernel.org and do the same operation after enforcement in 
the end run which there was of the answer.
-> Please refer to https://bugzilla.kernel.org/show_bug.cgi?id=89511.


It is to say that my USB HDD cannot support the change of this journal function 
in conclusion.
I make kernel latest or seem to but make a USB HDD a different one if I 
continue managing it by the present constitution.

I knew that it was not developed debian 8 for GLANTANK by a document.
Because there is no help for it, I think to manage it without formating ext2, 
and using the journal function.

※In addition, one of file system is destroyed when an error happens as for this 
malfunction even once.
  I hope that it reappears and is not given a test with the contained HDD of 
important data.

※Because the funny grammar is machine translation; a pardon

That's all.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/blu436-smtp175514212f285f17ac4c90f1...@phx.gbl



Debian7.7でUSB HDDの書込不可の不具合

2014-12-08 Thread Jun Itou
Jun Itouです。

お世話になります。

 Debian7.6から7.7に変更してからUSB HDDが書込不可の症状に直面しています。
 (7.6でもapt-get upgradeして同症状が出ているかもしれませんが、今回は新規インストールのため未確認)

 kernelの比較のため、kernel.orgから3.2.62と3.2.63をDLし両者をインストールして比較しました。
 
HDDは3.2.62でfdiskとmkfs.ext4を実行し、その状態で3.2.62と3.2.63でmountとumountを実行してdmesgを取得してみました。
 以下、両者のuname -aとdmesgのです。

 Linux sv-server 3.2.62 #1 SMP Mon Dec 8 16:11:25 JST 2014 x86_64 GNU/Linux
[   97.356924] usb 1-1: new high-speed USB device number 2 using ehci_hcd
[   97.659888] usb 1-1: New USB device found, idVendor=04bb, idProduct=0109
[   97.659892] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   97.659895] usb 1-1: Product: I-O DATA HDZ-UES
[   97.659897] usb 1-1: Manufacturer: I-O DATA DEVICE INC.
[   97.659899] usb 1-1: SerialNumber: 42A4
[   97.710211] Initializing USB Mass Storage driver...
[   97.710896] scsi3 : usb-storage 1-1:1.0
[   97.711053] usbcore: registered new interface driver usb-storage
[   97.711055] USB Mass Storage support registered.
[   98.714628] scsi 3:0:0:0: Direct-Access I-O DATA HDZ-UE1.0TS  6706 
PQ: 0 ANSI: 0 CCS
[   98.716173] sd 3:0:0:0: Attached scsi generic sg2 type 0
[   98.720033] sd 3:0:0:0: [sdb] 1953588672 512-byte logical blocks: (1.00 
TB/931 GiB)
[   98.726121] sd 3:0:0:0: [sdb] Write Protect is off
[   98.726125] sd 3:0:0:0: [sdb] Mode Sense: 34 00 00 00
[   98.733164] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   98.762988]  sdb: sdb1
[   98.784513] sd 3:0:0:0: [sdb] Attached SCSI disk
[  126.657792] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: 
(null)

Linux sv-server 3.2.63 #1 SMP Mon Dec 8 18:22:55 JST 2014 x86_64 GNU/Linux
[  101.331092] usb 1-1: new high-speed USB device number 2 using ehci_hcd
[  101.641961] usb 1-1: New USB device found, idVendor=04bb, idProduct=0109
[  101.641964] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  101.641967] usb 1-1: Product: I-O DATA HDZ-UES
[  101.641968] usb 1-1: Manufacturer: I-O DATA DEVICE INC.
[  101.641969] usb 1-1: SerialNumber: 42A4
[  101.690910] Initializing USB Mass Storage driver...
[  101.692081] scsi3 : usb-storage 1-1:1.0
[  101.692298] usbcore: registered new interface driver usb-storage
[  101.692299] USB Mass Storage support registered.
[  102.696841] scsi 3:0:0:0: Direct-Access I-O DATA HDZ-UE1.0TS  6706 
PQ: 0 ANSI: 0 CCS
[  102.698543] sd 3:0:0:0: Attached scsi generic sg2 type 0
[  102.702731] sd 3:0:0:0: [sdb] 1953588672 512-byte logical blocks: (1.00 
TB/931 GiB)
[  102.709340] sd 3:0:0:0: [sdb] Write Protect is off
[  102.709343] sd 3:0:0:0: [sdb] Mode Sense: 34 00 00 00
[  102.716254] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[  102.743219]  sdb: sdb1
[  102.763781] sd 3:0:0:0: [sdb] Attached SCSI disk
[  112.707426] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: 
(null)
[  117.075758] end_request: I/O error, dev sdb, sector 0
[  117.081523] end_request: I/O error, dev sdb, sector 973342744
[  117.081739] Aborting journal on device sdb1-8.
[  117.083837] journal commit I/O error
[  117.086427] EXT4-fs error (device sdb1): ext4_put_super:819: Couldn't clean 
up the journal
[  117.086716] EXT4-fs (sdb1): Remounting filesystem read-only

 ソースのdiffを取るとドライバーやファイルシステム等に手が入っているみたいですね。
 そこから先の問題点の追求はどうやったらいいものか、現在手詰まり状態です。
 どのソースファイルが問題なのか分かれば対応してもらうとかできるんですけど…。

 このUSB HDDはIDE形式のHDDが4台入っています。
 多分、JBODで連結されていると思います。
 HDDは単体でHDDメーカーのツールにて物理的な問題が無い事を確認して有ります。
 HDZ-UESとしては3台持っていて、どれも同じ症状なので個体の問題では無いと思います。

 一応思い出せる範囲で以下の事を確認しました。

  ・各ドライブ単体を取り出し、HDDメーカーの診断ソフトにて全セクターをR/Wして問題無い事を確認
  ・診断ソフトにて全セクターを0で書き潰し、7.7で同症状が再現する事を確認
  ・同症状が出ている状態でLive CDの7.6でfdiskやlsをやってもエラーやroにならない事を確認
  ・I-O DATAの同シリーズのUSB HDDを3台用意し、それぞれ同症状が出る事を確認
  ・sata仕様のHDD×1台のUSB HDDで7.7にて同症状が再現しない事を確認
  ・sata仕様のHDD×2台のUSB HDDをハードウェアRAID0で構築し7.7にて同症状が再現しない事を確認
  ・IDE仕様のHDD×1台のUSB HDDで7.7にて同症状が再現しない事を確認
  ・一つ前のkernelに戻すと再現しない事を確認
  ・7.6からapt-get upgradeで更新してきたものでも再現する事を確認
  ・7.7でtouchでファイルを作ろうとすると”touch: `/mnt/test.txt' に touch できません: 
読み込み専用ファイルシステムです”となる事を確認
  ・kernel.orgから3.2.62と3.2.63をDLして導入し、3.2.62で再現せず3.2.63で再現する事を確認
  ・フォーマットがext3でも再現する事を確認

 なおFedora20でも同症状が再現できるのでkernelの問題だと思います。
 Fedora20でfdiskを別々のUSB HDDにした時のdmesgです。
 (uname -aはLinux localhost.localdomain 3.17.4-200.fc20.i686+PAE #1 SMP Fri Nov 
21 23:45:26 UTC 2014 i686 i686 i386 GNU/Linux)

[root@localhost ~]# dmesg
[11378.635292]  sdb: sdb1
[11378.644515] end_request: critical target error, dev sdb, sector 0
[11505.048965]  sdc: sdc1
[11505.070962] end_request: critical target error, dev sdc, sector 0

 デバイスは以下のとおりです。

[12323.199222] usb 1-2: USB disconnect, device number 3
[12323.204864] sd 4:0:0:0: [sdc] Synchronizing SCSI cache
[12323.204969] sd 4:0:0:0: [sdc]
[12323.205036] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[12328.983064] usb 1-2: new high-speed USB device number 4 using ehci-pci
[12329.254305] usb 1-2: New USB device found, idVendor=