Software RAID: Degraded Array on Linux

    Good afternoon, dear habrayuzery.
    On one of the machines, the following situation arose - the hard drive failed.
    Since the server was being assembled for a long time, the screws stood at 80 GB (2 pieces), and I decided to replace them with 500 GB, since there is almost no difference in cost, and there will be more benefit :) The
    disks are broken in this way:

    / dev / sda1 * 1 6 48163+ fd Linux raid autodetect
    / dev / sda2 7 9729 78099997+ 5 Extended
    / dev / sda5 7 334 2634628+ fd Linux raid autodetect
    / dev / sda6 335 577 1951866 fd Linux raid autodetect
    / dev / sda7 578 1793 9767488+ fd Linux raid autodetect
    / dev / sda8 1794 9729 63745888+ fd Linux raid autodetect

    ~ # df -h
    Filesystem Size Used Avail Use% Mounted on
    / dev / md3 9.2G 1.9G 6.9G 22% /
    tmpfs 1010M 0 1010M 0% / lib / init / rw
    udev 10M 104K 9.9M 2% / dev
    tmpfs 1010M 0 1010M 0% / dev / shm
    / dev / md0 46M 33M 11M 77% / boot
    / dev / md2 1.9G 36M 1.8G 3% / tmp
    / dev / md4 60G 11G 47G 18% / var The

    question is: how to correctly transfer the whole thing to new hard drives?
    Of course, it will be necessary to increase the / var partition, and I also want to make another partition for openvz virtual machines.

    Also popular now: