Re: Auto Rebuild on hot-plug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Robinson
Date: Thursday, March 25, 2010 - 7:10 am

On 25/03/2010 00:35, Neil Brown wrote:

Or indeed it may have no metadata at all - it may be a fresh disc. I 
didn't see that you stated this specifically at any point, though it was 
there by implication, so I will: you're going to have to pick up hotplug 
events for bare drives, which presumably means you'll also get events 
for CD-ROM drives, USB sticks, printers with media card slots in them etc.


Indeed, I would like to be able to declare any 
/dev/disk/by-path/pci-0000:00:1f.2-scsi-[0-4] to be suitable candidates 
for hot-plugging, because those are the 5 motherboard SATA ports I've 
hooked into my hot-swap chassis.

As an aside, I just tried yanking and replugging one of my drives, on 
CentOS 5.4, and it successfully went away and came back again, but 
wasn't automatically re-added, even though the metadata etc was all there.


Definitely want this for bare drives. In my case I'd like the MBR and 
first 62 sectors copied from one of the live drives, or a copy saved for 
the purpose, so the disc can be bootable.

My concern is that this is surely outwith the regular scope of 
mdadm/mdmon, as is handling bare drives/CD-ROMs/USB sticks. Do we need 
another mdadm companion rather than an addition?


Definitely, just so I can pull a drive and plug it in again and point 
and say ooh, everything's up and running again, to demonstrate how cool 
Linux md is. I imagine some distros' udev/hotplug rules do this already, 
almost by default where they assemble arrays incrementally.


I think in my situation I'd quite like the first partition, type fd 
metadata 0.90 RAID-1 mounted as /boot, added as an active mirror not a 
spare, again so that if this new drive appears as sda at the next power 
cycle, the system will boot.

The second partition, a RAID-5 with LVM on it, could be added as a 
spare, because it would then automatically be rebuilt onto if the array 
was degraded.

[...]

I'm afraid I have nothing to add here, it all sounds good.

Cheers,

John.

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Auto Rebuild on hot-plug, Neil Brown, (Wed Mar 24, 5:35 pm)
Re: Auto Rebuild on hot-plug, Michael Evans, (Wed Mar 24, 7:47 pm)
Re: Auto Rebuild on hot-plug, Luca Berra, (Thu Mar 25, 1:01 am)
Re: Auto Rebuild on hot-plug, John Robinson, (Thu Mar 25, 7:10 am)
RE: Auto Rebuild on hot-plug, Labun, Marcin, (Thu Mar 25, 8:04 am)
Re: Auto Rebuild on hot-plug, linbloke, (Thu Mar 25, 11:41 pm)
Re: Auto Rebuild on hot-plug, Majed B., (Fri Mar 26, 12:52 am)
Re: Auto Rebuild on hot-plug, Dan Williams, (Fri Mar 26, 5:37 pm)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 11:10 am)
Re: Auto Rebuild on hot-plug, John Robinson, (Mon Mar 29, 11:36 am)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 11:57 am)
Re: Auto Rebuild on hot-plug, Dan Williams, (Mon Mar 29, 2:36 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Mon Mar 29, 3:36 pm)
Re: Auto Rebuild on hot-plug, Dan Williams, (Mon Mar 29, 3:41 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Mon Mar 29, 3:46 pm)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 4:30 pm)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 4:35 pm)
Re: Auto Rebuild on hot-plug, Dan Williams, (Mon Mar 29, 5:46 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Tue Mar 30, 5:10 am)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Tue Mar 30, 8:23 am)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Tue Mar 30, 8:53 am)
RE: Auto Rebuild on hot-plug, Labun, Marcin, (Tue Mar 30, 10:47 am)
Re: Auto Rebuild on hot-plug, Dan Williams, (Tue Mar 30, 4:36 pm)
Re: Auto Rebuild on hot-plug, Dan Williams, (Tue Mar 30, 4:47 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:18 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:26 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:30 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:35 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:42 pm)
Re: Auto Rebuild on hot-plug, Michael Evans, (Tue Mar 30, 7:46 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 9:53 pm)
Re: Auto Rebuild on hot-plug, Luca Berra, (Tue Mar 30, 11:10 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Fri Apr 2, 4:01 am)