Questions tagged [failure-resistance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
1answer
836 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
248 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
107 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
2k 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 ...
35
votes
5answers
18k 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
10k 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
714 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 ...