Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I recently converted my home media server from Windows Server 2008 to Ubuntu 11.10. Right now, there is a single WD20EARS 2 TB hard drive formatted as NTFS that's about to run out of space.

I'd like to purchase a few extra drives (the case can hold an additional two). I have a few questions before I actually purchase anything though:

  • The original reason I was running Windows Server was because of the way 4k sector drives are handled on Linux. I've since found this guide that might fix it, but I'm also seeing people say that it didn't work. Which 2 TB hard drives have the best compatibility, and where can I find a guide that will walk me through configuring the special partitioning for these drives (or can I avoid the complications all together?).

  • I'd like to use the existing 2 TB NTFS partition as part of the RAID 5. Is there any way that I can do this without needing an external to back up the data? It's my understanding that RAID 5 requires three disks, so it seems that if I wanted to purchase two extra drives, I'd need to back up the data on the existing NTFS drive before building the RAID.

  • Am I going about this the wrong way? Not too concerned about performance, just need lots of room for my media collection to grow.

I can navigate my way through tutorials, but I lack the Linux background to jump into this without some help. Setting up and maintaining this server has been quite a learning experience for me.

Running on server:

  • Crashplan
  • Sickbeard
  • Couchpotato
  • Sabnzbd+
  • Plex Media Server
share|improve this question
add comment

1 Answer

I also are trying to do something like that and I can share with you something I read along, but no hands on the job :) :

  • You can't just take the HD you have and use it in a RAID, you can destroy it;
  • With software raid, you can use madmin to build your RAID. First you can create a new raid5 with 2 new HD, then copy the old HD to new RAID and in the end, join the old HD to the new RAID;
  • Green WD are cheap but you can have more problems.

To create the raid with only two disks:

mdadm --create /dev/md0 --level=5 -n 2 /dev/disk1 /dev/disk2

and then to join the older disk

mdadm --add /dev/md0 /dev/disk0

It's not a very good manual for a beginner, but I hope give you the starting point.

share|improve this answer
    
Thanks for the tip. One problem down (migrating data). Know anything about the hard drives? Any way I can avoid the 4k sector partitioning issues? –  tlange Mar 12 '12 at 17:15
    
After read the guide you send, I recall of reading something about it and the solutions was to create the partitions with fdisk aligned with de sectors of the disk, but after read so many problems with green WD drives, I put them on side and forget them. –  Pipe Mar 13 '12 at 11:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.