You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sap/workloads/high-availability-guide-suse.md
+33-15Lines changed: 33 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,27 +272,45 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
272
272
273
273
1.**[A]** Configure SWAP file
274
274
275
+
Create a swap file as defined in [Create a SWAP file for an Azure Linux VM](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/create-swap-file-linux-vm)
275
276
```bash
276
-
sudo vi /etc/waagent.conf
277
-
278
-
# Check if property ResourceDisk.Format is already set to y and if not, set it
279
-
ResourceDisk.Format=y
280
-
281
-
# Set the property ResourceDisk.EnableSwap to y
282
-
# Create and use swapfile on resource disk.
283
-
ResourceDisk.EnableSwap=y
284
-
285
-
# Set the size of the SWAP file with property ResourceDisk.SwapSizeMB
286
-
# The free space of resource disk varies by virtual machine size. Make sure that you do not set a value that is too big. You can check the SWAP space with command swapon
287
-
# Size of the swapfile.
288
-
ResourceDisk.SwapSizeMB=2000
277
+
#!/bin/sh
278
+
279
+
# Percent of space on the ephemeral disk to dedicate to swap. Here 30% is being used. Modify as appropriate.
280
+
PCT=0.3
281
+
282
+
# Location of swap file. Modify as appropriate based on location of ephemeral disk.
283
+
LOCATION=/mnt
284
+
285
+
if [ !-f${LOCATION}/swapfile ]
286
+
then
287
+
288
+
# Get size of the ephemeral disk and multiply it by the percent of space to allocate
0 commit comments