Whamcloud - gitweb
LU-10350 lod: adjust stripe count to available ost count
authorBobi Jam <bobijam@whamcloud.com>
Fri, 28 May 2021 08:25:52 +0000 (16:25 +0800)
committerLi Xi <lixi@ddn.com>
Thu, 15 Jul 2021 13:26:59 +0000 (13:26 +0000)
commit57783513a12a2160deb85cd9d348d74943d57c0e
tree2583808e6c22a1d11fb1e00bbdd95c545c0d6d4e
parent04fb62ecd5f03612c9f11ab18c89d0236ec96d01
LU-10350 lod: adjust stripe count to available ost count

* When user specifies -1 stripe count or more stripe count than the
  ost count of a pool, we'd adjust the stripe count otherwise we
  cannot alloc enough stripe objects, as LOD reports as follows:

  lod_alloc_specific() can't lstripe objid [obj_fid]: have %d want %u

  where %d is the ost count of a pool, and %u is the total ost count
  if user specifies -1 stripe count of a bigger stripe count value
  than %d as user specifies.

* In ost-pool.sh, reset $MOUNT's stripe offset, so that the created
  diretory will not inherit it from root directory.

* Preserve the root directory layout in replay-single (run before
  ost-pools) to avoid leaving a bad layout on the root dir.
  Lustre-change: https://review.whamcloud.com/43872

Lustre-change: https://review.whamcloud.com/43882
Lustre-commit: f430ec079bf882744729d7aabc2021dfd26aba0c

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Idf6884faf1271a3864710aeab0ba0eca154bf492
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Patrick Farrell <farr0186@gmail.com>
Reviewed-on: https://review.whamcloud.com/44259
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/lod/lod_qos.c
lustre/tests/ost-pools.sh
lustre/tests/replay-single.sh
lustre/tests/sanity.sh