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

'mkfs.lustre --writeconf' not working anymore with Lustre 2.4

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • Lustre 2.4.0
    • None
    • 3
    • 9043

    Description

      Hi,

      With Lustre 2.4, '--writeconf' flag of mkfs.lustre is ignored. Indeed, after formatting a target with this flag, its label separator is ':', which means VIRGIN, instead of '='.
      To force writeconf, one has to run 'tunefs.lustre --writeconf' on the target prior to starting it for the first time.

      This is seen as a regression compared to Lustre 2.1, with which we can directly pass the writeconf flag at mkfs.lustre time.

      We need this feature (ie forcing writeconf at mkfs time) when we reformat an existing file system registered at an external MGS after modifying its characteristics.

      Could it be possible to revise writeconf flag implementation in Lustre 2.4 so that it can be used directly at mkfs.lustre time?

      TIA,
      Sebastien.

      Attachments

        Issue Links

          Activity

            [LU-3575] 'mkfs.lustre --writeconf' not working anymore with Lustre 2.4
            pjones Peter Jones made changes -
            Labels Original: mq413
            pjones Peter Jones made changes -
            Labels New: mq413
            pjones Peter Jones added a comment -

            Of course - when we start thinking about 2.4.2 this will definitely be under consideration.

            pjones Peter Jones added a comment - Of course - when we start thinking about 2.4.2 this will definitely be under consideration.

            Would it be possible to please have the patch http://review.whamcloud.com/7443 landed to 2.4 too?

            sebastien.buisson Sebastien Buisson (Inactive) added a comment - Would it be possible to please have the patch http://review.whamcloud.com/7443 landed to 2.4 too?
            pjones Peter Jones made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            pjones Peter Jones added a comment -

            Great! So, that patch has landed for 2.5.0 so it sound like this ticket can be closed

            pjones Peter Jones added a comment - Great! So, that patch has landed for 2.5.0 so it sound like this ticket can be closed
            pjones Peter Jones made changes -
            Fix Version/s Original: Lustre 2.5.0 [ 10295 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-14 [ LU-14 ]

            Hi,

            I have tested the patch at http://review.whamcloud.com/7443.

            For us it does the trick. Now, when we need to reformat a new target to replace an existing one, we use '--reformat --replace' instead of '--reformat --writeconf'.

            Thanks!
            Sebastien.

            sebastien.buisson Sebastien Buisson (Inactive) added a comment - - edited Hi, I have tested the patch at http://review.whamcloud.com/7443 . For us it does the trick. Now, when we need to reformat a new target to replace an existing one, we use '--reformat --replace' instead of '--reformat --writeconf'. Thanks! Sebastien.
            adilger Andreas Dilger added a comment - - edited

            The main reason for having a separate flag from --reformat (which is setting VIRGIN exactly because it is a new filesystem) is that there is some chance of the admin making a mistake assigning the OST index, and then we may have two OSTs with the same index. If the --reformat (with VIRGIN) OST connects to the MGS and it has a duplicate index it will get an error back. It takes an extra flag (--replace) to indicate that the admin knows that this just-reformatted OST is replacing the previous OST at the same index.

            adilger Andreas Dilger added a comment - - edited The main reason for having a separate flag from --reformat (which is setting VIRGIN exactly because it is a new filesystem) is that there is some chance of the admin making a mistake assigning the OST index, and then we may have two OSTs with the same index. If the --reformat (with VIRGIN ) OST connects to the MGS and it has a duplicate index it will get an error back. It takes an extra flag ( --replace ) to indicate that the admin knows that this just-reformatted OST is replacing the previous OST at the same index.

            People

              bzzz Alex Zhuravlev
              sebastien.buisson Sebastien Buisson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: