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

parameter grant_shrink gets reset to 1 after client reconnects

XMLWordPrintable

    • 3
    • 9223372036854775807

      Impossible to set osc.*.grant_shrink to 0 , it gets reset to 1 after OST reconnect, regardless whether it was simple set by lctl set_param or lctl set_param -P.

      [root@devvm1 tests]# ../utils/lctl get_param osc.*.grant_shrink
      osc.lustre-OST0000-osc-ffff880043e43800.grant_shrink=1
      osc.lustre-OST0001-osc-ffff880043e43800.grant_shrink=1
      [root@devvm1 tests]# ../utils/lctl set_param osc.*.grant_shrink=0
      osc.lustre-OST0000-osc-ffff880043e43800.grant_shrink=0
      osc.lustre-OST0001-osc-ffff880043e43800.grant_shrink=0
      

      wait some time for idle OSTs get disconnected,
      then write to files to get the OSTs connected again:

      [root@devvm1 tests]# dd if=/dev/zero bs=1M count=1 of=/mnt/lustre/foo1
      1+0 records in
      1+0 records out
      1048576 bytes (1.0 MB) copied, 0.00950013 s, 110 MB/s
      [root@devvm1 tests]# dd if=/dev/zero bs=1M count=1 of=/mnt/lustre/foo2
      1+0 records in
      1+0 records out
      1048576 bytes (1.0 MB) copied, 0.0131701 s, 79.6 MB/s
      

      Now the previous settings are gone:

      [root@devvm1 tests]# ../utils/lctl get_param osc.*.grant_shrink
      osc.lustre-OST0000-osc-ffff880043e43800.grant_shrink=1
      osc.lustre-OST0001-osc-ffff880043e43800.grant_shrink=1
      [root@devvm1 tests]# 
      

            zam Alexander Zarochentsev
            zam Alexander Zarochentsev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: