Re: mdadm-2.3.1 fails to hotadd device

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

 



On Sunday February 26, maan@xxxxxxxxxxxxxxx wrote:
> On 08:37, Neil Brown wrote:
> > Your '/dev' is a symlink, and mdadm doesn't seem to like that.
> > 
> > Can you change the 'nftw' call in 'map_dev' in 'util.c' to
> > 
> > 		nftw("/dev/.", add_dev, 10, FTW_PHYS);
> > 
> > and see if that helps?
> 
> Jup, that does the trick:
> 
> 	# ./mdadm /dev/md1 -a /dev/hdd1
> 	mdadm: re-added /dev/hdd1

Great.

> 
> > It isn't really the right fix, but it is a quick-and-dirty that might
> > work.
> 
> Is it considered an invalid configuration to have /dev being a symlink
> (to /udev as in my case)?

Not invalid.  Just untested.... until now - thanks.

I'll make sure 2.4 handles this a lot more gracefully.

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