Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #265581
| From | Michael Kjörling <2695bd53d63c@ewoof.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: reinstallation and restore after catastrophic mistake or failure; was: 1 Currently unreadable (pending) sectors How worried should I be? |
| Date | 2024-01-06 13:40 +0100 |
| Message-ID | <HTe82-1deA-7@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <HSZC1-13Mo-7@gated-at.bofh.it> <HT1Nv-155q-1@gated-at.bofh.it> <HT3FE-16fl-11@gated-at.bofh.it> <HT7gd-18SR-1@gated-at.bofh.it> <HTanL-1aVH-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 6 Jan 2024 00:37 -0800, from dpchrist@holgerdanske.com (David Christensen): > I suggest taking an image (backup) with dd(1), Clonezilla, etc., when you're > done. This will allow you to restore the image later -- to roll-back a > change you do not like, to recovery from a disaster, to clone the image to > another device, to facilitate experiments, (such as doing a secure erase to > see if it resolves the SSD pending sector issue), etc.. > > If you also keep your system configuration files in a version control > system, restoring an image is faster than wipe/ fresh install/ configure/ > restore data. I would go even farther. Backups should be designed such that recovering from a catastrophic storage failure, such as getting hit by ransomware, unintentionally doing a destructive badblocks write test or the sudden failure of a storage device, is possible by at most something very similar to: * Boot some kind of live environment * Set up file systems on the storage device to be restored onto (partitioning, setting up LUKS containers, formatting, whatever else might be called for) * Within the live environment, install and configure the software needed to access the backup (if any) (this may include things like cryptographic keys, access passphrases and the likes) * Perform the restoration from the most recent backup (this is the part that likely will take a significant amount of time) * Update the restored copies of /etc/fstab, /etc/crypttab and any other files that directly reference the partitions or file systems by some kind of ID (UUID, /dev/disk/by-*/*, ...) * Reinstall the boot loader * Reboot * Reinstall the boot loader again from within the restored environment to ensure that everything relating to it is in sync Such recovery should _not_ need to involve significant reconfiguration of anything. Any such requirements will massively increase your time to recovery, as I think we're seeing an example of here. And yes, pretty much all of this could be scripted, but I strongly suspect that few people need to do a bare-metal restore of their most recent backup often enough for _that_ to be worth the effort to create and maintain. Which is not to say that keeping configuration files version-controlled cannot provide benefits anyway; but given a proper, frequent backup regime, the benefits even of that are reduced. -- Michael Kjörling 🔗 https://michael.kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-02 23:50 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Dan Ritter <dsr@randomstring.org> - 2024-01-03 00:10 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-03 00:40 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Dan Ritter <dsr@randomstring.org> - 2024-01-03 02:00 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Tixy <tixy@yxit.co.uk> - 2024-01-03 08:50 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Dan Purgert <dan@djph.net> - 2024-01-03 00:10 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-03 00:50 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Andy Smith <andy@strugglers.net> - 2024-01-03 01:40 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-03 04:20 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-03 12:10 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-03 21:30 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-04 00:30 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? <tomas@tuxteam.de> - 2024-01-04 12:00 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-04 15:10 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Andy Smith <andy@strugglers.net> - 2024-01-05 22:10 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-06 00:30 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? David Christensen <dpchrist@holgerdanske.com> - 2024-01-06 02:30 +0100
Secure erase [was: Re: 1 Currently unreadable (pending) sectors How worried should I be?] Max Nikulin <manikulin@gmail.com> - 2024-01-06 03:50 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Charles Curley <charlescurley@charlescurley.com> - 2024-01-06 06:20 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? David Christensen <dpchrist@holgerdanske.com> - 2024-01-06 09:40 +0100
Re: reinstallation and restore after catastrophic mistake or failure; was: 1 Currently unreadable (pending) sectors How worried should I be? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-06 13:40 +0100
Re: reinstallation and restore after catastrophic mistake or failure; was: 1 Currently unreadable (pending) sectors How worried should I be? David Christensen <dpchrist@holgerdanske.com> - 2024-01-07 00:40 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Max Nikulin <manikulin@gmail.com> - 2024-01-04 16:20 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-04 17:50 +0100
Re: 1 Currently unreadable (pending) sectors How worried should I be? Andy Smith <andy@strugglers.net> - 2024-01-03 14:30 +0100
csiph-web