[lkml]   [2006]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRAID5 grow success (was: Re: 2.6.16-rc6-mm2)
    Andrew Morton wrote (ao):
    > - Lots of MD and DM updates

    I would like to report that growing an online raid5 device works like a

    mdadm --version
    mdadm - v2.4-pre1 - Not For Production Use - 20 March 2006

    mdadm -C -l5 -n3 /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1

    While performing:
    for i in `seq 4`
    do dd if=/dev/zero of=bigfile.$i bs=1024k count=10000
    md5sum bigfile.*

    I do:
    mdadm /dev/md0 -a /dev/sdd1

    mdadm --grow /dev/md0 --raid-disks=4

    When the dd and md5sum finishes, I umount and:

    e2fsck -f /dev/md0
    resize2fs -p /dev/md0

    After mounting again the disk indeed is bigger, and the md5sum still

    FWIW, I now try to add four more spares at once, and grow the raid5
    again. It seems to work:

    # mdadm /dev/md0 -a /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1
    mdadm: added /dev/sde1
    mdadm: added /dev/sdf1
    mdadm: added /dev/sdg1
    mdadm: added /dev/sdh1
    # mdadm --grow /dev/md0 --raid-disks=8
    mdadm: Need to backup 448K of critical section..
    mdadm: ... critical section passed.

    It is still reshapeing ATM.



    Humilis IT Services and Solutions
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-03-20 14:05    [W:0.028 / U:61.896 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site