Re: Bug#597563: grub-common: grub-probe segfaults scanning lvm devices

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

 



On Sun, 09 Jan 2011 17:13:10 -0500 Matthew Gabeler-Lee <cheetah@xxxxxxxxxxx>
wrote:

> On 1/9/2011 16:57, NeilBrown wrote:
> > Simply running
> >     mdadm --zero-superblock /dev/sdb
> >
> > should fix it.
> Well, that doesn't work very well: "mdadm: Couldn't open /dev/sdb for write 
> - not zeroing" ... strace reveals that mdadm is trying to open it O_EXCL, 
> which I presume is why it's not working ... I presume I'd have to reboot to 
> single user mode and stop the LVM and possibly MD stuff in order for that to 
> work, which might then require booting from a rescue cd to do it.

Sorry, I forgot that the device would be in use.
In that case

   mdadm --zero-superblock --force /dev/sdb

would have done the trick.  But you found another way which worked just as
well.

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