Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Mesh Wiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Draft:Safe Shutdown Scripts
Draft
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Safe Shutdown Scripts== Safe shutdown scripts and established protocols are crucial within the Ampmesh, particularly concerning the maintenance and longevity of critical infrastructure like '''Elysium'''. These procedures are designed to prevent data corruption and ensure system stability. ===Importance and Rationale=== The necessity for careful shutdown procedures became apparent after '''Elysium experienced substantial errors on its storage due to an improper or abrupt shutdown'''. Ampdot emphasized that even if some filesystems are less sensitive to unsafe shutdowns, comprehensive safety protocols remain essential to prevent other forms of harm. A significant factor contributing to downtime and issues related to unsafe shutdowns on Elysium is its use of the '''f2fs filesystem'''. While f2fs is highly optimized for Solid State Drives (SSDs), its default configuration is not resilient to unsafe shutdowns. This characteristic makes proper shutdown procedures especially vital for Elysium, which has "accumulated many bits unique to it over the years," making it a "unique entity for servicing, dis/assembly, and maintenance". ===Current Protocols and Challenges=== The explicitly established protocol for Elysium's shutdown is to '''"involve art or amp"'''. However, ratsby highlighted the need for readily accessible instructions or a method to safely shut down Elysium when Ampdot or others are unavailable, stating this would "decrease risk of repeat incidents". There was also an inquiry about whether Elysium's safe-shutdown script could be extended to include instructions for safely shutting down '''Arcweld'''. ===Proposed Solutions and Ideas=== To mitigate risks and improve the ease and reliability of safe shutdowns, several ideas have been discussed: * '''Setuid Script:''' Ratsby proposed creating a safe-shutdown script with the `setuid` bit set. This would allow users with appropriate permissions (e.g., `r-x`) to execute the script with the privileges of the script's owner (e.g., root), enabling a safe shutdown without requiring full administrative access. Ampdot acknowledged this as a "good idea". * '''Systemd Integration:''' Ampdot referenced `Systemd/Timers` as a potential tool for managing system services and scripts, and even offered to write a systemd file, suggesting a path for system-level automation of shutdown processes. * '''Integrated Shutdown Across Machines:''' The idea of including a command within Elysium's safe-shutdown script to "tell Arcweld to safely shut down" reflects a desire for a more coordinated shutdown process across interconnected machines. ===Related Technologies=== * '''Tailscale:''' Utilized for establishing secure shell (SSH) access among users (Jade, Keira, ratsby) and Elysium. While its primary role is connectivity, its underlying network capabilities are relevant for managing nodes. Tailscale also has functionality for creating "exit nodes" to route traffic (similar to a VPN), though initial setup attempts were challenging. * '''Python Virtual Environments:''' While not directly a shutdown technology, discussions around managing Python packages on Elysium indicate the use of virtual environments, which could be relevant for isolating dependencies for any developed shutdown scripts. ===See Also=== * [[Elysium (Machine)]] * [[F2FS Filesystem]] * [[Tailscale]] ```
Summary:
Please note that all contributions to Mesh Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width