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
@@ -241,17 +241,19 @@ For more information about the required ports for SAP HANA, read the chapter [Co
241
241
242
242
1.**[A]** Create mount points for the HANA database volumes.
243
243
244
-
```
245
-
mkdir -p /hana/data/HN1/mnt00001
246
-
mkdir -p /hana/log/HN1/mnt00001
247
-
mkdir -p /hana/shared/HN1
244
+
```bash
245
+
sudo mkdir -p /hana/data/HN1/mnt00001
246
+
sudo mkdir -p /hana/log/HN1/mnt00001
247
+
sudo mkdir -p /hana/shared/HN1
248
248
```
249
249
250
250
2.**[A]** Verify the NFS domain setting. Make sure that the domain is configured as the default Azure NetApp Files domain, that is, **defaultv4iddomain.com** and the mapping is set to **nobody**.
251
251
252
-
```
252
+
```bash
253
253
sudo cat /etc/idmapd.conf
254
-
# Example
254
+
```
255
+
Example output
256
+
```output
255
257
[General]
256
258
Domain = defaultv4iddomain.com
257
259
[Mapping]
@@ -264,35 +266,42 @@ For more information about the required ports for SAP HANA, read the chapter [Co
264
266
265
267
3.**[A]** Edit the /etc/fstab on both nodes to permanently mount the volumes relevant to each node. Below is an example of how you mount the volumes permanently.
266
268
267
-
```
269
+
```bash
268
270
sudo vi /etc/fstab
271
+
```
272
+
Add the following entries in /etc/fstab on both nodes
273
+
274
+
Example for hanadb1
269
275
270
-
# Add the following entries in /etc/fstab on both nodes
For workloads, that require higher throughput, consider using the `nconnect` mount option, as described in [NFS v4.1 volumes on Azure NetApp Files for SAP HANA](./hana-vm-operations-netapp.md#nconnect-mount-option). Check if `nconnect` is [supported by Azure NetApp Files](../../azure-netapp-files/performance-linux-mount-options.md#nconnect) on your Linux release.
286
294
287
295
288
296
4.**[A]** Verify that all HANA volumes are mounted with NFS protocol version NFSv4.
289
297
290
-
```
298
+
```bash
291
299
sudo nfsstat -m
300
+
```
301
+
Verify that flag vers is set to 4.1
292
302
293
-
# Verify that flag vers is set to 4.1
294
-
# Example from hanadb1
295
-
303
+
Example from hanadb1
304
+
```output
296
305
/hana/log/HN1/mnt00001 from 10.3.1.4:/hanadb1-log-mnt00001
/hana/data/HN1/mnt00001 from 10.3.1.4:/hanadb1-data-mnt00001
@@ -303,15 +312,17 @@ For more information about the required ports for SAP HANA, read the chapter [Co
303
312
304
313
5.**[A]** Verify **nfs4_disable_idmapping**. It should be set to **Y**. To create the directory structure where **nfs4_disable_idmapping** is located, execute the mount command. You won't be able to manually create the directory under /sys/modules, because access is reserved for the kernel / drivers.
@@ -320,18 +331,22 @@ For more information about the required ports for SAP HANA, read the chapter [Co
320
331
321
332
You can either use a DNS server or modify the /etc/hosts file on all nodes. This example shows you how to use the /etc/hosts file. Replace the IP address and the hostname in the following commands:
322
333
323
-
```
334
+
```bash
324
335
sudo vi /etc/hosts
325
-
# Insert the following lines in the /etc/hosts file. Change the IP address and hostname to match your environment
336
+
```
337
+
Insert the following lines in the /etc/hosts file. Change the IP address and hostname to match your environment
338
+
```output
326
339
10.3.0.4 hanadb1
327
340
10.3.0.5 hanadb2
328
341
```
329
342
330
343
2.**[A]** Prepare the OS for running SAP HANA on Azure NetApp with NFS, as described in SAP note [3024346 - Linux Kernel Settings for NetApp NFS](https://launchpad.support.sap.com/#/notes/3024346). Create configuration file */etc/sysctl.d/91-NetApp-HANA.conf* for the NetApp configuration settings.
331
344
345
+
```bash
346
+
sudo vi /etc/sysctl.d/91-NetApp-HANA.conf
332
347
```
333
-
vi /etc/sysctl.d/91-NetApp-HANA.conf
334
-
# Add the following entries in the configuration file
348
+
Add the following entries in the configuration file
349
+
```config
335
350
net.core.rmem_max = 16777216
336
351
net.core.wmem_max = 16777216
337
352
net.ipv4.tcp_rmem = 4096 131072 16777216
@@ -346,9 +361,11 @@ For more information about the required ports for SAP HANA, read the chapter [Co
346
361
347
362
3.**[A]** Create configuration file */etc/sysctl.d/ms-az.conf* with additional optimization settings.
348
363
364
+
```bash
365
+
sudo vi /etc/sysctl.d/ms-az.conf
349
366
```
350
-
vi /etc/sysctl.d/ms-az.conf
351
367
Add the following entries in the configuration file
368
+
```config
352
369
net.ipv6.conf.all.disable_ipv6 = 1
353
370
net.ipv4.tcp_max_syn_backlog = 16348
354
371
net.ipv4.conf.all.rp_filter = 0
@@ -361,9 +378,11 @@ For more information about the required ports for SAP HANA, read the chapter [Co
361
378
362
379
4.**[A]** Adjust the sunrpc settings, as recommended in SAP note [3024346 - Linux Kernel Settings for NetApp NFS](https://launchpad.support.sap.com/#/notes/3024346).
363
380
381
+
```bash
382
+
sudo vi /etc/modprobe.d/sunrpc.conf
364
383
```
365
-
vi /etc/modprobe.d/sunrpc.conf
366
-
# Insert the following line
384
+
Insert the following line
385
+
```config
367
386
options sunrpc tcp_max_slot_table_entries=128
368
387
```
369
388
@@ -383,7 +402,7 @@ For more information about the required ports for SAP HANA, read the chapter [Co
383
402
384
403
a. Start the hdblcm program from the HANA installation software directory.
385
404
386
-
```
405
+
```bash
387
406
./hdblcm
388
407
```
389
408
@@ -419,7 +438,7 @@ a. Start the hdblcm program from the HANA installation software directory.
419
438
420
439
Download the latest SAP Host Agent archive from the [SAP Software Center](https://launchpad.support.sap.com/#/softwarecenter) and run the following command to upgrade the agent. Replace the path to the archive to point to the file that you downloaded:
421
440
422
-
```
441
+
```bash
423
442
sudo /usr/sap/hostctrl/exe/saphostexec -upgrade -archive <path to SAP Host Agent SAR>
424
443
```
425
444
@@ -450,9 +469,11 @@ This section describes the necessary steps required to configure the SAP HANA Cl
450
469
451
470
Follow the steps in [creating SAP HANA cluster resources](./sap-hana-high-availability.md#create-sap-hana-cluster-resources) to create the cluster resources for the HANA server. Once the resources are created, you should see the status of the cluster with the below command
452
471
453
-
```
472
+
```bash
454
473
sudo crm_mon -r
455
-
474
+
```
475
+
Example output
476
+
```output
456
477
# Online: [ hn1-db-0 hn1-db-1 ]
457
478
# Full list of resources:
458
479
# stonith-sbd (stonith:external/sbd): Started hn1-db-0
@@ -472,15 +493,15 @@ Create a dummy file system cluster resource, which will monitor and report failu
472
493
473
494
1.**[A]** Create the directory structure on both nodes.
474
495
475
-
```
496
+
```bash
476
497
sudo mkdir -p /hana/shared/HN1/check
477
498
sudo mkdir -p /hana/shared/check
478
499
```
479
500
480
501
2.**[1]** Configure the cluster to add the directory structure for monitoring
@@ -492,10 +513,14 @@ Create a dummy file system cluster resource, which will monitor and report failu
492
513
493
514
3.**[1]** Clone and check the newly configured volume in the cluster
494
515
516
+
```bash
517
+
sudo crm configure clone cln_fs_check_HN1_HDB03 rsc_fs_check_HN1_HDB03 meta clone-node-max=1 interleave=true
495
518
```
496
-
crm configure clone cln_fs_check_HN1_HDB03 rsc_fs_check_HN1_HDB03 meta clone-node-max=1 interleave=true
497
-
498
-
crm status
519
+
```bash
520
+
sudo crm status
521
+
```
522
+
Example output
523
+
```output
499
524
#Cluster Summary:
500
525
# Stack: corosync
501
526
# Current DC: hanadb1 (version 2.0.5+20201202.ba59be712-4.9.1-2.0.5+20201202.ba59be712) - partition with quorum
@@ -539,13 +564,13 @@ This section describes how you can test your setup.
539
564
540
565
1.Before you start a test, make sure that Pacemaker does not have any failed action (via crm status), no unexpected location constraints (for example leftovers of a migration test) and that HANA system replication is sync state, for example with systemReplicationStatus:
541
566
542
-
```
567
+
```bash
543
568
sudo su - hn1adm -c "python /usr/sap/HN1/HDB03/exe/python_support/systemReplicationStatus.py"
544
569
```
545
570
546
571
2.Verify the status of the HANA Resources using the command below
547
572
548
-
```
573
+
```output
549
574
SAPHanaSR-showAttr
550
575
551
576
# You should see something like below
@@ -566,11 +591,16 @@ This section describes how you can test your setup.
566
591
567
592
3.Verify the cluster configuration for a failure scenario when a node is shutdown (below, for example shows shutting down node 1)
568
593
569
-
```
594
+
```bash
570
595
sudo crm status
571
596
sudo crm resource move msl_SAPHana_HN1_HDB03 hanadb2 force
572
597
sudo crm resource cleanup
598
+
```
599
+
```bash
573
600
sudo crm status
601
+
```
602
+
Example output
603
+
```output
574
604
#Cluster Summary:
575
605
# Stack: corosync
576
606
# Current DC: hanadb2 (version 2.0.5+20201202.ba59be712-4.9.1-2.0.5+20201202.ba59be712) - partition with quorum
@@ -598,21 +628,31 @@ This section describes how you can test your setup.
598
628
# rsc_st_azure (stonith:fence_azure_arm): Started hanadb2
@@ -626,9 +666,11 @@ This section describes how you can test your setup.
626
666
627
667
Resource state before starting the test:
628
668
629
-
```
669
+
```bash
630
670
sudo crm status
631
-
# Example output
671
+
```
672
+
Example output
673
+
```output
632
674
#Cluster Summary:
633
675
# Stack: corosync
634
676
# Current DC: hanadb2 (version 2.0.5+20201202.ba59be712-4.9.1-2.0.5+20201202.ba59be712) - partition with quorum
@@ -658,14 +700,17 @@ This section describes how you can test your setup.
658
700
659
701
You can place /hana/shared in read-only mode on the active cluster node, using below command:
660
702
661
-
```
703
+
```bash
662
704
sudo mount -o ro 10.3.1.4:/hanadb1-shared-mnt00001 /hana/shared
663
705
```
664
706
665
707
hanadb1 will either reboot or poweroff based on the action set. Once the server (hanadb1) is down, HANA resource move to hanadb2. You can check the status of cluster from hanadb2.
666
708
667
709
```
668
-
crm status
710
+
sudo crm status
711
+
```
712
+
Example output
713
+
```output
669
714
#Cluster Summary:
670
715
# Stack: corosync
671
716
# Current DC: hanadb2 (version 2.0.5+20201202.ba59be712-4.9.1-2.0.5+20201202.ba59be712) - partition with quorum
@@ -700,4 +745,4 @@ We recommend testing the SAP HANA cluster configuration thoroughly, by also doin
700
745
*[Azure Virtual Machines planning and implementation for SAP](./planning-guide.md)
701
746
*[Azure Virtual Machines deployment for SAP](./deployment-guide.md)
702
747
*[Azure Virtual Machines DBMS deployment for SAP](./dbms-guide-general.md)
703
-
*[NFS v4.1 volumes on Azure NetApp Files for SAP HANA](./hana-vm-operations-netapp.md)
748
+
*[NFS v4.1 volumes on Azure NetApp Files for SAP HANA](./hana-vm-operations-netapp.md)
0 commit comments