Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6955

Migrating directory with failed MDT

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Minor
    • None
    • None
    • None
    • 9223372036854775807

    Description

      1. Setup lustre with 4 MDTs, 4 OSTs and 1 client.
      2. Create 1 directory (/mnt/lustre/migrate_dir) on MDT0 and 100k files within the directory.
      3. Start migrate the directory from MDT0 to MDT1. After 30 seconds reboot both MDT0 and MDT1.
      Note: the reboot must happen during the migration, usually migrating 100k files should take much more than 30 seconds in current 2.6.
      1. lfs migrate -m 1 -v /mnt/lustre/migrate_dir # with -v you can see the progress of migration.
      4. After the MDT0 and MDT1 are restarted and re-mount, and recovery finished, client client will be able to access the 100k files. Creating files under /mnt/lustre/migrate_dir should be denied.
      5. Continue the migration with same command:
      1. lfs migrate -m 1 /mnt/lustre/migrate_dir
      6. Check migrate_dir and files under migrate_dir are located on MDT1.
      7. run lfsck to check the result.
      8. No errors will be present.

      Attachments

        Activity

          People

            di.wang Di Wang
            di.wang Di Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: