sobota, 5 października 2013

mdadm: RAID1 z jednym dyskiem

mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 missing
cat /proc/mdsat zwróci:
md0: active raid1 sda1[0]
      488378348 blocks super 1.2 [2/1] [U_]
    
unused devices: <none>
 Drugi sposób:

mdadm --create /dev/md0 --level=1 --raid-devices=1 /dev/sda1 --force

cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[0]
488385392 blocks super 1.2 [1/1] [U]

mdadm --grow /dev/md0 --raid-devices=2

cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[0]
488385392 blocks super 1.2 [2/1] [U_]

Brak komentarzy:

Prześlij komentarz