Results 1 to 4 of 4

Thread: How to manage a RAID 5 Software Data Recover

  1. #1
    Join Date
    Mar 2013
    Beans
    112

    How to manage a RAID 5 Software Data Recover

    Hello to everyone

    i need to replace all the disk in a workstation with a RAID 5 Software Configuration but i want to keep it safe in case we would need to remount to recover some data.

    Due to the fact that is a Software RAID:


    • I need to remount the 3 DISK in the same slot where were mounted before or i just need to remount the 3 disk regardless of workstation model and slot number?


    This, eventually to mark the disk with some label with useful information that could help me to re-mount the disk in the future in a correct way.

    Thanks in adavence for the help

  2. #2
    Join Date
    May 2010
    Beans
    3,247

    Re: How to manage a RAID 5 Software Data Recover

    Make a backup to a different disk so there is no "recovery", you'd just restore the data from backup. A cheap USB drive will do this just fine.

  3. #3
    Join Date
    Mar 2013
    Beans
    112

    Re: How to manage a RAID 5 Software Data Recover

    I already did a backup running an rsync over another workstation, however they told to remove the disks and keep it safe in case we need it and i would like to know how i have to manage the three disks if i need to re-mount them and make it readble.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: How to manage a RAID 5 Software Data Recover

    I would destroy the existing RAID 5 configuration, then rebuild it from scratch with mdadm. My usual steps:

    1) Use fdisk to create single partition on each drive that spans the entire device; use the T command in fdisk to mark each partition as type "fd - Linux RAID Autodetect"

    2) Use mdadm to create the array, in your case something like
    Code:
    sudo mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1
    3) Format the array as ext4.
    Code:
    sudo mkfs -t ext4 /dev/md0
    4) Mount the array device and add a line to /etc/fstab to mount it automatically at boot.
    Last edited by SeijiSensei; September 28th, 2020 at 06:31 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •