Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #50704 > unrolled thread

Bug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail

Started by"Robert Schlabbach" <Robert.Schlabbach@gmx.net>
First post2015-09-03 12:30 +0200
Last post2015-12-24 20:00 +0100
Articles 5 — 4 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2015-09-03 12:30 +0200
    Bug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail Martin Michlmayr <tbm@cyrius.com> - 2015-12-10 01:20 +0100
      Bug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail Ian Campbell <ijc@hellion.org.uk> - 2015-12-10 09:40 +0100
        Bug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2015-12-24 11:10 +0100
    Bug#797880: marked as done (QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood  "loses" one hard disk from the RAID while flashing initramfs, causing  read-only remount and dpkg to fail) owner@bugs.debian.org (Debian Bug Tracking System) - 2015-12-24 20:00 +0100

#50704 — Bug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail

From"Robert Schlabbach" <Robert.Schlabbach@gmx.net>
Date2015-09-03 12:30 +0200
SubjectBug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail
Message-ID<q4zWh-NK-15@gated-at.bofh.it>
Package: linux-image-4.1.0-0.bpo.1-kirkwood
Version: 4.1.3-1~bpo8+1

Bad things happen when flash-kernel (3.45) flashes the initramfs with this Linux kernel on my QNAP TS-219P II:

1. The NAS is equipped with 2 HDDs 3TB in size in RAID 1 mode (mirroring).
2. After the flashing, dpkg errors out stating it is unable to write to a file under the /var tree.
3. cat /proc/mdstat reveals that the partitions of HDD /dev/sdb are marked with [F].
4. As a result, the RAID partitions have been remounted as read-only, including the root partitions, rendering the system inoperable.
5. Regular shutdown is not possible at this point. The NAS has to be force-powered off by holding the power button on the device for several seconds.
6. After reboot, dpkg is in an intermediate state. Following the advice to use "dpkg --configure -a" results in the flashing operation being carried out again with the same result, i.e. the user is caught in a loop.
7. Using "dpkg --configure" instead allows other package install/remove operations.

Removing the Linux kernel 4.1, reverting to Linux kernel 3.16.7-ckt11-1+deb8u3 from debian jessie fixes the problem. In Linux kernel 3.16.7, the same version of flash-kernel (3.45) works without the problems mentioned above. So the culprit appears not to be the flash-kernel package, but rather the Linux kernel 4.1 package.

Best Regards,
Robert Schlabbach

[toc] | [next] | [standalone]


#51652

FromMartin Michlmayr <tbm@cyrius.com>
Date2015-12-10 01:20 +0100
Message-ID<qDX7I-73a-23@gated-at.bofh.it>
In reply to#50704
* Robert Schlabbach <Robert.Schlabbach@gmx.net> [2015-09-03 12:19]:
> Package: linux-image-4.1.0-0.bpo.1-kirkwood
> Version: 4.1.3-1~bpo8+1
> 
> Bad things happen when flash-kernel (3.45) flashes the initramfs with this Linux kernel on my QNAP TS-219P II:

Ian Campbell added a workaround to flash-kernel 3.52 for this kernel
issue.

Can you try if 3.52 works for you?  If so, I guess it makes sense to
upload 3.52 to backports.

-- 
Martin Michlmayr
http://www.cyrius.com/

[toc] | [prev] | [next] | [standalone]


#51672

FromIan Campbell <ijc@hellion.org.uk>
Date2015-12-10 09:40 +0100
Message-ID<qE4Vz-3E8-5@gated-at.bofh.it>
In reply to#51652
On Wed, 2015-12-09 at 16:02 -0800, Martin Michlmayr wrote:
> * Robert Schlabbach <Robert.Schlabbach@gmx.net> [2015-09-03 12:19]:
> > Package: linux-image-4.1.0-0.bpo.1-kirkwood
> > Version: 4.1.3-1~bpo8+1
> > 
> > Bad things happen when flash-kernel (3.45) flashes the initramfs
> with this Linux kernel on my QNAP TS-219P II:
> 
> Ian Campbell added a workaround to flash-kernel 3.52 for this kernel
> issue.
> 
> Can you try if 3.52 works for you?  If so, I guess it makes sense to
> upload 3.52 to backports.

I've just uploaded 3.52~bpo8-1 (pending a successful dinstall run).

Cheers,
Ian.

[toc] | [prev] | [next] | [standalone]


#51865

From"Robert Schlabbach" <Robert.Schlabbach@gmx.net>
Date2015-12-24 11:10 +0100
Message-ID<qJb0m-5q6-13@gated-at.bofh.it>
In reply to#51672
On Thu, 2015-12-10 at 09:34, Ian Campbell wrote:
> On Wed, 2015-12-09 at 16:02 -0800, Martin Michlmayr wrote:
> > * Robert Schlabbach <Robert.Schlabbach@gmx.net> [2015-09-03 12:19]:
> > > Package: linux-image-4.1.0-0.bpo.1-kirkwood
> > > Version: 4.1.3-1~bpo8+1
> > >
> > > Bad things happen when flash-kernel (3.45) flashes the initramfs
> > with this Linux kernel on my QNAP TS-219P II:
> >
> > Ian Campbell added a workaround to flash-kernel 3.52 for this kernel
> > issue.
> >
> > Can you try if 3.52 works for you? If so, I guess it makes sense to
> > upload 3.52 to backports.
> 
> I've just uploaded 3.52~bpo8-1 (pending a successful dinstall run).

I've just updated from kernel 4.2.6-1 to kernel 4.2.6-3 using this new
version of flash-kernel, and am happy to report that this indeed fixed
the problem for me. The update was successfully completed and the RAID
was still fully operational afterwards.

Best Regards,
-Robert Schlabbach

[toc] | [prev] | [next] | [standalone]


#51870 — Bug#797880: marked as done (QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail)

Fromowner@bugs.debian.org (Debian Bug Tracking System)
Date2015-12-24 20:00 +0100
SubjectBug#797880: marked as done (QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail)
Message-ID<qJjhf-1Rs-11@gated-at.bofh.it>
In reply to#50704

[Multipart message — attachments visible in raw view] — view raw

Your message dated Thu, 24 Dec 2015 10:47:02 -0800
with message-id <20151224184702.GA16394@jirafa.cyrius.com>
and subject line Re: Bug#797880: QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail
has caused the Debian Bug report #797880,
regarding QNAP TS-219P II with linux-image-4.1.0-0.bpo.1-kirkwood "loses" one hard disk from the RAID while flashing initramfs, causing read-only remount and dpkg to fail
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
797880: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797880
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web