Quantcast
Viewing latest article 10
Browse Latest Browse All 10

Adding Additional RAID Array to Ubuntu 11.10 x64 Server

Image may be NSFW.
Clik here to view.
Question

I asked this on askubuntu.com as well but since it’s a server question, figured I’d throw it on SF, too.

Haven’t run into this situation before but it seems simple enough. Looking for advice/guidance on the following issue.

I have an Ubuntu 11.10 64-bit server that is configured with 2 identical hard drives in a RAID-1 through the mdadm utility. It’s a simple LAMP server that runs a few projects I’m working on but is growing out of the current storage. What I would like to do is install 3 additional hard drives as a second array using mdadm and RAID-5 and have it accessible as /sites (or something similar). I would then like to then move the contents of the projects on the RAID-1 to this new bigger array and simply update their VirtualHost definitions to reflect their new location.

Example

Project A currently located in /home/projecta but after the new RAID-5 is created and accessible the location would be /sites/projecta whre /sites is the path to the new RAID-5.

Am I right in thinking it is this simple or is there a lot more to it than that?

Thanks in Advance!

Asked by rsmith84

Image may be NSFW.
Clik here to view.
Answer

It should be as simple as that. If the sites are live and active though, you may need to shut them down to ensure that there are no changes to the filesystem while to migrate the files to the new system.

And of course, instead of just setting up the raid the next time, set up LVM. That way, you can do all this stuff transparently.

Answered by Shri

Viewing latest article 10
Browse Latest Browse All 10

Trending Articles