したがって、2つのハードドライブを備えたRAID 1があります。 1つのハードドライブが故障し、それを交換し、新しいハードドライブに新しいLinuxを再インストールしました。
fdisk -l と入力すると、次の結果が表示されます。
root@ns354729:/mnt/sdb2# fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbb5259be
Device Boot Start End Blocks Id System
/dev/sda1 * 4096 1495042047 747518976 83 Linux
/dev/sda2 1495042048 1496088575 523264 82 Linux swap / Solaris
Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00025c91
Device Boot Start End Blocks Id System
/dev/sdb1 4096 20975616 10485760+ fd Linux raid autodetect
/dev/sdb2 20975617 1464092672 721558528 fd Linux raid autodetect
/dev/sdb3 1464092673 1465144064 525696 82 Linux swap / Solaris
2番目のハードドライブ(sdb)にアクセスしたいので、次のようにsdb2をマウントしようとしています。
mount /dev/sdb2 /mnt
これは言う:
root@ns354729:/mnt/sdb2# mount /dev/sdb2 /mnt
mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: you must specify the filesystem type
だから私は以下を与えようとしました。
mount -t ext4 /dev/sdb2 /mnt
わかりました:
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
これは言う:
root@ns354729:/mnt/sdb2# dmesg | tail
ufs_read_super: bad magic number
VFS: Can't find a romfs filesystem on dev sdb2.
UDF-fs: warning (device sdb2): udf_load_vrs: No VRS found
UDF-fs: warning (device sdb2): udf_fill_super: No partition found (2)
XFS (sdb2): Invalid superblock magic number
(mount,18813,1):ocfs2_fill_super:1038 ERROR: superblock probe failed!
(mount,18813,1):ocfs2_fill_super:1229 ERROR: status = -22
GFS2: not a GFS2 filesystem
GFS2: gfs2 mount does not exist
EXT4-fs (sdb2): VFS: Can't find ext4 filesystem
助けが必要ですか?
ベストアンサー1
以下を使用して(ダウングレードされた)RAIDアレイを組み立てる必要があります。
mdadm --assemble --readonly /dev/md0 /dev/sdb2
もちろん、すでにmd0を使用している場合は、md0以外の番号を選択してください。その後、マウントできます/dev/md0
(実際にはLVMなどの場合はチェーンに沿って進みます)。
RAID1の場合、ループバックデバイスとオフセットを使用してこれを実行することもできますが、これはより痛く、mdadmメタデータが破損している場合にのみ試してみる価値があります。