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

lfsck_start ignores -n/--dryrun

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.5.0, Lustre 2.4.2
    • Lustre 2.4.0
    • None
    • 3
    • 10408

    Description

      Under Lustre 2.4.0, the lctl subcommand lfsck_start ignores the n/-dryrun command. For instance:

      lctl lfsck_start --dryrun on -M <MDT name>

      That currently results in a real run of the OI scrub, and real modification to the filesystem, directly in contradiction to the documentation.

      I can understand if implementing that is going to take more work than we want to spend right now, but until the functionality is implemented the cmomand must return an error. It should not go ahead and make changes.

      Further, I am not particularly fond of the "--dryrun on" syntax. Unless there is a really, really good reason that -n and --dryrun need to take on/off options, the command line interface should not be designed this way. I think that -n/--dryrun should be optionless. (If they are present on the command line that means dryrun mode must be enabled.)

      That would match most sysadmins' expected behavior. Every other command I think that I have ever seen makes the dryrun command optionless. For instance:

      • fsck -N
      • rsync -n/--dryrun

      Attachments

        Issue Links

          Activity

            People

              yong.fan nasf (Inactive)
              morrone Christopher Morrone (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: