Re: [PATCH] Re: duplicate bcache device crashes kernel (all the way to 4.15.5)

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

 



On Tue, Feb 27, 2018 at 02:50:32PM -0800, Michael Lyle wrote:
> I found a related (worse) problem with duplicate backing device-- sysfs
> complains but it actually attaches with the same UUID / has incorrect
> behavior.  I will work on fixing that in the next few days for another
> submission to Jens, together with your fix.

Yeah, I found out that my filesystem attached to that bcache got
destroyed beyond fixing after I duplicated the bcache partition on
another drive.
Sadly, any kind of rescan from fdisk can cause a udev rescan and an
unintended bcache register, which seems to have caused massive
corruption to the filesystem depending on that cache device.
My plan was never to have both drives in at the same time in the same
machine, but I became vulnerable while I was duplicating onto the 2nd
drive. 

Thankfully I have hourly backups via btrfs, so no harm done outside of a
lot of time, lost.

Thanks for looking into this, and the fix.

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                       | PGP 7F55D5F27AAF9D08
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux