"Fossies" - the Fresh Open Source Software Archive

Member "mdadm-4.2/clustermd_tests/02r1_Manage_re-add" (30 Dec 2021, 341 Bytes) of package /linux/misc/mdadm-4.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 mdadm -CR $md0 -l1 -b clustered -n2 $dev0 $dev1 --assume-clean
    4 ssh $NODE2 mdadm -A $md0 $dev0 $dev1
    5 check all nosync
    6 check all raid1
    7 check all bitmap
    8 check all state UU
    9 check all dmesg
   10 mdadm --manage $md0 --fail $dev0 --remove $dev0
   11 mdadm --manage $md0 --re-add $dev0
   12 check all state UU
   13 check all dmesg
   14 stop_md all $md0
   15 
   16 exit 0