File: 04r1update

package info (click to toggle)
mdadm 4.4-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,088 kB
  • sloc: ansic: 46,742; sh: 2,407; makefile: 284; python: 44
file content (15 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set -i

# create a raid1 array, let it sync, then re-assemble with a force-sync

mdadm -CR $md0 -l1 -n2 $dev0 $dev1
check wait
mdadm -S $md0

mdadm -A $md0 $dev0 $dev1
check nosync
mdadm -S $md0

mdadm -A $md0 -U resync $dev0 $dev1
check resync
mdadm -S $md0