Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

oxband

macrumors 6502
Original poster
Sep 10, 2009
333
4
I have a RAID 5 which is at about 10% free space, and I want to change one of the drives to something larger so that there is more free space.

That being said....I have no idea how/if I can swap out one drive from a RAID 5. Anyone know how?
 
RAID generally doesn’t work that way.
I believe Some high end raid controllers allow online expansion (ie replacing smaller drives with larger ones to gain capacity) but you’d have to replace all the drives, one by one, letting it rebuild after each replacement (and it’s extremely unlikely the controller for your unit supports it).
 
I have 4 drives. Each are 4 TB each. I have 1.2 TB of free space. I can't tell if that's 10% (1.2 of 12 TB of data) or less (1.2 of 16 TB) and either way, it's performing slow and I have to imagine this would help
 
You need to find out specifically about your RAID controller. As mentioned, some will let you grow a volume, but most will not.

Some will grow the drive...but not the volume. If this was the case, you would gain free space (after swapping out all drives, one at time and rebuilding between every swap per the controller instructions), but that free space would be unformatted. You might be able to format and create a second volume. You might be able to grow the first partition. Can't say, never tried on MacOS.

BTW: Any of this entails risk of complete data loss. Pulling a drive puts a RAID 5 in a degraded state; if anything happens to it (like a drive failure, or pulling a second drive incorrectly), all data is gone!

Which means you need a complete backup before doing anything.

And...RAID is NOT a backup, so you should have at least one backup all the time. If you lost the controller, or 2 drives at once, data is lost.
[automerge]1591339840[/automerge]
I have 4 drives. Each are 4 TB each. I have 1.2 TB of free space. I can't tell if that's 10% (1.2 of 12 TB of data) or less (1.2 of 16 TB) and either way, it's performing slow and I have to imagine this would help

1.2 of 12TB. In RAID 5, one drive is always used for parity....so that space does not exist (as far as you or the OS is concerned).
 
Would the performance difference between 10 and 20% free be that big?

Free space unformatted isn't bad necessarily. I don't need more space. I just want to make it faster.
 
Would the performance difference between 10 and 20% free be that big?

Free space unformatted isn't bad necessarily. I don't need more space. I just want to make it faster.


Hard to put a number on it, but yes, drives slow as they fill. The outer tracks are fastest, primarily because of the speed which they pass under the head; fuller it gets, slower it goes. The big slowdown comes at the point in which there are not enough contiguous blocks to write out files in sequential space: disk fragmentation.

I would always shoot for at least 10% free space, but to maximize performance and (to a lesser degree) reliability, 20%+ free is better. For max speed, 50% free is better, although you may have a performance bottleneck other places, like the controller itself.

Free space on another partition could help with not using the inner most tracks of the drive if the second/free partition is last on the drive, but it will not with the fragmentation issue once the volume is mostly full.

Best bet would be to write everything out to a safe backup, and create a new, larger array. One nice perk of moving files: all files will be defragmented doing the move, assuming there is enough space to write out everything.

If you don't have enough space on a single volume, you could move the file off in chucks on multiple drives. Clunky, but it would work. Reverse the process to write data back to a new array volume.
 
Last edited:
OP: can you describe the device (I assume it's an external array?) - i.e. a manufacturer, model name or number?

Personally these days with the size of disks available I wouldn't want to rely on RAID5. As @hobowankenobi mentioned, with one drive "missing" the array is in a degraded state - the problem with RAID5 is that they have a nasty habit of causing a second drive to fail while trying to rebuild onto a new disk (e.g. to replace a failed one).

If you just need a large amount of storage space with some redundancy, I'd aim for a couple of drives in RAID1, or if you need either more continuous space, or more speed (or both) I'd aim for a RAID10. Whether you can do that using the existing RAID controller or not will depend on what it is.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.