Score:0

RAID is healthy but one device is unpartitioned - should I replace it?

ir flag

I have a RAID5 array with 3 devices as follows:

~$ cat /proc/mdstat 
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
md127 : active raid5 sdb[4] sdc1[2] sda1[3]
      955537408 blocks super 1.2 level 5, 64k chunk, algorithm 2 [3/3] [UUU]
      bitmap: 2/4 pages [8KB], 65536KB chunk

As you can see, sdb isn't partitioned while the other devices are.

The sector count for each is:

Device     Sectors 
/dev/sda1  955799596 
/dev/sdc1  955799596 
/dev/sdb   976773168

If one of the drives fails, will a non-partitioned member make it harder to replace the failed drive?

If so, should I remove sdb now and give it the same partition table as the others before adding it back (at the cost of slow I/O while the array rebuilds)?

Score:1
cn flag

Actually non-partitioned drives are easier to replace: you don't need to create a partition of the right size, just to use a big enough replacement drive. You also can't misalign partitions with hardware blocks (most drives are physical 4k nowadays). If you're using only one partition on each drive, you can as well simply use the full drives without any partitioning.

ir flag
Oh OK, so in effect (and as long as any replacement drive is the same size or bigger than the smallest drive) a single partition is treated as the same as no partition?
cn flag
@TommyPeanuts yes, a partition table with a single partition simply adds a small gap at the beginning of the disk and nothing else. You don't need a partition table unless you need to install a bootloader (or obviously, wish to create several partitions). Windows can't use hard drives without partitioning them first OTOH.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.