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:Jul 14, 2023

Problem description

The "Deprecated XFS mount options present in FSTAB" error message appears when I migrate an operating system.

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 edit 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. Retry the operating system migration job. For more information, see Migrate an operating system.