diff --git a/operation/mkraid.sh b/operation/mkraid.sh index 16d6161..5ed5399 100755 --- a/operation/mkraid.sh +++ b/operation/mkraid.sh @@ -128,7 +128,7 @@ setArgument(){ testBeforeMkraid(){ local i #test the "(3) mdX has exist" error - mdadm -D $RAIDNAME >>${LOGDIR}${LOGFILE} 2>>${LOGDIR}${LOGFILE} + mdadm -Q $RAIDNAME >>${LOGDIR}${LOGFILE} 2>>${LOGDIR}${LOGFILE} if [ $? == "0" ]; then ERRNO="3" return 1 diff --git a/operation/mkraidconf.sh b/operation/mkraidconf.sh index b20ec66..b349841 100755 --- a/operation/mkraidconf.sh +++ b/operation/mkraidconf.sh @@ -29,5 +29,5 @@ if [ ! -d $CONDIR ]; then exit 1 fi fi -mdadm -Ds -v > $CONDIR$CONFILE +mdadm -Es -v > $CONDIR$CONFILE