RAID 5 어레이(mdadm)를 마운트할 수 없습니다. 드라이브 오류가 없습니다.

RAID 5 어레이(mdadm)를 마운트할 수 없습니다. 드라이브 오류가 없습니다.

다음 디스크를 사용하는 3개 드라이브 RAID 5 어레이가 있습니다.

  • /dev/sda
  • /dev/sdc
  • /dev/sdb

더 이상 드라이브를 마운트할 수 없으며 다음 오류가 발생합니다.

sudo mount /dev/md0 /mnt/md0/

mount: wrong fs type, bad option, bad superblock on /dev/md0,
   missing codepage or helper program, or other error

   In some cases useful info is found in syslog - try
   dmesg | tail or so.

dmesg에서 잘못된 체크섬이 있는 것 같습니다.

[ 1062.187295] JBD2: Invalid checksum recovering block 6 in log
[ 1062.199499] JBD2: Invalid checksum recovering block 8 in log
[ 1062.231367] JBD2: Invalid checksum recovering block 12 in log
[ 1062.239753] JBD2: Invalid checksum recovering block 13 in log
[ 1062.272628] JBD2: Invalid checksum recovering block 18 in log
[ 1062.279700] JBD2: Invalid checksum recovering block 19 in log
[ 1062.313132] JBD2: Invalid checksum recovering block 24 in log
[ 1062.344345] JBD2: Invalid checksum recovering block 29 in log
[ 1062.606357] JBD2: Invalid checksum recovering block 50 in log
[ 1062.656566] JBD2: Invalid checksum recovering block 55 in log
[ 1062.831316] JBD2: Invalid checksum recovering block 64 in log
[ 1062.882451] JBD2: Invalid checksum recovering block 68 in log
[ 1062.913100] JBD2: Invalid checksum recovering block 70 in log
[ 1066.094511] JBD2: recovery failed
[ 1066.094516] EXT4-fs (md0): error loading journal

모든 드라이브를 검사했는데 smartctl오류가 없으며 어레이를 사용하고 중지하고 검색했지만 mdadm --stop /dev/md0여전히 mdadm --assemble --scanRAID를 설치할 수 없습니다.

그러나 읽기 전용 모드로 RAID를 설치할 수 있습니다. 이것은 내 mdadm 구성입니다.

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays

# This configuration was auto-generated on Wed, 22 Mar 2017 21:34:32 +0000 by mkconf
ARRAY /dev/md0 metadata=1.2 name=media:0 UUID=7787481f:9713f064:1a49afb2:cc380a8d

그리고 fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/media--vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sdb2 during installation
UUID=51b74a1f-ed14-4fe7-b12c-a0efd2f706e4 /boot           ext2    defaults        0       2
# /boot/efi was on /dev/sdb1 during installation
UUID=A3B3-B410  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/media--vg-swap_1 none            swap    sw              0       0
/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0

cat /proc/mdstat

Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active raid5 sda[0] sdd[3] sdc[1]
      3906766848 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
      bitmap: 0/15 pages [0KB], 65536KB chunk

unused devices: <none>

어떻게 진행하나요?

답변1

먼저 읽기 전용으로 설치하고 데이터를 백업하세요.

e2fsck그런 다음 에서 실행하면 /dev/md0파일 시스템을 복구할 수 있지만 최근 변경 사항이 손실될 수 있습니다.

관련 정보