YANO's digital garage

Copyright ©YANO All rights reserved. https://www.bravotouring.com/~yano/

Last-modified: 2024-04-17 (水)


[一語一絵/IT系]

エラー再発 / 2016-12-28 (水)

1日に対応したGT110bの外付け3TBドライブにおいて

XFS (sde1): xfs_log_force: error 5 returned.
とか
end_request: I/O error, dev sde, sector 2269200832
といったエラーが再発。

HDDケースを2010年5月調達のコレガ[External]CG-HDC2EU3100から、玄人志向[External]GW3.5AX2-SU3/REV2.0に喚装してみたのだが、どうやら中身である2009年調達のWD15EADSがボチボチ寿命と言うことだろう。

とは言え、はいそうですかと新しくHDDを調達するのも癪なので、WD15EADSをミラーリングで再利用してみる事に。[External]GW3.5AX2-SU3/REV2.0のDIPスイッチを操作した後に電源を入れてRESETボタンを長押し。LEDの点滅が収まれば構成完了という事で、改めてUSBケーブルを接続。

早速partedを起動してみると"パーティションテーブルが破損している"と言われたが、元々がRAID0構成で2倍のサイズになってたので無理からぬ事だ。gdiskでキレイにクリーンアップ。

yano@GT110b:~$ sudo parted /dev/sde
GNU Parted 2.3
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Warning: /dev/sde contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?
Yes/No? Yes
Error: Both the primary and backup GPT tables are corrupt.  Try making a fresh table, and using Parted's rescue feature to recover partitions.
(parted) q
yano@GT110b:~$ sudo gdisk /dev/sde
GPT fdisk (gdisk) version 0.8.8

Warning! Disk size is smaller than the main header indicates! Loading secondary header from the last sector of the disk! You should use 'v' to verify disk integrity, and perhaps options on the experts' menu to repair the disk.
Caution: invalid backup GPT header, but valid main header; regenerating backup header from main header.

Caution! After loading partitions, the CRC doesn't check out!
Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: damaged

Found invalid MBR and corrupt GPT. What do you want to do? (Using the GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT

Your answer: 2

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sde.
The operation has completed successfully.
yano@GT110b:~$

あとは、partedで普通にxfsパーティションを作成。

yano@GT110b:~$ sudo parted /dev/sde
GNU Parted 2.3
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Prolific RAID1 (scsi)
Disk /dev/sde: 1500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

(parted) unit GB
(parted) mkpart GW3.5AX2-SU3/REV2.0 xfs 0 1501
(parted) print
Model: Prolific RAID1 (scsi)
Disk /dev/sde: 1500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
1      0.00GB  1500GB  1500GB               GW3.5AX2-SU3/REV2.0

(parted) q
Information: You may need to update /etc/fstab.

yano@GT110b:~$ sudo mkfs.xfs /dev/sde1
meta-data=/dev/sde1              isize=256    agcount=4, agsize=91571072 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=366284288, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=178849, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
yano@GT110b:~$ sudo blkid -o value -s UUID /dev/sde1
545ea6a8-41a9-41f8-bb49-a38c9c5093f3
yano@GT110b:~$

【参照】
●玄人志向 http://www.kuroutoshikou.com/
GW3.5AX2-SU3/REV2.0:USB3.0接続 SATAx2 HDDケース
●価格.com http://kakaku.com/
GW3.5AX2-SU3/REV2.0 [ブラック] 4,418円
●Amazon.co.jp https://www.amazon.co.jp/
玄人志向 HDDケース3.5インチHDD2台搭載可能 USB3.0/2.0 GW3.5AX2-SU3/REV2.0 4,418円
●Wikipedia https://ja.wikipedia.org/wiki/
GUIDパーティションテーブル