=============================== Guardian Node Operations Manual =============================== ------------------------------------------------------------------- Deployment, Granular Pinning, and Maintenance of MxOS Network Nodes ------------------------------------------------------------------- :Authors: - Rénich Bon Ćirić - MxOS Foundation Infrastructure Team :Organization: Fundación MxOS, A.C. :Date: October 2026 :Status: Active Standard Purpose and Operational Philosophy ================================== The MxOS Foundation Community Mirror Network replaces centralized distribution models with a peer-to-peer P2P infrastructure built on the InterPlanetary File System IPFS. Under this paradigm, any participant can act as a **guardian node**, locally custodying and sharing the packages they choose to back. The ecosystem operates through two public domains with distinct roles: * **ipfs.mx-os.mx, Use Us as Your IPFS Gateway:** Public and neutral gateway on HOBOPS.IO enabling any user or developer to resolve CIDs or IPNS records without running a local daemon. * **mirrors.mx-os.mx, The MxOS Foundation Free Software Mirror:** Official portal and curated package distribution catalog, release notes, pinning guides, and network observatory. Data *pinning* guarantees that blocks remain resident in the guardian node's local storage, ready for delivery across both the local area network and the global swarm to any requesting client. System Requirements =================== * Linux operating system: Fedora 43, 44, 45, Rawhide, or CentOS Stream 10. * Local administrative privileges via ``sudo`` or Btrfs mount permissions with ``user_subvol_rm_allowed``. * Internet connectivity and port 4001 TCP/UDP accessible for inbound libp2p swarm traffic. * Disk storage matching the selected modules, ranging from 3.5 GB for installation media up to 450 GB for the full catalog. Step 1: Installing Kubo ======================= Kubo is packaged and distributed for Fedora and CentOS Stream through the official Copr repository: .. code-block:: bash # Habilitar repositorio Copr e instalar el demonio Kubo sudo dnf copr enable renich/kubo sudo dnf install kubo Step 2: Datastore Initialization and User Service ================================================= Per MxOS Foundation security guidelines, the Kubo daemon must run under an unprivileged rootless user account: .. code-block:: bash # Inicializar el almacén local en ~/.ipfs ipfs init # Habilitar e iniciar la unidad de servicio persistente de systemd systemctl --user --now enable ipfs.service # Comprobar el estado del demonio systemctl --user status ipfs.service Step 3: Firewall Configuration ============================== To allow bidirectional block transfers over Bitswap, open the swarm port in firewalld: .. code-block:: bash sudo firewall-cmd --permanent --add-port=4001/tcp sudo firewall-cmd --permanent --add-port=4001/udp sudo firewall-cmd --reload Step 4: Direct DoH Resolution Configuration for DNSLink ======================================================= Local and corporate routers frequently cache DNSLink TXT records according to their internal TTLs. To ensure your node resolves new CIDs the exact moment they are published, configure Kubo's internal resolver to query Cloudflare DoH directly for the ``mx-os.mx`` zone: .. code-block:: bash # Configurar resolvedor DoH directo para el dominio canónico ipfs config --json DNS.Resolvers '{"mx-os.mx.": "https://cloudflare-dns.com/dns-query", ".": "auto"}' # Reiniciar el demonio para aplicar el cambio systemctl --user restart ipfs.service Step 5: Inspecting Available Modules with ipfs ls ================================================= Before pinning, any user or operator can list the structure and modules published in the master catalog in real time using the native ``ipfs ls`` command: .. code-block:: bash # Explorar la raíz del catálogo comunitario ipfs ls /ipns/mirrors.mx-os.mx # Listar versiones de Fedora disponibles (43, 44, 45) ipfs ls /ipns/mirrors.mx-os.mx/fedora/releases # Listar medios de instalación ISO ipfs ls /ipns/mirrors.mx-os.mx/fedora/iso # Listar CentOS Stream 10 ipfs ls /ipns/mirrors.mx-os.mx/centos-stream/10-stream Step 6: Module Selection and Granular Pinning ============================================= The catalog is organized modularly to fit the available disk quota of each installation: .. list-table:: :header-rows: 1 :widths: 28 42 15 15 * - Module - Pinning Command - Network Size - Estimated Disk Space * - **Fedora 43 ISO Images** - ``ipfs pin add /ipns/mirrors.mx-os.mx/fedora/iso/43`` - 1.2G - ~3.5 GB * - **Fedora 44 ISO Images** - ``ipfs pin add /ipns/mirrors.mx-os.mx/fedora/iso/44`` - 0B - ~3.5 GB * - **Fedora 45 ISO Images** - ``ipfs pin add /ipns/mirrors.mx-os.mx/fedora/iso/45`` - 0B - ~3.5 GB * - **All ISO Images 43, 44, 45** - ``ipfs pin add /ipns/mirrors.mx-os.mx/fedora/iso`` - 1.2G - ~10 GB * - **CentOS 10 BaseOS** - ``ipfs pin add /ipns/mirrors.mx-os.mx/centos-stream/10-stream/BaseOS`` - 7.0G - ~15 GB * - **CentOS 10 AppStream** - ``ipfs pin add /ipns/mirrors.mx-os.mx/centos-stream/10-stream/AppStream`` - 29G - ~45 GB * - **CentOS 10 CRB CodeReady Linux Builder** - ``ipfs pin add /ipns/mirrors.mx-os.mx/centos-stream/10-stream/CRB`` - 26G - ~30 GB * - **CentOS 10 HighAvailability** - ``ipfs pin add /ipns/mirrors.mx-os.mx/centos-stream/10-stream/HighAvailability`` - 166M - ~500 MB * - **CentOS 10 NFV and RT Networking and Real-Time** - ``ipfs pin add /ipns/mirrors.mx-os.mx/centos-stream/10-stream/RT`` - 4.2G - ~5.0 GB * - **CentOS 10 SIG Extras extras-common** - ``ipfs pin add /ipns/mirrors.mx-os.mx/centos-stream/SIGs/10-stream/extras`` - 948K - ~50 MB * - **Full CentOS 10 Stream** - ``ipfs pin add /ipns/mirrors.mx-os.mx/centos-stream`` - 67G - ~95 GB * - **Fedora 43 Everything Packages** - ``ipfs pin add /ipns/mirrors.mx-os.mx/fedora/releases/43/Everything`` - 118G - ~125 GB * - **Fedora 44 Everything Packages** - ``ipfs pin add /ipns/mirrors.mx-os.mx/fedora/releases/44/Everything`` - 0B - ~125 GB * - **Fedora 45 Everything Development Packages** - ``ipfs pin add /ipns/mirrors.mx-os.mx/fedora/releases/45/Everything`` - 0B - ~125 GB * - **Complete Canonical Catalog** - ``ipfs pin add /ipns/mirrors.mx-os.mx`` - 186G - ~450 GB Step 7: Automation, Btrfs, and Storage Maintenance ================================================== Upstream repositories are updated continuously. To manage the lifecycle and optimize storage: #. **Updating pins:** Periodically re-run the ``ipfs pin add`` command on the canonical IPNS path. Kubo will download only modified or newly added blocks. #. **Module management with Btrfs and subvolumes:** On nodes with Btrfs-formatted storage, structuring each module as an independent subvolume is recommended: * **Atomic and instantaneous deletion:** To delete an entire module when freeing disk space, run ``btrfs subvolume delete `` or ``./bin/mxos-btrfs.bash delete ``. The operation is instantaneous and avoids disk thrashing from unlinking tens of thousands of individual files. * **Zero-cost CoW snapshots:** Create read-only backup snapshots prior to synchronization using ``btrfs subvolume snapshot -r``. * **Rootless operation:** Add the ``user_subvol_rm_allowed`` option in ``/etc/fstab`` for the IPFS mount point, allowing subvolume management without requiring ``sudo``. #. **Garbage collection:** To purge unlinked blocks orphaned after an update: .. code-block:: bash ipfs repo gc Explicitly pinned blocks are fully protected from garbage collection. #. **Four-times-daily synchronization timer:** On master synchronization nodes, updates are scheduled four times a day via systemd timers: .. code-block:: ini # ~/.config/systemd/user/mxos-mirror.timer [Unit] Description=Temporizador de sincronización periódica de espejos MxOS (4 veces al día) [Timer] OnCalendar=*-*-* 00,06,12,18:00:00 RandomizedDelaySec=900 Persistent=true [Install] WantedBy=timers.target Anonymous Custody: Full Participation Without Registration ========================================================== In the MxOS Foundation Community Mirror Network, **anonymous custody is fully valid, welcome, and treated as a first-class citizen**. No registration of any kind is required to participate as a guardian node. Once you start your Kubo daemon and pin one or more modules, your node shares blocks directly across the Bitswap swarm and the libp2p DHT, identified solely by its unforgeable cryptographic hash ``PeerID``. Blocks served by anonymous custodians strengthen the community infrastructure with the exact same sovereignty, priority, and speed as those of any registered node. Step 8: Voluntary Registration on the Vigía Dashboard ===================================================== Operators, collectives, or institutions wishing to formally list their node on the public observatory at `https://mirrors.mx-os.mx/vigia/ `_ can request inclusion in ``guardianes.json``: 1. **Obtain your peer identifier PeerID:** .. code-block:: bash ipfs id -f="\n" 2. **Prepare your entry in guardianes.json:** .. code-block:: json "12D3KooWBVZfAQyPExhScDpiG4Hahh3e6QmwRZRVopib1ThgUo2g": { "alias": "renich", "nombre": "Rénich Bon Ćirić", "organizacion": "EVALinux", "ubicacion": "Ixtlahuacán de los Membrillos, Jalisco, México", "sitio": "https://evalinux.com", "contacto": "renich@evalinux.com", "rol": "guardian", "insignia": "🛡️ Guardián Pionero", "verificacion": "gitlab" } 3. **Formatting criteria:** * Full state name without abbreviations, for example ``Jalisco`` or ``Querétaro``. * Direct phrasing with no spaces around forward slashes. * Valid, verifiable HTTPS URL in the ``sitio`` field. * The ``organizacion`` field is displayed under the ``Afiliación`` column on the dashboard. 4. **Publication:** Open a Merge Request in the canonical repository at `https://git.mx-os.mx/MxOS/mirrors `_. Once reviewed and approved, your node will display its badges on the network map.