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 22:41, Neil Brown wrote:
> > > # mdadm /dev/md1 -a /dev/hdd1
> > > mdadm: cannot find valid superblock in this array - HELP
> > 
> > Can you
> >   strace -o /tmp/trace mdadm /dev/md1 -a /dev/hdd1
> > 
> > and send me /tmp/trace?
> 
> Here it comes.

Thanks.

> lstat64("/dev", {st_mode=S_IFLNK|0777, st_size=5, ...}) = 0

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?

It isn't really the right fix, but it is a quick-and-dirty that might
work.

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