Questions tagged [failure-resistance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
44 views

Bash: Run Command (with a specific pattern) only if another Command (with another specific pattern) has failed

I have a shell script that creates a function (in a bashscript file which is sourced by .bashrc) for each Markdown files to open it in the editor. Example: ls /home/nikhil/Notes/Studies Physics.md ...
0
votes
1answer
17 views

backup boot / root in case primary fails to boot

I have these mini-servers based on raspberry pi. Lots of them. But currently we have relatively frequent malfunctions because for some reason or another the filesystem on the SD card gets corrupted ...
2
votes
0answers
41 views

Make Linux reboot when it runs out of PID

I want to configure a headless server to automatically reboot under catastrophic circumstances. Right now I have configured to make it panic when running out of RAM, and reboot automatically on kernel ...
11
votes
1answer
2k views

Does BTRFS guarantee data consistency on power outages?

As ZFS states exclusively, ZFS is claimed to be invulnerable ZFS accepts that it might be vulnerable to power failures. I couldn't find such a statement for BTRFS. Is it (or designed/planned to be) ...
4
votes
3answers
406 views

Is it “broken” to replace an existing file without fsync()?

In Linux's mount(2) man page, I noticed the following excerpt: Many broken applications don't use fsync() when replacing existing files via patterns such as fd = open("foo.new")/write(fd,...)/...
3
votes
1answer
111 views

Where/when are exit statuses returned for background jobs in bash?

I'm writing a bash script which has many parts, but I want built in resiliency and parallel processing as much as possible. An example is below: while true do var=$(curl someurl) || continue var2=...
13
votes
3answers
3k views

Can the filesystem become inconsistent if interrupted when moving a file?

I have two folders on the same partition (EXT2) If I mv folder1/file folder2 and some interruption occur (e.g. power failure) could the file system ever end up being inconsistent? Isn't the mv ...
40
votes
5answers
20k views

Corruption-proof SD card filesystem for embedded Linux?

Recently we had a rather unpleasant situation with our customer - Raspberry Pi based "kiosk" used to display remote sensing data (nothing more fancy than a kiosk mode browser displaying a self-...
5
votes
3answers
11k views

Where does LVM store data?

My questions are similar to this thread Does LVM increase the risk of data loss?, however, I couldn't find a satisfying answer. So the question is, where does LVM store data/files, when I have a ...
5
votes
1answer
736 views

To sync /var or not?

It seems in a hard crash, in particular failure of a UPS to keep a system running, that some of the contents of logs get lost due to file system caching. As an experiment, I tried mounting the /var ...