RAID 1의 부팅 오류 수정

RAID 1의 부팅 오류 수정

원격서버(Ubuntu Server 14.04)를 운영하고 있습니다. 재부팅하면 중지되고 다음과 같이 표시됩니다.

Errors were found while checking the disk drive for /.
keys:Press F to attempt to fix the errors, I to ignore, S to skip mounting, or M for manual recovery

아무 키도 누를 수 없어서 복구 모드로 부팅해야 합니다. 나는 그렇게 한다. 거기서 나는 처형했다

fsck -y /dev/sda

sda와 sdb가 사용 중입니다. /dev/md12[4567]에서만 작동했습니다.
lsof를 사용할 때 /dev/sd[ab]의 사용이 표시되지 않습니다.

시스템을 올바르게 수리하려면 어떻게 해야 합니까?

내가 제안한 솔루션은 touch /forcefsck디스크 오류를 수정하는 것이었습니다. 그래서 저는 RAID 파티션 /dev/mdX를 마운트하고 거기에 forcefsck를 생성했습니다. 그러나 부팅하는 동안 아무것도 나타나지 않았습니다. 그러나 ubuntu mountscript에는 3행에 대한 검사가 포함되어 있습니다(아래 참조).

이것이 내가 붙어있는 곳입니다.
forcefsck 및 fsck가 작동하지 않습니다. 파일 시스템을 올바르게 수정하려면 어떻게 해야 합니까(또는 작동하게 하려면)?

/mnt/etc/init/mountall.conf:

script
. /etc/default/rcS || true
[ -f /forcefsck ] && force_fsck="--force-fsck"
[ "$FSCKFIX" = "yes" ] && fsck_fix="--fsck-fix"

# Doesn't work so well if mountall is responsible for mounting /proc, heh.
if [ -e /proc/cmdline ]; then
    read line < /proc/cmdline
    for arg in $line; do
        case $arg in
            -q|--quiet|-v|--verbose|--debug)
                debug_arg=$arg
                ;;
        esac
    done < /proc/cmdline
fi
# set $LANG so that messages appearing in plymouth are translated
if [ -r /etc/default/locale ]; then
    . /etc/default/locale || true
    export LANG LANGUAGE LC_MESSAGES LC_ALL
fi

exec mountall --daemon $force_fsck $fsck_fix $debug_arg
end script

이것은 내 결과입니다 fdisk -l.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x7ea9111b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     2050047     1024000   fd  Linux raid autodetect
/dev/sda2         2050048    10049535     3999744   82  Linux swap / Solaris
/dev/sda3        10049536    51009535    20480000   fd  Linux raid autodetect
/dev/sda4        51009536   976771071   462880768    f  W95 Ext'd (LBA)
/dev/sda5        51011584   606468095   277728256   fd  Linux raid autodetect
/dev/sda6       606470144   976769023   185149440   fd  Linux raid autodetect

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x203e3ae7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     2050047     1024000   fd  Linux raid autodetect
/dev/sdb2         2050048    10049535     3999744   82  Linux swap / Solaris
/dev/sdb3        10049536    51009535    20480000   fd  Linux raid autodetect
/dev/sdb4        51009536   976771071   462880768    f  W95 Ext'd (LBA)
/dev/sdb5        51011584   606468095   277728256   fd  Linux raid autodetect
/dev/sdb6       606470144   976769023   185149440   fd  Linux raid autodetect

Disk /dev/md127: 189.6 GB, 189592895488 bytes
2 heads, 4 sectors/track, 46287328 cylinders, total 370298624 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: 0x00000000

Disk /dev/md127 doesn't contain a valid partition table

Disk /dev/md126: 284.4 GB, 284393537536 bytes
2 heads, 4 sectors/track, 69432016 cylinders, total 555456128 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: 0x00000000

Disk /dev/md126 doesn't contain a valid partition table

Disk /dev/md125: 21.0 GB, 20971388928 bytes
2 heads, 4 sectors/track, 5119968 cylinders, total 40959744 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: 0x00000000

Disk /dev/md125 doesn't contain a valid partition table

Disk /dev/md124: 1048 MB, 1048510464 bytes
2 heads, 4 sectors/track, 255984 cylinders, total 2047872 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: 0x00000000

Disk /dev/md124 doesn't contain a valid partition table

이것은 내 전체 부트로그입니다.http://pastebin.com/raw/mTDL6KVk
여기에서 내 Raid 1 상태를 볼 수 있습니다.

~# cat /proc/mdstat
Personalities : [raid1]
md124 : active raid1 sda1[0] sdb1[1]
      1023936 blocks super 1.0 [2/2] [UU]

md125 : active raid1 sda3[0] sdb3[1]
      20479872 blocks super 1.0 [2/2] [UU]

md126 : active raid1 sda5[0] sdb5[1]
      277728064 blocks super 1.0 [2/2] [UU]
      bitmap: 0/3 pages [0KB], 65536KB chunk

md127 : active raid1 sda6[0] sdb6[1]
      185149312 blocks super 1.0 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

unused devices: <none>

관련 정보