Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.11.0, Lustre 2.10.2
    • Lustre 2.10.0
    • SLES12 SP2
      Lustre community pre-release 2.10
    • 2
    • 9223372036854775807

    Description

      when trying to format zfs osts we get the following error:
      mkfs.lustre --reformat --mdt --mgs --servicenode= 211@o2ib --backfstype=zfs --fsname=tempAA --index=0 mgs/mdt

      Permanent disk data:
      Target: tempAA:MDT0000
      Index: 0
      Lustre FS: tempAA
      Mount type: zfs
      Flags: 0x1065
      (MDT MGS first_time update no_primnode )
      Persistent mount opts:
      Parameters: failover.node=10.10.10.213@o2ib:10.10.10.211@o2ib

      mkfs.lustre FATAL: spl_hostid not set. See mkfs.lustre(8)
      mkfs.lustre FATAL: mkfs failed 22
      mkfs.lustre: exiting with 22 (Invalid argument)

      Attachments

        Activity

          [LU-9752] Unable to format zfs osts

          John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29805/
          Subject: LU-9752 man: Reference zgenhostid instead of genhostid
          Project: fs/lustre-release
          Branch: b2_10
          Current Patch Set:
          Commit: 3dd7a41a9262635c42b8ba575d743b60e27ddbae

          gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29805/ Subject: LU-9752 man: Reference zgenhostid instead of genhostid Project: fs/lustre-release Branch: b2_10 Current Patch Set: Commit: 3dd7a41a9262635c42b8ba575d743b60e27ddbae

          Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/29805
          Subject: LU-9752 man: Reference zgenhostid instead of genhostid
          Project: fs/lustre-release
          Branch: b2_10
          Current Patch Set: 1
          Commit: 58b218547b24069fffef45eb22a08439b632e548

          gerrit Gerrit Updater added a comment - Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/29805 Subject: LU-9752 man: Reference zgenhostid instead of genhostid Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: 58b218547b24069fffef45eb22a08439b632e548
          pjones Peter Jones added a comment -

          Landed for 2.11

          pjones Peter Jones added a comment - Landed for 2.11

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/29327/
          Subject: LU-9752 man: Reference zgenhostid instead of genhostid
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: a1eb6de081473545fbd5c1fe33e209fe391bf708

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/29327/ Subject: LU-9752 man: Reference zgenhostid instead of genhostid Project: fs/lustre-release Branch: master Current Patch Set: Commit: a1eb6de081473545fbd5c1fe33e209fe391bf708

          Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: https://review.whamcloud.com/29327
          Subject: LU-9752 man: Reference zgenhostid instead of genhostid
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: bbb792bc4373a999f0bbc1fd0dba62faf475b7f7

          gerrit Gerrit Updater added a comment - Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: https://review.whamcloud.com/29327 Subject: LU-9752 man: Reference zgenhostid instead of genhostid Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: bbb792bc4373a999f0bbc1fd0dba62faf475b7f7

          Nathaniel, could you please submit a patch that updates our references to zgenhostid instead of genhostid in the mkfs.lustre.8 and tunefs.lustre.8 man pages.

          adilger Andreas Dilger added a comment - Nathaniel, could you please submit a patch that updates our references to zgenhostid instead of genhostid in the mkfs.lustre.8 and tunefs.lustre.8 man pages.

          zgenhostid made it into 0.7.0.

          utopiabound Nathaniel Clark added a comment - zgenhostid made it into 0.7.0.

          The ZFS MMP implementation still depends on hostid to determine if the pool is being imported on the same node. There is a patch to create a zgenhostid command to make up for the lack of genhostid on SLES and Ubuntu, but that may only become available with ZFS 0.8.0, so I still think it makes sense for us to add our own genhostid command for those distros until it becomes available. At that point, we should consider changing our documentation to reference zgenhostid, since the upstream genhostid maintainer has said the command may be removed from RHEL completely.

          adilger Andreas Dilger added a comment - The ZFS MMP implementation still depends on hostid to determine if the pool is being imported on the same node. There is a patch to create a zgenhostid command to make up for the lack of genhostid on SLES and Ubuntu, but that may only become available with ZFS 0.8.0, so I still think it makes sense for us to add our own genhostid command for those distros until it becomes available. At that point, we should consider changing our documentation to reference zgenhostid , since the upstream genhostid maintainer has said the command may be removed from RHEL completely.

          Has this become irrelevant with ZFS 0.7.0's MMP? Since hostid isn't used for that?

          utopiabound Nathaniel Clark added a comment - Has this become irrelevant with ZFS 0.7.0's MMP? Since hostid isn't used for that?
          adilger Andreas Dilger added a comment - - edited

          I wonder if it makes sense to add the above script into a genhostid command as part of osd-zfs-mount.rpm for SLES, so that users don't run into this problem?

          The genhostid command is part of the RHEL initscripts package, while hostid is part of coreutils, so it does appear that genhostid is unique to RHEL, but it would be convenient to have this available on SLES as well.

          adilger Andreas Dilger added a comment - - edited I wonder if it makes sense to add the above script into a genhostid command as part of osd-zfs-mount.rpm for SLES, so that users don't run into this problem? The genhostid command is part of the RHEL initscripts package, while hostid is part of coreutils , so it does appear that genhostid is unique to RHEL, but it would be convenient to have this available on SLES as well.

          People

            utopiabound Nathaniel Clark
            abea@supermicro.com Abe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: