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

          People

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

            Dates

              Created:
              Updated:
              Resolved: