How to perform XFS repair on the Root filesystem?

Version 1

    How do I perform XFS repair on the Root filesystem?


    This information applies to the following Operating System(s):

    - This information is not Operating System specific




    ---Solution---

    First you must reboot into recovery mode.



    1) Navigate to the Snap server debug console located at
    http://yoursnapserver/admin/debug.cgi


    2) Issue the command: touch /nopivot


    3) Issue the command: reboot



    Once the server reboots again navigate to the Snap server debug console.



    1) It is now at a new location:
    http://yoursnapserver/debug.html


    2) Issue the following command: umount /mnt/pivot


    3) Issue the command: xfs_repair /dev/md100root



    Use the -L option as necessary. The -n option is not required as we are not going to be affecting user space.



    Once the xfs_repair has completed, remount root with the following command:



    rootmount



    Lastly, perform an upgrade repair from the Recovery GUI. This will replace any missing files.