All Products
Search
Document Center

Server Migration Center:What do I do if the "Deprecated XFS mount options present in FSTAB" error message appears?

Last Updated:May 11, 2024

Problem description

During the migration of an operating system, the "Deprecated XFS mount options present in FSTAB" error message is reported.

Cause

Deprecated XFS mount options exist in the fstab file of the operating system to be migrated. As a result, the operating system fails to be migrated because the XFS file system cannot be correctly mounted after migration.

Solution

  1. Connect to the Elastic Compute Service (ECS) instance whose operating system you want to migrate. For more information, see Connect to a Linux instance by using a password or key.

  2. Run the following command to open the etc/fstab file:

    vim /etc/fstab
  3. Press the I key to enter the insert mode. Find the row at which the XFS file system is configured, and delete the deprecated XFS mount options in the fourth column or change the mount options to defaults. For more information, see xfs(5) - Linux manual page.

    The following XFS mount options have been deprecated:

     # removed from kernel in 4.0
     'nodelaylog',
     'delaylog',
     'ihashsize',
     'irixsgid',
     'osyncisdsync',
     'osyncisosync',
     # removed from kernel in 4.19
     'nobarrier',
     'barrier',
  4. Press the ESC key, enter :wq, and then press the ENTER key to save and close the file.

  5. Run the following command to mount the XFS file system:

    mount -a
  6. After the error is resolved, run the SMC client and retry the migration job. For more information, see Run the SMC client.