K
K
Konstantin Frolov2021-02-19 01:51:56
linux
Konstantin Frolov, 2021-02-19 01:51:56

How to make an undying linux-file file cleaner?

There is a simple machine with windows 7, the task of which is simply to distribute file access to a peer-to-peer network.

Every time, after turning off the electricity, windows enters the recovery mode, and since. there is no monitor, then the work stops until a person arrives and cancels the restoration.

I would like to make a file dump on linux, but all my experience shows that linux can also fall into recovery.

I want to install the system, configure everything once, and what should I do next so that the system does not require any actions from users in the event of a power failure?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rPman, 2021-02-19
@rPman

It's cheaper to solve the problem in hardware, put ups, connect it via usb / com to a computer and set up sleep for a power outage for longer than a minute. In order to restore everything after a failure, it is necessary to block some kind of watchdog from a third-party device that will wake up the server via WoL when power appears, it is logical to start ups control on this device and not the file server itself, some kind of raspberry or a cheap mitx board with a processor consuming 5 watts.
Constant power outages will finish off any system, including hardware (hdd do not like this)
If you answer on the topic - configure linux to work from a ram / disk image (look how it's done in livecd, there is a ro squashfs image compressed, and the necessary records are wrapped through which then type aufs in tmpfs).
Place the file dump itself on btrfs / zfs / xfs (the key here is cow), they are easier to endure interruption.
About performance and reliability - when using ext3..4, you can place a log on an ssd disk (there you need 512MB at most), it will greatly speed up writing to hdd without having to put nas into writeback mode (it also improves but drops reliability when power is lost).
ps about windows, in the properties of the system disk (it is recommended to place the temp directories on the ram disk) and file cleaners, disable write caching, this will guarantee that data will not be lost during a power outage at the cost of performance degradation (the write cache of the hdd itself will work, so not everything is like that bad).

S
Saboteur, 2021-02-19
@saboteur_kiev

uninterruptible and automatic shutdown on signal

D
Drno, 2021-02-19
@Drno

In Windows, you can turn off automatic recovery in general
; Linux will fall into recovery only if system files are damaged

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question