run_test 18a "Find out orphan OST-object and repair it (1)"
test_18b() {
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
+
echo "#####"
echo "The target MDT-object is lost. The LFSCK should re-create the"
echo "MDT-object under .lustre/lost+found/MDTxxxx. The admin should"
run_test 18b "Find out orphan OST-object and repair it (2)"
test_18c() {
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
+
echo "#####"
echo "The target MDT-object is lost, and the OST-object FID is missing."
echo "The LFSCK should re-create the MDT-object with new FID under the "
run_test 18d "Find out orphan OST-object and repair it (4)"
test_18e() {
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
+
echo "#####"
echo "The target MDT-object layout EA slot is occpuied by some new"
echo "created OST-object when repair dangling reference case. Such"
run_test 18f "Skip the failed OST(s) when handle orphan OST-objects"
test_18g() {
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
+
echo "#####"
echo "The target MDT-object is lost, but related OI mapping is there"
echo "The LFSCK should recreate the lost MDT-object without affected"
test_20a() {
[ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs" && return
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
echo "#####"
echo "The target MDT-object and some of its OST-object are lost."
test_20b() {
[ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs" && return
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
echo "#####"
echo "The target MDT-object and some of its OST-object are lost."
test_24() {
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
echo "#####"
echo "Two MDT-objects back reference the same name entry via their"
run_test 26b "LFSCK can add the missing remote name entry back to the namespace"
test_27a() {
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
+
echo "#####"
echo "The local parent referenced by the MDT-object linkEA is lost."
echo "The namespace LFSCK will re-create the lost parent as orphan."
test_27b() {
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
echo "#####"
echo "The remote parent referenced by the MDT-object linkEA is lost."
test_30() {
[ $(facet_fstype $SINGLEMDS) != ldiskfs ] &&
skip "ldiskfs only test" && return
+ [ -n "$FILESET" ] && skip "Not functional for FILESET set"
echo "#####"
echo "The namespace LFSCK will move the orphans from backend"