LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-05-2008, 04:36 AM   #1
kapw
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Built software raid from whole devices instead of partitions: problem?


Hi,

I set up a software RAID5 with mdadm, which is working fine. I'm using external 500GB USB drives for this.

When I tried to add a spare disk just now I noticed that I didn't assemble the RAID array using partitions on the drives (sda1, sdb1, sdc1) but the whole devices instead (sda, sdb, sdc). Adding the new drive's partition (sdd1) didn't work, because there wouldn't be enough space. Adding the whole device (-a /dev/sdd) worked.

Could this be causing a problem? It's all working fine, but this would be the most convenient time to back up the data to another drive and start over. So if there is any benefit in doing so at all I would really like to know and get it over with.

Thank you!
 
Old 12-08-2008, 05:20 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
There is absolutely nothing wrong with using the entire device. IMO it makes more sense than using partitions to create the virtual disk. The only problem could be the cluster size of the file system. The larger the partition -> the larger the cluster size -> the larger the smallest amount of disk space allocated for tiny files. In other words if your cluster size is 4096 bytes then that is the smallest unit of disk space that can be allocated per file. If you have a lot of files that are less than 1024 bytes then you will waste about 3072 bytes per file. This is about 75%.

On the other hand if you have a lot of files that are very large then you won't waste a lot of disk space.

All of that can be avoided because you will create partitions on the virtual disk so you can handle the cluster size issue at that point.

Last edited by stress_junkie; 12-09-2008 at 07:34 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Software Raid with LVM and Live System Partitions centos82 Linux - Software 4 11-13-2008 10:59 AM
Error when create second Software Raid devices? hocheetiong Linux - Newbie 1 01-13-2008 02:40 PM
Recover software raid partitions knoppix d_t_baker Linux - Hardware 1 07-09-2005 07:19 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
Creating multiple partitions in a software RAID heiseltc Linux - Hardware 1 05-31-2003 08:52 PM


All times are GMT -5. The time now is 01:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration