linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm RAID safety checks?
@ 2010-09-17 19:21 Nagilum
  0 siblings, 0 replies; only message in thread
From: Nagilum @ 2010-09-17 19:21 UTC (permalink / raw)
  To: linux-raid

Hi,
I recently did a bit of RAID restructuring during the course of which  
I had first created a RAID5 with one member being a SATA disk  
connected to the onboard controller and the rest connected to a RAID  
controller. The array used the default metadata version 1.2.
Then I moved the disk from the onboard controller to a RAID controller  
in the same box and configured it as a single JBOD.
After I booted the machine I examined the disks (mdadm -E) and was a  
bit surprised to find that all disks appeared to have valid metadata.  
Of course I knew the disk I had just moved needed to be rewritten but  
first I would have to safely identify and do a clear-metadata with it.
Luckily I had two more identical disks already attached to the  
controller and configured as JBOD so I could identify the new one by  
looking at the "Used device size" and spot the new one as the one with  
the biggest reported size whereas the other two had a lower size. So  
after I had identified the new disk I cleared the metadata, assembled  
and recovered the array with no issues.
But the experience made me wonder if mdadm/linux does any checks on  
whether the reported size from the metadata is still available when  
assembling the disks (with valid metadata as in this case) to an array?
Thanks,
Alex.


----------------------------------------------------------------
cakebox.homeunix.net - all the machine one needs..

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-17 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-17 19:21 mdadm RAID safety checks? Nagilum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).