> Source: [sk184566](https://support.checkpoint.com/results/sk/sk184566)

# sk184566 - Swap memory size is unstable after reboot on Cloud Firewall for Azure Security Gateway

| Property | Value |
|----------|-------|
| Solution ID | sk184566 |
| Date Created | 2026-01-15 |
| Last Modified | 2026-05-11 |
| Technical Level | Advanced |
| Products | Cloud Firewall |
| Versions | R82.10, R81.10 (EOS), R81.20, R82 |
| OS | Gaia |
| Platform | Azure |

## Symptoms

- * After rebooting the Cloud Firewall for Azure Security Gateway, the swap memory size does not remain the same.
* `free` or `lvm_manager` commands show different values of swap memory size after different reboots.

## Cause

The swap memory size instability is caused by an issue in the `/opt/CPcge/scripts/azure/recreate_swap.sh` script. This script registers the Azure Resource Disk as kernel swap space.   

On the first boot, the Resource Disk is enumerated as `/dev/sda` and swap memory size is set up correctly. On subsequent reboots, Gaia may enumerate the Resource Disk as `/dev/sdb` instead.   

The script does not update `/etc/fstab` to reflect the new device name if swap headers already exist.   

As a result, swap is not activated if the device name changes, causing the swap size to be 0 GB.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
