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

min_ost_size function under test-framework incorrect.

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.0
    • Lustre 2.5.1
    • None
    • 3
    • 9223372036854775807

    Description

      min_ost_size() function is defined as below and it gets the min kbytesavail among the attached OST's. This function is used twice under
      1. ./lustre/tests/obdfilter-survey.sh
      2. ./lustre/tests/sanity-benchmark.sh

       $LCTL get_param -n osc.*.kbytesavail | sort -n | head -n1
      

      However, it get the MDT 's kbytesavail (OSP) which is different.

      # lctl get_param osc.*.kbytesavail
      osc.lustre-OST0000-osc-MDT0000.kbytesavail=151004 << Reports this value.
      osc.lustre-OST0000-osc-ffff880026480400.kbytesavail=151276
      osc.lustre-OST0001-osc-MDT0000.kbytesavail=151004
      osc.lustre-OST0001-osc-ffff880026480400.kbytesavail=151276
      #
      

      It should report kbytesavail for OST's , which is also matching lfs df output.

      # lctl get_param osc.*.kbytesavail | grep -v MDT
      osc.lustre-OST0000-osc-ffff880026480400.kbytesavail=151276
      osc.lustre-OST0001-osc-ffff880026480400.kbytesavail=151276
      #
      

      Output of 'lfs df'. 'Available' field only.

          $ lfs df | grep OST | awk '{print $4}' | sort -n | head -n1
          151276
      

      Output with current code:

          $ lctl get_param -n osc.*.kbytesavail | sort -n | head -n1
          151004
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: