VM - Oracle OS 7.9
한참 사용 중에 DB 접속이 끊기더니 리스너가 멈춰있음 발견 - OS 재부팅하니 고장
...
[4.174835] XFS (dm-0): Failed to recover intents
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue.
Type "journalct1" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.
:/# journalctl
Jan 22 10:50:54 oracle systemd[1]: Starting File System Check on /dev/mapper/ol-root ...
Jan 22 10:50:54 oracle systemd-fsck[438]: /sbin/fsck.xfs: XFS file system.
Jan 22 10:50:54 oracle systemd[1]: Started File System Check on /dev/mapper/ol-root.
Jan 22 10:50:54 oracle systemd[1]: Started dracut initqueue hook.
Jan 22 10:50:54 oracle systemd[1]: Mounting /sysroot ...
Jan 22 10:50:54 oracle systemd[1]: Reached target Remote File Systems (Pre).
Jan 22 10:50:54 oracle systemd[1]: Reached target Remote File Systems.
Jan 22 10:50:54 oracle kernel: SGI XFS with ACLs, security attributes, realtime, scrub, repair, no d
Jan 22 10:50:54 oracle kernel: XFS (dm-0): Mounting V4 Filesystem
Jan 22 10:50:54 oracle kernel: XFS (dm-0): Starting recovery (logdev: internal)
Jan 22 10:50:54 oracle kernel: random: crng init done
Jan 22 10:50:54 oracle kernel: random: 7 urandom warning(s) missed due to ratelimiting
Jan 22 10:50:54 oracle kernel: Filesystem "dm-0": reserve blocks depleted! Consider increasing reser
Jan 22 10:50:54 oracle kernel: XFS (dm-0): Failed to recover intents
Jan 22 10:50:54 oracle kernel: XFS (dm-0): log mount finish failed
Jan 22 10:50:54 oracle systemd[1]: Received SIGRTMIN+20 from PID 329 (plymouthd)
Jan 22 10:50:54 oracle mount[454]: mount: mount /dev/mapper/ol-root on /sysroot failed: No space lef
oracle systemd[1]: sysroot.mount mount process exited, code=exited status=32
Jan 22 10:50:54
Jan 22 10:50:54 oracle systemd[1]: Failed to mount /sysroot.
Jan 22 10:50:54 oracle systemd[1]: Dependency failed for Initrd Root File System.
Jan 22 10:50:54 oracle systemd[1]: Dependency failed for Reload Conf iguration from the Real Root.
Jan 22 10:50:54 oracle systemd[1]: Job initrd-parse-etc.service/start failed with result 'dependency
Jan 22 10:50:54 oracle systemd[1]: Triggering OnFailure= dependencies of initrd-parse-etc.service.
Jan 22 10:50:54 oracle systemd[1]:
Jan 22 10:50:54 oracle systemd[1]: Triggering OnFailure= dependencies of initrd-root-fs.target.
Jan 22 10:50:54 oracle systemd[1]: Unit sysroot.mount entered failed state.
Jan 22 10:50:54 oracle systemd[1]: Stopped target Basic System.
Jan 22 10:50:54 oracle systemd[1]: Stopped target System Initialization.
Jan 22 10:50:54 oracle systemd[1]: Reached target Initrd File Systems.
Jan 22 10:50:54 oracle systemd[1]: Stopped dracut initqueue hook.
Jan 22 10:50:54 oracle systemd[1]: Stopped dracut pre-udev hook.
Jan 22 10:50:54 oracle systemd[1]: Stopped dracut cmdline hook.
Jan 22 10:50:54 oracle systemd[1]: Started Emergency Shell.
Jan 22 10:50:54 oracle systemd[1]: Reached target Emergency Mode.
Jan 22 10:50:54 oracle systemd[1]: Startup finished in 1.039s (kernel) + 0 (initrd) + 5.421s (usersp
Jan 22 10:50:54 oracle systemd[1]: Received SIGRTMIN+21 from PID 329 (plymouthd).
===================================================================================================
>>>> 미확인
https://atl.kr/dokuwiki/doku.php/failed_to_mount_sysroot
xfs_repair -n /dev/sda
이때, umount를 해줘야 하는데, 홈클라우드 VM은 lvm으로 구성했기 때문에 아래와 같이 umount 한다.
# umount /dev/mapper/centos-root
# xfs_repair -n /dev/sda
수행 결과에 따라 -L 옵션을 줘야 할 때도 있다. (force log zeroing)
The xfs_repair utility cannot repair an XFS file system with a dirty log. To clear the log, mount and unmount the XFS file system. If the log is corrupt and cannot be replayed, use the -L option ("force log zeroing") to clear the log, that is, xfs_repair -L /dev/device. Be aware that this may result in further corruption or data loss.
xfs_repair를 수행했으면, mount가 되는지 테스트 해본다.
# mkdir /test
# mount /dev/mapper/centos-root /test
마운트가 되면, 제대로 repair된 것이므로 reboot 하면 된다.
---------- 복구 진행 중
'Unsolved' 카테고리의 다른 글
97-2 그리드 설치 오류 모음 (0) | 2024.03.05 |
---|---|
97-1 그리드 설치 실패 (0) | 2024.03.05 |
95-2 OEL5.6 설치 진행 불가 (0) | 2024.02.29 |
RMAN> list failure (0) | 2024.02.21 |