[PATCH 02/19] mdadm/test: add disk metadata infos in save_log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Zhilong Liu <zlliu@xxxxxxxx>
---
 clustermd_tests/func.sh | 2 ++
 tests/func.sh           | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/clustermd_tests/func.sh b/clustermd_tests/func.sh
index 2387424..8ac5921 100644
--- a/clustermd_tests/func.sh
+++ b/clustermd_tests/func.sh
@@ -178,6 +178,8 @@ save_log()
 			then
 				echo "##$ip: mdadm -X ${md_disks[@]}" >> $logdir/$logfile
 				ssh $ip "mdadm -X ${md_disks[@]}" >> $logdir/$logfile
+				echo "##$ip: mdadm -E ${md_disks[@]}" >> $logdir/$logfile
+				ssh $ip "mdadm -E ${md_disks[@]}" >> $logdir/$logfile
 			fi
 		else
 			echo "##$ip: no array assembled!" >> $logdir/$logfile
diff --git a/tests/func.sh b/tests/func.sh
index 40c6026..6bfdafe 100644
--- a/tests/func.sh
+++ b/tests/func.sh
@@ -55,6 +55,8 @@ save_log() {
 			then
 				echo "## $HOSTNAME: mdadm -X ${md_disks[@]}" >> $logdir/$logfile
 				$mdadm -X ${md_disks[@]} >> $logdir/$logfile
+				echo "## $HOSTNAME: mdadm -E ${md_disks[@]}" >> $logdir/$logfile
+				$mdadm -E ${md_disks[@]} >> $logdir/$logfile
 			fi
 		else
 			echo "## $HOSTNAME: no array assembled!" >> $logdir/$logfile
-- 
2.6.6

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux