Quick question, if there is anyone here. I pulled out one of my hard drives, because it was making a noise. It was in an array with another drive (mirrored), and possibly mounted. What's the best way of checking the array is degraded?
@StephenKitt So I need to issue a mdadm command to add the new drive to the array?
A couple of followup questions, if anyone feels like answering. The drive in question is a WD Caviar Black 500 GB HDD. Question 1) Would another HDD, say Seagate 500 GB also work as a new disk in the array? Question 2) Would a 500 GB SSD work?
@FaheemMitha Any block device which is not smaller than your sda1 will work, if we limit the meaning of "work" to having two mirrored copies of your data
@fra-san Oh. So so it doesn't actually have to be the same size? I.e. a 1 TB and a 500 GB HDD will work in RAID 1?
The reason I ask is that I'm having difficulty finding a suitably new 500 GB HDD to put along with my existing 500 GB HDD. It looks like maybe they don't make them any longer.
Poll: how many working computers do you own? Meaning, computers that can be used for real work, so not museum pieces and also properly functioning. Not counting mobile phones. Either laptop or desktop.
@FaheemMitha That depends on your requirements. A HDD takes a few seconds to spin up, it's slower, but it's bigger. An SSD is faster, smaller, and has limited writes.
Will you be using the disk for hourly backups, then I would pick the HDD. If I would use the disk for day-to-day stuff, as the main disk of a system, then pick the SDD, unless you know you need the larger disk.
@FaheemMitha Sure, but in the end it all comes down to what you're buying the disk for.
@Kusalananda No backups. It's not the main disk of a system either. Auxiliary stuff, mostly data, some videos and stuff like that. Which is why it's on a HDD in the first place.
I was just tempted to use a SSD, because it has no moving parts, is more modern, and seems like it would be more reliable. Though I realise that isn't necessarily the case, because in the real world, things aren't so easily predictable.
@Kusalananda Probably not. But it seems there at least it's hard to get newer HDDs at say the 500 GB size, judging by the complaints I've read in the reviews about old stock. It's possible it's just not manufactured any more at that size.
@Kusalananda Sure, though it's more expensive. My computer guy said that you couldn't put an SSD and a HDD in a RAID 1 (they're not compatible), though what I've found on the net contradicts that. The only thing I read is that everything will be slowed down to the level of the HDD, because if course it's slower.
@FaheemMitha I don't know much about things like that. I know that ZFS raidz is able to use a mix of different types of drives and that you are restricted by the slower. I have no clue about how "real" (hardware) raid works or what requirements there are on disks.
@Kusalananda I'm using software RAID on Linux. The standard implementation uses a driver called mdadm.
I had a hardware RAID card once. It was very expensive and it died after a few years. I started using software RAID after that, and I've had no problems with it.
But I've only used software RAID on Linux. I assume the kernel has support for it, but I've never bothered to find out.
@FaheemMitha Using a md RAID 1 array (assuming 2 drives for simplicity) you are constrained by the speed of the slowest drive when writing, but you can read at the speed of the fastest one