Menu

1.2.0-25 Linux sw RAID SUCCESSFULL, but...

2008-11-23
2013-04-05
  • Gianni Sandigliano

    The very good news is: yesterday I have successfully cloned a Linux software RAID machine (RAID1) with 8+1 partitions using Clonezilla Live 1.2.0-25 moving from an 80GB disks couple to a 160GB couple. The intermediate storage was a 160GB NTFS drive, originally formatted with WinXP.

    The complete environment was:
    ASUS M2A-VM
    Fedora 8
    /dev/sda1 /dev/md0 /boot     100M
    /dev/sda2 /dev/md1 /             1.0G
    /dev/sda3 /dev/md2 /tmp      256M
    /dev/sda4 extended               approximately 74.0G
    /dev/sda5 /dev/md3 /usr        3.0G
    /dev/sda6 /dev/md5 /var        3.0G
    /dev/sda7 swap                     512M
    /dev/sda8 /dev/md4 /home   256M
    /dev/sda9 /dev/md6 /opt       196M

    What I've done is very simple:
    1) Booting Clonezilla Live
    2) All default options
    3) Cloning disk /dev/sda to external USB NTFS drive
    4) Shutdown
    5) Swapping first 80GB with a new 160GB
    6) Taking out also 2nd 80GB (/dev/sdb)
    7) Booting Clonezilla Live again
    8) Restoring image copy from external USB NTFS drive to the first new 160GB
    9) Booting with only 1disk and checking everything is OK
    11) Installing the 2nd 160GB and partitioning it (identical to 1st 160GB)
    12) Restoring RAID1 functionality with mdadm
    13) Restoring GRUB MBR on 2nd 160GB
    14) Formatting and reactivating 2nd swap area on 2nd 160GB
    15) Final reboot to check everything is working

    Here start the bad news: after everything was ok I need to have a larger partition to host /home.
    So I have:
    1) Deactivated all RAIDs and swap on 2nd disk
    2) Generate a new large partition up to 80GB (/dev/sda10)
    3) Copied everything from the original /home to the new partition
    4) changed /etc/fstab, rebooted, checked everything was ok with a single disk
    5) Deleted original /dev/sda8, restored RAID1, MBR and 2nd swap area
    6) Rebooted and checked everything was ok.
    7) Clonezilled as described before /dev/sda on external USB NTFS drive
    8) Taken out the two original disk and installed a 3rd 160GB
    9) DeClonezilled on the fresh new disk from external USB NTFS drive
    10) Booted: everything seems OK excluding last large partition that reported to be corrupted needing fsck at boot.
    Because of time constraint I can't go further analyzing where the real problem is...but after restoring original 160GB disks, during following boot everything was OK so the problem found was generated cloning the old disk in the new one.

    If you need any further info, pls ask.

    Ciao,
    Gianni

     
    • Steven Shiau

      Steven Shiau - 2008-11-24

      Gianni,
      Thanks for your sharing.
      Clonezilla does not support RAID. Hwever, RAID1 is a special case, so Clonezilla might work. Since boot loader and some mechanism are still different from that of non-RAID, you might still have some problem to boot it.

      So in your description, does it work there after the system is rebuilt by RAID ?

       

Log in to post a comment.