Debian Bug report logs - #721857
btrfs-tools should include /sbin/btrfs-zero-log in initramfs

version graph

Package: btrfs-tools; Maintainer for btrfs-tools is Dimitri John Ledkov <xnox@debian.org>; Source for btrfs-tools is src:btrfs-progs (PTS, buildd, popcon).

Reported by: Marc MERLIN <marc_soft@merlins.org>

Date: Wed, 4 Sep 2013 17:39:01 UTC

Severity: normal

Found in version btrfs-tools/0.19+20130315-5

Fixed in version btrfs-tools/0.19+20130705-2

Done: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dmitrijs Ledkovs <xnox@debian.org>:
Bug#721857; Package btrfs-tools. (Wed, 04 Sep 2013 17:39:06 GMT) (full text, mbox, link).


Acknowledgement sent to Marc MERLIN <marc_soft@merlins.org>:
New Bug report received and forwarded. Copy sent to Dmitrijs Ledkovs <xnox@debian.org>. (Wed, 04 Sep 2013 17:39:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Marc MERLIN <marc_soft@merlins.org>
To: submit@bugs.debian.org
Subject: btrfs-tools should include /sbin/btrfs-zero-log in initramfs
Date: Wed, 4 Sep 2013 10:03:33 -0700
Package: btrfs-tools
Version: 0.19+20130315-5

When a btrfs filesystem is unmounted uncleanly, it can get in a situation
where it is not possible to mount it anymore, until you run btrfs-zero-log
to clean the log data that the kernel cannot process on its own and will not 
discard the log because it doesn't know that't the right thing to do.

In my case, I have an SSD that unfortunatley locks up on occasion and
triggers this state. At that point, the way to recover is to run 
btrfs-zero-log /dev/mapper/cryptroot
which I cannot do from the initramfs unless it's present in there.

I modified
/usr/share/initramfs-tools/hooks/btrfs
to copy_exec /sbin/btrfs-zero-log

I'm good, but suggesting that you do this to the official package as a handy
rescue other people who might otherwise end up with an umountable filesystem
and no way to self-rescue without boot media.

Note that the admin would still need to know to run that command, Im' not
suggesting to run it automatically if the rootfs somehow failed to mount.

Thanks,
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/  



Information forwarded to debian-bugs-dist@lists.debian.org, Dmitrijs Ledkovs <xnox@debian.org>:
Bug#721857; Package btrfs-tools. (Mon, 16 Sep 2013 13:15:09 GMT) (full text, mbox, link).


Acknowledgement sent to Jogi Hofmüller <jogi@mur.at>:
Extra info received and forwarded to list. Copy sent to Dmitrijs Ledkovs <xnox@debian.org>. (Mon, 16 Sep 2013 13:15:10 GMT) (full text, mbox, link).


Message #10 received at 721857@bugs.debian.org (full text, mbox, reply):

From: Jogi Hofmüller <jogi@mur.at>
To: 721857@bugs.debian.org
Subject: Re: btrfs-tools should include /sbin/btrfs-zero-log in initramfs
Date: Mon, 16 Sep 2013 14:54:28 +0200
[Message part 1 (text/plain, inline)]
fwiw

I fully agree since I find myself in the described state now.

Regards!
-- 
j.hofmüller                                http://users.mur.at/thesix/

[signature.asc (application/pgp-signature, attachment)]

Reply sent to Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>:
You have taken responsibility. (Mon, 16 Sep 2013 15:21:12 GMT) (full text, mbox, link).


Notification sent to Marc MERLIN <marc_soft@merlins.org>:
Bug acknowledged by developer. (Mon, 16 Sep 2013 15:21:12 GMT) (full text, mbox, link).


Message #15 received at 721857-close@bugs.debian.org (full text, mbox, reply):

From: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
To: 721857-close@bugs.debian.org
Subject: Bug#721857: fixed in btrfs-tools 0.19+20130705-2
Date: Mon, 16 Sep 2013 15:18:10 +0000
Source: btrfs-tools
Source-Version: 0.19+20130705-2

We believe that the bug you reported is fixed in the latest version of
btrfs-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 721857@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com> (supplier of updated btrfs-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 16 Sep 2013 14:54:54 +0100
Source: btrfs-tools
Binary: btrfs-tools btrfs-tools-udeb btrfs-tools-dbg
Architecture: amd64 source
Version: 0.19+20130705-2
Distribution: unstable
Urgency: low
Maintainer: Dmitrijs Ledkovs <xnox@debian.org>
Changed-By: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Closes: 721857
Description: 
 btrfs-tools - Checksumming Copy on Write Filesystem utilities
 btrfs-tools-dbg - Checksumming Copy on Write Filesystem utilities (debug)
 btrfs-tools-udeb - Checksumming Copy on Write Filesystem utilities (udeb) (udeb)
Changes: 
 btrfs-tools (0.19+20130705-2) unstable; urgency=low
 .
   * Copy btrfs-zero-log into initramfs, useful for recovering (Closes: #721857)
Checksums-Sha1: 
 be354331b5e6bba10b7e13e528199df02ed10fb5 314158 btrfs-tools_0.19+20130705-2_amd64.deb
 e2514eb375adb50ebf46575607e4f742e13917a8 158236 btrfs-tools-udeb_0.19+20130705-2_amd64.udeb
 8482f1aa663d02fffd726ffc3c83451a8f7b3b9c 3317628 btrfs-tools-dbg_0.19+20130705-2_amd64.deb
 9429bce7ed5694af23215aa194dc5d6d028f73e9 2033 btrfs-tools_0.19+20130705-2.dsc
 d98199548508cb39002ff7798e01aaeaf9e74e8a 10040 btrfs-tools_0.19+20130705-2.debian.tar.xz
Checksums-Sha256: 
 2ee6084853961779fa35d15cc3fe96ab04e2a7e55b1748f10561ae9048a75ad5 314158 btrfs-tools_0.19+20130705-2_amd64.deb
 c3d29cf9701674807df573cfe3fad2c573237d66525db8909f2d31d1132ff9c1 158236 btrfs-tools-udeb_0.19+20130705-2_amd64.udeb
 bd76f413490c70ec879575aa668c64a3aa8a659db730cf99bc016fb3304f1d13 3317628 btrfs-tools-dbg_0.19+20130705-2_amd64.deb
 5d69e15c0ced2af6f4befd5fe8a722de3faa64691e0b2f4d3792fe5e3780d91c 2033 btrfs-tools_0.19+20130705-2.dsc
 563e44fdf8b78f9ba2c91c5d35c14b0546b86b7c16661ffb248a5c51426f0840 10040 btrfs-tools_0.19+20130705-2.debian.tar.xz
Files: 
 1318033dd28f1268bde3ae2074975e9d 314158 admin optional btrfs-tools_0.19+20130705-2_amd64.deb
 9bc3a763eb38186c302a9a2e69d42e44 158236 debian-installer optional btrfs-tools-udeb_0.19+20130705-2_amd64.udeb
 face99c74a4227dd21a7e562cde79a6d 3317628 debug extra btrfs-tools-dbg_0.19+20130705-2_amd64.deb
 1a9ff37f074b713afb646aae3efed069 2033 admin optional btrfs-tools_0.19+20130705-2.dsc
 acf2800fcb6411219291ecacfc35355e 10040 admin optional btrfs-tools_0.19+20130705-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBCAAGBQJSNw+QAAoJEIh7YGGLPBauUbcQALBix/XXM3/lbSHLlZfJEFHO
iE+B/9fXcSl2gl23UGuLTX9N/2aQ8xSChcDA+SQs7bewbUXh6w0489eliWzSk0wV
1DqlcbnlIe4AvLpvUCYkcvZvDDOMR5lt/joDQ/g/zioCHns8iOiLzNnZGHEM8QMQ
dx8dTWPQAVYVZGhtLWh+qPsgQvxoq5tJIM9kWVB8XqzGM1as+A2cBecGUyPHNxyj
GK900uKndC8Q4oMEezIIGhi4AB3thigukY5QV+lbgTxqlizm/RYtZCaGkJkM9IgE
gGtNDK3gx8Hxw8vObEVmn99tb/pt/gkdUcKaRIEw9ckUJs1An3EpjBA/5vseeXgZ
LD3Yl2aaz0bJqt3gnQeZY2vst1GFQmQpSb+0su2YXRiZnlFat5p7LKj5lnltGYOJ
+I1Ep2JNJ0jf+ZoKsHytQgF+nDGmWNVx6AyvZgttCoxlqStDSCP2G9c6eVaWxVaV
DoLu8Sc67e+SCEhl/ks0mIObqzH5af92c6YxyDWWDIARYszKBIMuR/EIZCeWKffb
+Wfbd7CMolnkMt8LXSSh6RsRElpxBj3gj8rUULmlAO+aBO6R/dHoIuQtuDaNDsf1
sUer6/ICnMmbh7WTOpWs+X+aD2Qc3ytrnVlHwIr5A66EHfId5WTiv59abpbIPPOW
agFscL26i6WNVhkuRpD7
=Mahj
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 25 Oct 2013 07:29:59 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jul 24 04:43:48 2020; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.