Skip to content

Commit 04660fd

Browse files
Update Blog “highly-available-nfs-workload-on-hpe-greenlake-for-private-cloud-enterprise-using-serviceguard-for-linux”
1 parent ddba1a8 commit 04660fd

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

content/blog/highly-available-nfs-workload-on-hpe-greenlake-for-private-cloud-enterprise-using-serviceguard-for-linux.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ Note: More details on HPE GreenLake user roles can be found in the HPE GreenLake
132132

133133
When a user creates virtual machines using the HPE GreenLake for Private Cloud Enterprise: Virtual Machines user interface, they first set the Linux and Windows username and password. Once this is done, any virtual machines subsequently created by that user will inherit these credentials. The user can later use these credentials to log into these virtual machines.
134134
API Clients which are used to create virtual machines can also set Linux and Windows username and password values. Since the API Client does not use the HPE GreenLake for Private Cloud Enterprise: Virtual Machines user interface, this must be done via an API call.
135-
Here is a sample script which reads the VM\_USERNAME and VM\_PASSWORD environment variables and uses the values for Linux and Windows username and password for the API Client. The script assumes a Location value of ‘FTC06’ and Space value of ‘Default’.
136-
To execute this script, first set appropriate values for the VM\_USERNAME and VM\_PASSWORD environment variables. Next, execute the resource file, which was created earlier, which sets the HPEGL\\*\\* environment variables for your API Client. Finally, execute the script below.
135+
Here is a sample script which reads the VM_USERNAME and VM_PASSWORD environment variables and uses the values for Linux and Windows username and password for the API Client. The script assumes a Location value of ‘FTC06’ and Space value of ‘Default’.
136+
To execute this script, first set appropriate values for the VM_USERNAME and VM_PASSWORD environment variables. Next, execute the resource file, which was created earlier, which sets the HPEGL\*\* environment variables for your API Client. Finally, execute the script below.
137137

138138
```shell
139139
#!/bin/bash
@@ -347,8 +347,7 @@ The command you need to use is now:
347347
terraform apply
348348
```
349349

350-
This will rerun the plan command, then prompt you to confirm before it starts building what is in the plan:
351-
Here is some sample output from the terraform apply command:
350+
This will rerun the plan command, then prompt you to confirm before it starts building what is in the plan. Here is some sample output from the `terraform apply` command:
352351

353352
```
354353
Do you want to perform these actions?
@@ -357,16 +356,16 @@ Do you want to perform these actions?
357356
358357
Enter a value: yes
359358
360-
hpegl_vmaas_instance.my_drbd\[1]: Creating...
361-
hpegl_vmaas_instance.my_quorum\[0]: Creating...
362-
hpegl_vmaas_instance.my_drbd\[0]: Creating...
363-
hpegl_vmaas_instance.my_quorum\[0]: Still creating... \[10s elapsed]
364-
hpegl_vmaas_instance.my_drbd\[1]: Still creating... \[10s elapsed]
365-
hpegl_vmaas_instance.my_drbd\[1]: Still creating... \[10s elapsed]
359+
hpegl_vmaas_instance.my_drbd[1]: Creating...
360+
hpegl_vmaas_instance.my_quorum[0]: Creating...
361+
hpegl_vmaas_instance.my_drbd[0]: Creating...
362+
hpegl_vmaas_instance.my_quorum[0]: Still creating... [10s elapsed]
363+
hpegl_vmaas_instance.my_drbd[1]: Still creating... [10s elapsed]
364+
hpegl_vmaas_instance.my_drbd[1]: Still creating... [10s elapsed]
366365
367-
hpegl_vmaas_instance.my_drbd\[1]: Creation complete after 2m8s \[id=3105]
368-
hpegl_vmaas_instance.my_drbd\[0]: Creation complete after 2m8s \[id=3111]
369-
hpegl_vmaas_instance.my_quorum\[0]: Creation complete after 2m8s \[id=3108]
366+
hpegl_vmaas_instance.my_drbd[1]: Creation complete after 2m8s [id=3105]
367+
hpegl_vmaas_instance.my_drbd[0]: Creation complete after 2m8s [id=3111]
368+
hpegl_vmaas_instance.my_quorum[0]: Creation complete after 2m8s [id=3108]
370369
371370
Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
372371
```
@@ -379,8 +378,7 @@ Now that the VMs are provisioned, we can now deploy HPE Serviceguard for Linux o
379378

380379
## Installing Serviceguard for Linux
381380

382-
Serviceguard and all its components can be installed using Ansible playbooks
383-
Clone the repository on ansible control node.
381+
Serviceguard and all its components can be installed using Ansible playbooks. Clone the repository on ansible control node:
384382

385383
```shell
386384
git clone https://github.com/HewlettPackard/serviceguard.git
@@ -396,14 +394,14 @@ To upgrade to the latest version of the playbooks:
396394
`git pull https://github.com/HewlettPackard/serviceguard.git`
397395

398396
Master playbook `site.yml` contains the roles which will be executed for the inventory defined in hosts.
399-
When the master playbook is run, version specified in the parameters file will be installed. The parameters for the master playbook, roles are configured in `group_vars/all.yml`.
397+
When the master playbook is run, the version specified in the parameters file will be installed. The parameters for the master playbook, roles are configured in `group_vars/all.yml`.
400398

401-
We will now look into some of the fields in this file which needs to be configured.
402-
We should configure the version of Serviceguard to be installed, in this case SGLX 15.10.00 will be installed.
399+
Now let's look into some of the fields in this file which needs to be configured.
400+
It’s time to configure the version of Serviceguard to be installed, in this case SGLX 15.10.00 will be installed.
403401

404402
`sglx_version : 15.10.00`
405403

406-
Now provide the Serviceguard for Linux ISO location on the controller node
404+
Provide the Serviceguard for Linux ISO location on the controller node.
407405

408406
```yaml
409407
sglx_inst_upg_mode: iso
@@ -424,7 +422,7 @@ Serviceguard installation mandates a replicated user configuration. As part of t
424422
425423
`sglx_sgmgr_password: "{{ vault_sglx_sgmgr_password }}"`
426424

427-
Ansible vault will be used to encrypt this password, run the command as below
425+
Ansible vault will be used to encrypt this password, when you run the command as below:
428426

429427
`ansible-vault encrypt_string 'your_password' --name 'vault_sglx_sgmgr_password'`
430428

@@ -440,7 +438,7 @@ vault_sglx_sgmgr_password: !vault |
440438
3863
441439
```
442440

443-
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
441+
Once these parameters are populated, you can modify the hosts file to add the two 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:
444442

445443
```yaml
446444
[sglx-storage-flex-add-on-hosts]
@@ -467,7 +465,7 @@ This completes the Serviceguard software installation.
467465

468466
## Configuring data replication using Serviceguard flex Storage Add-on
469467

470-
Serviceguard for Linux Flex Storage Add-on is a software-based, shared-nothing, replicated storage solution that mirrors the content of block devices. NFS server export data will be replicated to all Serviceguard cluster nodes using this add-on. Ansible snippet below can be used to configure the replication.
468+
Serviceguard for Linux Flex Storage Add-on is a software-based, shared-nothing, replicated storage solution that mirrors the content of block devices. NFS server export data will be replicated to all Serviceguard cluster nodes using this add-on. The Ansible snippet below can be used to configure the replication.
471469

472470
```yaml
473471
- hosts: sglx-storage-flex-add-on-hosts

0 commit comments

Comments
 (0)