Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-10911 FLR2: Erasure coding
  3. LU-19547

FLR-EC: lfs setstripe support for erasure coding

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      The lfs setstripe command needs to be able to create erasure-coded (EC) layouts.

      Here's the current functionality as implemented in https://review.whamcloud.com/c/fs/lustre-release/+/61965

          Add support for Erasure Coding (EC) layouts in lfs setstripe
          using simple "X+Y" notation where X is data stripe count and Y
          is parity stripe count.

          When --ec is specified, an EC parity mirror is automatically
          created that matches the data mirror's component structure.
          The --ec option can appear anywhere in the command line and
          supports both single and multiple component layouts.

          EC Propagation Rules:
          - Single --ec applies to all components in the parity mirror
          - Multiple --ec values propagate bidirectionally: each spreads
            forward to the next --ec (or end) and backward to the
            previous --ec (or start)
          - Parity components automatically inherit extents from
            matching data components

          Usage examples:
            # Single component with EC(8+2)
            lfs setstripe -E -1 -c 8 --ec 8+2 /mnt/lustre/file

            # Order independent (--ec can appear anywhere)
            lfs setstripe --ec 8+2 -E -1 -c 8 /mnt/lustre/file

            # Multiple components, single EC spec (both get EC 8+2)
            lfs setstripe -E 128M -E -1 --ec 8+2 /mnt/lustre/file

            # Different EC for different components
            lfs setstripe -E 128M --ec 4+2 -E -1 --ec 8+2 /mnt/lustre/file

            # Long form option
            lfs setstripe --ec-stripe-count 4+2 -E -1 /mnt/lustre/file

      Attachments

        Issue Links

          Activity

            People

              paf0186 Patrick Farrell
              paf0186 Patrick Farrell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: