CentOS 7 - как восстановить диск через xfs repair

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2025
Перейти к:навигация, поиск

CentOS 7 - как восстановить диск через xfs repair

Ошибка при попытке восстановить диск на файловой системе XFS:

# xfs_repair /dev/vda2
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed.  Mount the filesystem to replay the log, and unmount it before
re-running xfs_check.  If you are unable to mount the filesystem, then use
the xfs_repair -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.

Решение - добавить флаг -vL:

# xfs_repair -vL /dev/vda2