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

Ensure ZFS hostid protection if servicenode/failover options given to mkfs.lustre

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.9.0
    • None
    • 9223372036854775807

    Description

      SPL import protection only exists if hostid is set to a non-zero value. If servicenode or failover is given as an option, then mkfs.lustre should at least warn that hostid is set to zero and import protection won't work.

      Proposed solution:

      • Have mkfs.lustre fail if --servicenode / --failover is specified and hostid is zero (will check spl_hostid value).
      • Add override option --force-nohostid to ignore this case

      Attachments

        Issue Links

          Activity

            [LU-7134] Ensure ZFS hostid protection if servicenode/failover options given to mkfs.lustre
            pjones Peter Jones added a comment -

            Landed for 2.9

            pjones Peter Jones added a comment - Landed for 2.9

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16611/
            Subject: LU-7134 utils: Ensure hostid set for ZFS during mkfs
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 7b654fc673a2570ab4a828c2a7b213cee8b5b0cc

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16611/ Subject: LU-7134 utils: Ensure hostid set for ZFS during mkfs Project: fs/lustre-release Branch: master Current Patch Set: Commit: 7b654fc673a2570ab4a828c2a7b213cee8b5b0cc

            Upon closer reading of the code in ZFS, I'm not sure enabling this will help in a fail-over scenario or provide adequate protection.

            The code compares the host's hostid to the one written to the zpool and then prevents import if they don't match (unless one of the hostids is 0). This isn't true multi-mount protection. A more robust solution tracked in issue ZFS #745.

            utopiabound Nathaniel Clark added a comment - Upon closer reading of the code in ZFS, I'm not sure enabling this will help in a fail-over scenario or provide adequate protection. The code compares the host's hostid to the one written to the zpool and then prevents import if they don't match (unless one of the hostids is 0). This isn't true multi-mount protection. A more robust solution tracked in issue ZFS #745 .

            Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: http://review.whamcloud.com/16611
            Subject: LU-7134 utils: Ensure MMP support in SPL/ZFS during mkfs
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 15b26271b2ce4ccd87b424a75765edbf9f5f82eb

            gerrit Gerrit Updater added a comment - Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: http://review.whamcloud.com/16611 Subject: LU-7134 utils: Ensure MMP support in SPL/ZFS during mkfs Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 15b26271b2ce4ccd87b424a75765edbf9f5f82eb

            SPL supports setting HostID in two ways:

            option spl spl_hostid to manually specify the HostID to use
            option spl spl_hostid_path to specify an alternate HostID file to use (default: /etc/hostid)

            What if I check the spl hostid /sys/module/spl/parameters/spl_hostid to ensure it's non-zero? It show the HostID is is using (even when read from /etc/hostid)

            utopiabound Nathaniel Clark added a comment - SPL supports setting HostID in two ways: option spl spl_hostid to manually specify the HostID to use option spl spl_hostid_path to specify an alternate HostID file to use (default: /etc/hostid) What if I check the spl hostid /sys/module/spl/parameters/spl_hostid to ensure it's non-zero? It show the HostID is is using (even when read from /etc/hostid)

            People

              utopiabound Nathaniel Clark
              utopiabound Nathaniel Clark
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: