Reboot your Linodes for QEMU maintenance

If you have Linodes affected by this maintenance, you need to reboot them to apply the update.

🚧

QEMU upgrade maintenance, only

This should only be used when your Linodes need to be rebooted for QEMU reboot maintenance.

Check for this maintenance

Follow these steps to check for this maintenance on your Linodes:

  1. Run the List notifications operation. If you see the "type": "security_reboot_maintenance_scheduled" notification for your Linodes, store the id for each, from its entity object. (You can filter the response for this operation, based on a type of security_reboot_maintenance_scheduled.)

  2. Run the List maintenances operation. This shows all of the current and planned maintenance tasks for your Linodes. Review the following information for each Linode id you stored from step 1:

    • The reason. The messaging here should discuss something in regards to the security reboot maintenance.

    • The status. This needs to be scheduled. This indicates that you need to reboot that Linode to begin the maintenance.

  3. Once all of the Linodes you stored in step 1 have this status, continue to the next section.

Reboot your Linodes

You can do this multiple ways:

  • Manually reboot your Linodes. If you only have a few, or want more granular control of the reboots, you can manually reboot each using the Boot a Linode operation.

  • Batch reboot your Linodes. Review the sections that follow to batch reboot several Linodes, using the Linode CLI.

Create a script for batch reboot

If you'd like to batch reboot several Linodes, you can generate a script to handle the task:

#!/bin/bash
# filepath: ./script.sh

INPUT_FILE="linode_ids.txt"

while IFS= read -r linode_id; do
  if [[ -n "$linode_id" ]]; then
    echo "Rebooting Linode ID: $linode_id"
    linode-cli linodes reboot "$linode_id"
    sleep 2
  fi
done < "$INPUT_FILE"

Create a linode_ids.txt file for batch reboot

Generate a linode_ids.txt file that includes all of the Linodes' id values you stored, with one entry per line:

12345678
13579246
24681357
87654321
87654320
87654319
87654318

Run the script to batch reboot

Follow these steps to execute the script, using the Linode CLI:

  1. If necessary, install and configure the Linode CLI.

  2. Run this command to make the the script executable:

    chmod +x script.sh
    
  3. Run your script:

    ./script.sh
    

Going forward

If you see these notifications again for other Linodes or for future upgrades, you can manually reboot each one, or run through this same process, with a couple of minor changes:

  1. Check for this maintenance. Follow this same procedure.
  2. Update your linode_ids.txt file. Edit the existing file to add the new Linodes’ id values. (Make sure you remove any existing Linodes that don’t need to be rebooted!)
  3. Run the script. Follow this same procedure.