# mdadm -C /dev/md0 -l1 -n2 /dev/sda1 /dev/sdb1 mdadm: /dev/sda1 appears to contain an ext2fs file system size=1004028K mtime=Thu Nov 1 00:13:31 2007 mdadm: Cannot open /dev/sdb1: No such device or address mdadm: create aborted # /sbin/mdadm -E /dev/sda1 mdadm: No md superblock detected on /dev/sda1. #やっぱりあかん。
missing を指定してみる
# mdadm -C /dev/md0 -l1 -n2 /dev/sda1 missing mdadm: /dev/sda1 appears to contain an ext2fs file system size=1004028K mtime=Thu Nov 1 00:13:31 2007 Continue creating array? y md: bindなんか、できたみたい。 スーパーブロックを見てみる。md: md0: raid array is not clean -- starting background reconstruction raid1: raid set md0 active with 1 out of 2 mirrors mdadm: array /dev/md0 started. #
# /sbin/mdadm -E /dev/sda1 /dev/sda1: Magic : a92b4efc Version : 00.90.00 UUID : dfcbaf7a:4f2f630f:7bcbde30:31188614 Creation Time : Thu Nov 1 00:06:12 2007 Raid Level : raid1 Device Size : 1003904 (980.54 MiB 1028.00 MB) Array Size : 1003904 (980.54 MiB 1028.00 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Update Time : Thu Nov 1 00:06:12 2007 State : active Active Devices : 1 Working Devices : 1 Failed Devices : 1 Spare Devices : 0 Checksum : 136b4b98 - correct Events : 0.1 Number Major Minor RaidDevice State this 0 8 1 0 active sync /dev/sda1 0 0 8 1 0 active sync /dev/sda1 1 1 0 0 1 faulty #何とか、スーパーブロックは書けたが、、、
# mkdir /tmp/boot # mount /dev/md0 /tmp/boot kjournald starting. Commit interval 5 seconds EXT3 FS on md0, internal journal EXT3-fs: mounted filesystem with ordered data mode. # ls /tmp/boot SATA1 initrd.buffalo conf_save.tgz initrd.buffalo.orig conf_save.tgz.orig uImage.buffalo hddrootfs.buffalo.updated.done #フォーマットもコピーもせんでもマウントできたで。
あとは、sdb を接続して、
mdadm /dev/md0 -a /dev/sdb1 すればよいのかな。。。。
でも、もう HDD は無い。
# mdadm -C /dev/md1 -l1 -n2 /dev/sda2 missing md: bindmd: md1: raid array is not clean -- starting background reconstruction raid1: raid set md1 active with 1 out of 2 mirrors mdadm: array /dev/md1 started. # mdadm -C /dev/md10 -l1 -n2 /dev/sda5 missing md: bind md: md10: raid array is not clean -- starting background reconstruction raid1: raid set md10 active with 1 out of 2 mirrors mdadm: array /dev/md10 started. # /sbin/mdadm -E /dev/sda1 /dev/sda2 /dev/sda5 /dev/sda1: Magic : a92b4efc Version : 00.90.00 UUID : dfcbaf7a:4f2f630f:7bcbde30:31188614 Creation Time : Thu Nov 1 00:06:12 2007 Raid Level : raid1 Device Size : 1003904 (980.54 MiB 1028.00 MB) Array Size : 1003904 (980.54 MiB 1028.00 MB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 0 Update Time : Thu Nov 1 00:10:04 2007 State : clean Active Devices : 1 Working Devices : 1 Failed Devices : 1 Spare Devices : 0 Checksum : 136b4c95 - correct Events : 0.7 Number Major Minor RaidDevice State this 0 8 1 0 active sync /dev/sda1 0 0 8 1 0 active sync /dev/sda1 1 1 0 0 1 faulty removed /dev/sda2: Magic : a92b4efc Version : 00.90.00 UUID : 4f6f4a12:91d4a129:7c42d5c9:4ea32541 Creation Time : Thu Nov 1 00:19:33 2007 Raid Level : raid1 Device Size : 5004160 (4.77 GiB 5.12 GB) Array Size : 5004160 (4.77 GiB 5.12 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Update Time : Thu Nov 1 00:19:33 2007 State : active Active Devices : 1 Working Devices : 1 Failed Devices : 1 Spare Devices : 0 Checksum : e3f2cb54 - correct Events : 0.1 Number Major Minor RaidDevice State this 0 8 2 0 active sync /dev/sda2 0 0 8 2 0 active sync /dev/sda2 1 1 0 0 1 faulty /dev/sda5: Magic : a92b4efc Version : 00.90.00 UUID : e0440ac8:08b89cf8:72f702e3:fd949f14 Creation Time : Thu Nov 1 00:19:46 2007 Raid Level : raid1 Device Size : 1003904 (980.54 MiB 1028.00 MB) Array Size : 1003904 (980.54 MiB 1028.00 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 10 Update Time : Thu Nov 1 00:19:46 2007 State : active Active Devices : 1 Working Devices : 1 Failed Devices : 1 Spare Devices : 0 Checksum : 911424f0 - correct Events : 0.1 Number Major Minor RaidDevice State this 0 8 5 0 active sync /dev/sda5 0 0 8 5 0 active sync /dev/sda5 1 1 0 0 1 faulty #
# mkdir /tmp/root # mount /dev/md1 /tmp/root attempt to access beyond end of device md1: rw=0, want=10008488, limit=10008320 I/O error in filesystem ("md1") meta-data dev md1 block 0x98b7a7 ("xfs_read_buf") error 5 buf count 512 XFS: size check 2 failed mount: /dev/md1: can't read superblock #マウントできない。
|
← EM モードに root でログイン |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-LGLシリーズ ファームウェア アップデータ Ver.2.00β |