Whamcloud - gitweb
LU-10350 lod: adjust stripe count to available ost count 82/43882/4
authorBobi Jam <bobijam@whamcloud.com>
Fri, 28 May 2021 08:25:52 +0000 (16:25 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 14 Jun 2021 16:43:18 +0000 (16:43 +0000)
commitf430ec079bf882744729d7aabc2021dfd26aba0c
treeb3621a80d5feda315a297ca5d3c824f8d81567b0
parent564070343ac4ccf4f97843009e1c36f5130ac19c
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

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