Whamcloud - gitweb
LU-10843 mgs: allow snapshot after MGS remount 79/31779/9
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 16 Apr 2018 21:10:49 +0000 (17:10 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 17 May 2018 02:30:27 +0000 (02:30 +0000)
commit2d63d5bc74a5b2477d795bf9e9b0eba94f7fc19f
tree70f351499e370bc57fa32d581959eaebca8a496a
parentbe30c0d71e75d3e24674edcc7e02d005d2a9f5c2
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
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I2432cc0bdaddb07f024744065ca2ced77288fd7b
Reviewed-on: https://review.whamcloud.com/31779
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@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>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mgs/mgs_barrier.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/tests/sanity-lsnapshot.sh