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

OS_STATE_* flags not being set correctly for read-only devices

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

       

       $ lctl get_param obdfilter.*.readonly
       obdfilter.lustre-OST0000.readonly=0
       obdfilter.lustre-OST0001.readonly=1
      
       $ touch /mnt/lustre/a
       $ touch /mnt/lustre/b
       touch: setting times of '/mnt/lustre/b': Read-only file system
      
          $ lfs df -v
          UUID                   1K-blocks        Used   Available Use%
          Mounted on
          lustre-MDT0000_UUID       125056        1664      112156   2%
          /mnt/lustre[MDT:0] f
          lustre-OST0000_UUID       313104        1400      284544   1%
          /mnt/lustre[OST:0] f
          lustre-OST0001_UUID       313104        1400      284544   1%
          /mnt/lustre[OST:1] f
          filesystem_summary:       626208        2800      569088   1%
          /mnt/lustre 
      

       

      /mnt/lustre[OST:1] f ---> This is expected to be /mnt/lustre[OST:1] R

       

      Attachments

        Activity

          [LU-18833] OS_STATE_* flags not being set correctly for read-only devices
          pjones Peter Jones added a comment -

          Merged for 2.17

          pjones Peter Jones added a comment - Merged for 2.17

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58488/
          Subject: LU-18833 ofd: Set OS_STATE_* flags correctly for read-only devices
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 51c4e893185088a0f0fbc4ed4327d216f26f9b5f

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58488/ Subject: LU-18833 ofd: Set OS_STATE_* flags correctly for read-only devices Project: fs/lustre-release Branch: master Current Patch Set: Commit: 51c4e893185088a0f0fbc4ed4327d216f26f9b5f

          Thanks for catching this and pushing a patch.

          adilger Andreas Dilger added a comment - Thanks for catching this and pushing a patch.

          "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58488
          Subject: LU-18833 ofd: TODO
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 4c80274d4225570ea53b4ee4b980247ce24fee72

          gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58488 Subject: LU-18833 ofd: TODO Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4c80274d4225570ea53b4ee4b980247ce24fee72

          People

            arshad512 Arshad Hussain
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: