Existing Raid 5 want to Add Raid 1

Posted on 2007-08-10
Last Modified: 2013-12-16
Hi All,

I'm a first time poster so please bear with me.

I have a Redhat 9 system with a hardware Raid 5 (Dell Poweredge 2650 w/ Perc 3/di controller) with 3 drives and 2 empty slots.
The /usr partition is low on disk space due to a growing db.
I have been given the task of adding two additional drives into the two empty slots, same make/model/size HD's.

The plan is to create a Raid 1 with the two new drives then move the folder holding most of the data to the new partition then create a symbolic link to the new location.

I am not an expert in Linux so I was wondering if this a sound plan am I missing something? do I run the risk of not being able to boot , lose data?

Many Thanks

Question by:cchris00
    LVL 7

    Accepted Solution

    Your plan is good, and will probably work, however, I would recommend altering it a bit:
    1. Create the RAID1 array
    2. Partition and format the new array (should appear as sdb)
    3. Mount it in a temporary location, like /mnt/usr
    4. Stop services which change files in /usr. In your case, it seems to include the DB.
    5. Copy the files from one to the other:
    cd /usr
    tar cf - . | ( cd /mnt/usr ; tar xvf - )
    6. Rename /usr to /usr.old
    7. Make a (new) directory /usr
    8. Umount your /mnt/usr partition.
    9. Mount (and verify it'll be mounted after reboot through /etc/fstab) your previous /mnt/usr in the new /usr location.
    10. Start services, verify everything is working fine.
    11. Take a week, and delete /usr.old directory. You don't need it anymore.

    Author Comment

    Thanks for the thorough solution I really appreciate it.  
    LVL 7

    Expert Comment

    No problem.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now