Safeguards for CSM

This page covers safe-guards for preventing destructive behaviors on management nodes.

If you are reinstalling or upgrading you should run through these safe-guards on a by-case basis:

  1. Whether or not CEPH should be preserved.
  2. Whether or not the RAIDs should be protected.

Safeguard CEPH OSDs

  1. Edit /var/www/ephemeral/configs/data.json and align the following options:

    {
      ..
      // Disables Ceph wipe:
      "wipe-ceph-osds": "no"
      ..
    }
    
    {
      ..
      // Restores default behavior:
      "wipe-ceph-osds": "yes"
      ..
    }
    
    pit# vi /var/www/ephemeral/configs/data.json
    
  2. Quickly toggle yes or no to the file:

    # set wipe-ceph-osds=no
    pit# sed -i 's/wipe-ceph-osds": "yes"/wipe-ceph-osds": "no"/g' /var/www/ephemeral/configs/data.json
    
    # set wipe-ceph-osds=yes
    pit# sed -i 's/wipe-ceph-osds": "no"/wipe-ceph-osds": "yes"/g' /var/www/ephemeral/configs/data.json
    
  3. Activate the new setting:

    pit# systemctl restart basecamp
    

Safeguard RAIDS / BOOTLOADERS / SquashFS / OverlayFS

  1. Edit /var/www/boot/script.ipxe and align the following options as follows:
  • rd.live.overlay.reset=0 will prevent any overlayFS files from being cleared.

  • metal.no-wipe=1 will guard against touching RAIDs, disks, and partitions.

    pit# vi /var/www/boot/script.ipxe