-
Notifications
You must be signed in to change notification settings - Fork 43
Dirty metadata buffer #46
Comments
I had this problem. I created a plugin which added mount options for ext file systems. barrier=0 fixes it. |
Thing is, I already do that. |
Hi there, I just started encountering this same problem yesterday. Launching a new ec2 instance with a freshly-built AMI works fine (except for the "JBD: Spotted dirty metadata buffer" in dmesg) but upon reboot, it fails to come up. Before rebooting it though, executing this seems to fix it (ignoring the warnings): fsck -v /dev/xvda1 But still, have you come up with what is causing this? Thanks. |
That's good info! Hm, I wonder what needs repairing though. Does |
On second I am not exactly sure what you mean. Does it only appear on first boot or everytime? |
I've seen it happen too, but after a reboot. Anecdotally I've heard this just happens on Amazon. It probably wouldn't hurt to run e2fsck -f on the newly formatted partition after unmounting. |
So i commented out the case block at the bottom of tasks/50-ec2-scripts where it wants to install the change-root-uuid init.d script, and i don't see this dirty metadata buffer warning anymore. is there some reason you want to change the uuid of the root partition to a random uuid? |
Yes. Hm, so this might actually be tune2fs itself saying this? I guess changing the UUID of the root volume on boot is not a healthy thing to do, but I'm not sure how to go about that case otherwise. |
maybe instead of changing the uuid of the root volume at first bootup, you can use the 'nouuid' flag with your mount command when attaching ebs volumes with duplicate uuid's during troubleshooting. i am not sure if/how this work as i have never done it. |
Yes of course I can do that. I am thinking of all the poor folks out there who will have to google their way around a wonky error message. That's why I made this script in the first place, you really have to know unix before thinking of doing this. |
How about you come at this problem side ways. If the JBD code is really the problem. Disable the journal on ext4 after you umount the final volume and before snapshotting using: tune2fs -O ^has_journal On first boot,
|
This is certainly a solution, but it feels very hack-y and could mess with the stability of the image. If there is no other way, I would rather disable the script and add a hint in the yet-to-be-written documentation. |
Somethings amiss on bootup. dmesg says:
The text was updated successfully, but these errors were encountered: