Repair method for mount and XFS file corruption caused by power outage of Linux server

Source: Internet
Author: User

System files are damaged and go into Emergency Repair mode, unable to perform maintenance work

Welcome to Emergency mode! After logging in, type ' JOURNALCTL-XB ' to view system logs, ' systemctl reboot ' to reboot, ' systemctl default ' to try again To boot into default mode.

Give root password for maintenance

Any command executed will have the following (or similar) error

Error getting Authority:error initializing authority:could not connect:no such file or directory (G-io-error-quark, 1)

1, check the running log, found that is the/home directory mount problem

1 #journalctl-XB

2. Exit Log Mode

#q

3. View the information under the LVM partition

#LS -l/dev/mapper

4. View Mount Information

#Cat /etc/fstab

5. Repair Mount Directory

#xfs_repair/dev/mapper/centos-home

6, if the repair failed, please add-l parameter, drink saliva Mo Fang

#xfs_repair-L/dev/mapper/centos-home

7, repair completed, restart the system.

6

The solution is good, can play happily!

Forgive the author, the server network has collapsed, remote not only slag mobile phone photos.

Reference documents

http://chjbg35.blog.163.com/blog/static/130094302018284463941/

Repair method for mount and XFS file corruption caused by power outage of Linux server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.