Whamcloud - gitweb
LU-10843 mgs: allow snapshot after MGS remount 19/32519/3
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 16 Apr 2018 21:10:49 +0000 (17:10 -0400)
committerJohn L. Hammond <jhammond@whamcloud.com>
Wed, 1 Aug 2018 16:36:16 +0000 (16:36 +0000)
commitf01f2174bcc27c06c8cd5e64cb6e63452fe6c07b
tree0a917229f332d5fe434d89c6f25d869ce0adc74d
parent8c610a5f483d53de7d9579587f304b551c847e99
LU-10843 mgs: allow snapshot after MGS remount

If the MGS is unmounted/mounted without the MDS reconnecting,
the fsdb FSNAME-barrier would not be created.

This change allows mgs_barrier_freeze (called from snapshot_create)
to attempt the create the required fsdb.

This adds a test to sanity-lsnapshot.sh for this issue.

Test-Parameters: testlist=sanity-lsnapshot mgtfilesystemtype=zfs ostfilesystemtype=zfs mdtfilesystemtype=zfs combinedmdsmgs=false ostcount=2 standalonemgs=true

Lustre-change: https://review.whamcloud.com/31779
Lustre-commit: 2d63d5bc74a5b2477d795bf9e9b0eba94f7fc19f

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I2432cc0bdaddb07f024744065ca2ced77288fd7b
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/32519
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/mgs/mgs_barrier.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/tests/sanity-lsnapshot.sh