Re: New features?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday November 3, gombasg@xxxxxxxxx wrote:
> On Fri, Nov 03, 2006 at 02:39:31PM +1100, Neil Brown wrote:
> 
> > mdadm could probably be changed to be able to remove the device
> > anyway.  The only difficulty is: how do you tell it which device to
> > remove", given that there is no name in /dev to use.
> > Suggestions?
> 
> Major:minor? If /sys/block still holds an entry for the removed disk,
> then the user can figure it out from the name. Or mdadm could just
> accept a path under /sys/block instead of a device node.

I like the /sys/block idea.  So if given a directory we look for a
'dev' file and read major:minor from that.
I guess I could also just allow
  mdadm /dev/mdX --remove failed

and all failed devices get removed.

Thanks for the suggestion.
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux