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: content/blog/highly-available-nfs-workload-on-hpe-greenlake-for-private-cloud-enterprise-using-serviceguard-for-linux.md
+8-22Lines changed: 8 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,8 +67,6 @@ terraform {
67
67
}
68
68
```
69
69
70
-
``
71
-
72
70
You can find out more about the HPE GreenLake Terraform provider from its Terraform Registry page:
73
71
74
72
https://registry.terraform.io/providers/HPE/hpegl/latest This page also provides a link to the GitHub repository corresponding to this provider.
3 VMs need to be created to setup SGLX. 2 VMs will be used to create Serviceguard for Linux nodes where the NFS service will be up and running. The third VM will act as a quorum server for the Serviceguard cluster to ensure that split brain of the cluster does not impact the availability of the monitored workload.
325
323
326
-
327
324
**Note:** You can get information about each of the resource statements supported by the hpegl provider from [GitHub](https://github.com/hpe/terraform-provider-hpegl/tree/main/docs/resources).
328
325
329
-
330
326
**Note:** An existing Serviceguard Quorum Server in your environment can be used instead of provisioning a third VM, provided the Quorum Server is reachable to the 2 VM’s that were created.
331
327
332
328
### Terraform init
333
329
334
330
Before you can use Terraform, you need to initialize it from the configuration file we have created. This is done with the following step:
335
331
336
-
337
332
`terraform init`
338
333
339
334
### Terraform ready to plan
@@ -345,7 +340,9 @@ Once you agree with the plan and confirm, you can apply the configuration.
345
340
346
341
The command you need to use is now:
347
342
348
-
`terraform apply`
343
+
```shell
344
+
terraform apply
345
+
```
349
346
350
347
This will rerun the plan command, then prompt you to confirm before it starts building what is in the plan:
351
348
Here is some sample output from the terraform apply command:
@@ -391,8 +388,6 @@ Checkout the stable branch. For ex: to checkout branch 1.0,
391
388
392
389
`git checkout Stable-v1.0`
393
390
394
-
``
395
-
396
391
To upgrade to the latest version of the playbooks:
@@ -405,30 +400,25 @@ We should configure the version of Serviceguard to be installed, in this case SG
405
400
406
401
`sglx_version : 15.10.00`
407
402
408
-
409
403
Now provide the Serviceguard for Linux ISO location on the controller node
410
404
411
-
```
405
+
```yaml
412
406
sglx_inst_upg_mode: iso
413
407
sglx_inst_upg_additional_params:
414
408
..
415
409
iso_params:
416
410
iso_location: <absolute path of the iso on ansible controller node>
417
411
```
418
412
419
-
420
-
421
413
Next, install Serviceguard NFS add-on.
422
414
423
-
```
415
+
```yaml
424
416
sglx_add_on_inst_upg_params:
425
417
sglx_addon: nfs
426
418
```
427
419
428
-
429
420
Serviceguard installation mandates a replicated user configuration. As part of the installation, a replicated user for Serviceguard Manager (sgmgr) is created on the hosts and the password for the same can be configured under the below parameter.
Once these parameters are populated, one can modify the hosts file to add the 2 VMs that were provisioned earlier where the cluster will be formed, and the quorum server that was provisioned earlier. In this case, it’s as shown below
455
441
456
-
```
442
+
```yaml
457
443
[sglx-storage-flex-add-on-hosts]
458
444
drbd-0-808
459
445
drbd-1-808
@@ -469,7 +455,7 @@ drbd-1-808
469
455
470
456
When the parameters specified above are configured, playbook `site.yml` can be run from the directory where the repository is cloned on the ansible control node.
0 commit comments