Whamcloud - gitweb
LU-12227 scripts: check for mounted ZFS devices too 66/34766/2
authorAurelien Degremont <degremoa@amazon.com>
Fri, 26 Apr 2019 09:58:37 +0000 (09:58 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 May 2019 06:05:24 +0000 (06:05 +0000)
commit34bc379f7425f364535e608d03f424a64bd1a04e
tree3206ba84bff2f67f796ffd8d2108ab5152b2c3d3
parentac1f97a881019b78ce3289885461259d280562b3
LU-12227 scripts: check for mounted ZFS devices too

lustre init script skips several checks if the device type is ZFS. If
some ZFS devices are already mounted, the script will return a
non-zero exit code.

The label and mount point check is valid for ZFS devices, so let's do
it and avoid this error case. With this patch, when starting ZFS
devices the script will only start the not already started ones and if
it succeeds, return 0.

Test-Parameters: trivial
Signed-off-by: Aurelien Degremont <degremoa@amazon.com>
Change-Id: I152ca4d62d444193cc66896173873587f0761493
Reviewed-on: https://review.whamcloud.com/34766
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/lustre