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

mkfs.lustre FATAL: unhandled fs type 1 'ldiskfs'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: Lustre 2.6.0
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      14851

      Description

      I hit this error when I run mkfs.lustre as before:

      [root@centos6-1 tests]# LOAD=yes sh llmount.sh 
      Loading modules from /root/master/lustre/tests/..
      detected 2 online CPUs by sysfs
      Force libcfs to create 2 CPU partitions
      ../libcfs/libcfs/libcfs options: 'cpu_npartitions=2'
      debug=vfstrace rpctrace dlmtrace neterror ha config 		      ioctl super lfsck
      subsystem_debug=all -lnet -lnd -pinger
      gss/krb5 is not supported
      quota/lquota options: 'hash_lqs_cur_bits=3'
      [root@centos6-1 tests]# ../utils/mkfs.lustre --mgs --fsname=lustre --mdt --index=0 --backfstype=ldiskfs --device-size=200000 --reformat /tmp/lustre-mdt1
      
      mkfs.lustre FATAL: unhandled fs type 1 'ldiskfs'
      
      mkfs.lustre FATAL: unable to prepare backend (22)
      mkfs.lustre: exiting with 22 (Invalid argument)
      

      It happened because load_backfs_module(mount_type=LDD_MT_LDISKFS) failed in osd_init(). Running gdb showed

      468			dirname = getenv("LUSTRE");
      (gdb) n
      469			if (dirname) {
      (gdb) p dirname
      $1 = 0x0
      (gdb) n
      507			return NULL;
      

      Failed to use locally built modules.

      This code is from the patch http://review.whamcloud.com/#/c/10468.

        Attachments

          Activity

            People

            • Assignee:
              emoly.liu Emoly Liu
              Reporter:
              emoly.liu Emoly Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: