Whamcloud - gitweb
LU-10350 lod: adjust stripe count to available ost count 82/43882/3
authorBobi Jam <bobijam@whamcloud.com>
Fri, 28 May 2021 08:25:52 +0000 (16:25 +0800)
committerBobi Jam <bobijam@whamcloud.com>
Thu, 3 Jun 2021 01:49:39 +0000 (09:49 +0800)
commitc82f557324bc0048c308d1a2135699e7c83169e1
tree5d4bcf0e46e503a77c6f607bcedacb69051184b0
parent149934fe28dac22a51ec9b2873c4f215cb204947
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
lustre/lod/lod_qos.c
lustre/tests/ost-pools.sh
lustre/tests/replay-single.sh
lustre/tests/sanity.sh