User Tools

Site Tools


docs:tips_n_tricks:softraid.html

This is an old revision of the document!


SoftRAID

Create an RAID1 array degraded

mdadm --create --level 1 -n 2 /dev/md0 /dev/sda1 missing

don't mix up –create and –build, as the latter will not write meta date to the partion.

Resize RAID1 after underlying partitions are resized

mdadm --grow /dev/md0 --bitmap none
mdadm --grow /dev/md0 --z max
( mdadm -W /dev/md0 && mdadm --grow /dev/md0 --bitmap internal ) &
watch 'cat /proc/mdstat ; mdadm --detail /dev/md0 | fgrep -i bitmap'
docs/tips_n_tricks/softraid.html.1413708408.txt.gz · Last modified: 19.10.2014 10:46 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki