An Mdadm Question

Home » CentOS » An Mdadm Question
CentOS 3 Comments

CentOS 7.

I have a server with four drives. 1 is /, and the other three are in RAID5. I need to pull a drive, so I can test whether the server can read >
2TB drives. I’ve been googling, but don’t want to screw the server up….

I think I’d like to
1. stop the RAID
2. pull a drive
3. put in a large drive, and run parted, and mkfs
4. pull the large drive
5. replace the RAID drive
6. fire up the RAID.

So, can I do it in that order? Do I need to fail something?

mark

3 thoughts on - An Mdadm Question

  • If you really just want to test if it can use 2Tb disks, unplug all disks, plug in 4Tb disk, boot off liveCD, tinker.

    When done, reverse.

    jh

  • Almost invariably that RAID will assemble degraded, and the drive you pulled will now be out of sync. When you add it back in, it will have to be, block by block, resynced. So if you want to avoid that, you have to avoid the autoassembly at boot time, or pull at least one more drive to prevent assembly.

    Even live media may assemble the RAID, degraded, if enough drives for degraded operation are found.

  • No, don’t –fail anything. It should be sufficient to ‘mdadm –stop
    /dev/md0’ assuming that’s the only array.