Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #86883
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Denis Sbragion <d.sbragion@neomerica.it> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#778849: Support restoring initrd on shutdown and pivoting into it |
| Date | Mon, 14 Apr 2025 10:00:01 +0200 |
| Message-ID | <KBmTv-dpzm-1@gated-at.bofh.it> (permalink) |
| References | <oVYjo-80O-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Mon Apr 14 07:54:07 2025 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -4 |
| Reply-To | Denis Sbragion <d.sbragion@neomerica.it>, 778849@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian kernel team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 778849 |
| X-Debian-Pr-Package | initramfs-tools |
| X-Debian-Pr-Source | initramfs-tools |
| User-Agent | Horde Application Framework 5 |
| Content-Type | text/plain; charset=utf-8; format=flowed; DelSp=Yes |
| MIME-Version | 1.0 |
| Content-Disposition | inline |
| Old-X-Envelope-From | <denis@neomerica.lcl> |
| X-Greylist | delayed 1814 seconds by postgrey-1.36 at buxtehude; Mon, 14 Apr 2025 07:50:02 UTC |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1899147 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 43 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Mon, 14 Apr 2025 09:19:44 +0200 |
| X-Original-Message-ID | <20250414091944.Horde.MJPP7OooSHJdfQwbgDFI5Nb@www.neomerica.lcl> |
| X-Original-References | <20150220155912.GA2024@wunner.de> |
| Xref | csiph.com linux.debian.bugs.dist:1241926 linux.debian.kernel:86883 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hello, I sneak in just to report another situation where this feature would be useful: root filesystem placed on an MD Raid array with an external write-intent bitmap. To be effective the write-intent bitmap file needs to be placed on an external partition outside of the raid array. This creates a chicken and egg problem where the raid array needs the partition where the file is placed which in turn needs the root partition to be mounted. Haven't tried it, but this probably could be solved within initramfs by mounting the external partition somewhere under /run before assembling the raid array. This needs to be unwinded at shutdown and I see no way to do it properly outside of initramfs, as the unwinding would require the following steps: - Unmount root - Stop the raid array, so that the bitmap file is no longer used - Unmount the write-intent bitmap partition Another solution might consider the following steps: - Mount root read only, so no further writes could happen - Remove the bitmap file from the raid array - Unmount the write-intent bitmap partition May be this could be done outside of initramfs but I'm not sure if the bitmap file would be used again after reboot. If I find some spare time I'll try to experiment using some VM. FYI, with the root filesystem on an hybrid NVME/HDD Raid 1 I'm experiencing the same NVME "unsafe_shutdowns" problem reported by Joseph Carter. Not unexpected considering that this situation is pretty similar. Hope it helps. Bye, -- Denis Sbragion
Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread
Bug#778849: Support restoring initrd on shutdown and pivoting into it Denis Sbragion <d.sbragion@neomerica.it> - 2025-04-14 10:00 +0200
csiph-web