Lab: NSX Manager backup configuration: Difference between revisions

From Iwan
Jump to: navigation, search
(Add)
 
(Fix)
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
In this lab I am working with the following software and versions:
In this lab I am working with the following software and versions:


{| id="9889ae09-b2ae-467b-824d-e1f7f28a95d7" class="wikitable simple-table"
{| class="wikitable simple-table"
|- id="3bf23f3b-6d25-44ac-82e8-de86d59a60b9"
|-
! id="J~En" class="simple-table-header-color simple-table-header" style="width: 148px"| Software
! Software
! id="];rU" class="simple-table-header-color simple-table-header" style="width: 95px"| Version
! Version
! id="<OFM" class="simple-table-header-color simple-table-header" style="width: 330px"| Filename
! Filename
|- id="8a108755-f0d6-41f4-8c88-0b641f86ba83"
|-
| id="J~En" style="width: 148px"| Ubuntu Server
| Ubuntu Server
| id="];rU" style="width: 95px"| 20.04.3
| 20.04.3
| id="<OFM" style="width: 330px"| ubuntu-20.04.3-live-server-amd64.iso
| ubuntu-20.04.3-live-server-amd64.iso
|- id="a9e1fa3b-0301-4b7f-a095-8a203699d2df"
|-
| id="J~En" style="width: 148px"| VMware NSX
| VMware NSX
| id="];rU" style="width: 95px"| 4.0.0.1
| 4.0.0.1
| id="<OFM" style="width: 330px"| nsx-unified-appliance-4.0.0.1.0.20159694.ova
| nsx-unified-appliance-4.0.0.1.0.20159694.ova
|}
|}


Line 34: Line 34:
<span id="76fcebf8-0bff-483c-a28e-2638078e0aaa"></span>
<span id="76fcebf8-0bff-483c-a28e-2638078e0aaa"></span>
= The Steps =
= The Steps =
<ul>
<li><div class="checkbox checkbox-off">


</div>
</div>
<span class="to-do-children-unchecked">STEP 1: Configure backup</span>
<span class="to-do-children-unchecked">STEP 1: Configure backup</span>
<div class="indented">
<div class="indented">


</div></li></ul>
</div></li></ul>


<span id="6f565272-6d9c-470d-885e-1a0a56948a1f"></span>
<span id="6f565272-6d9c-470d-885e-1a0a56948a1f"></span>
= STEP 1: Configure backup =
= STEP 1{{fqm}} Configure backup =


The following configuration parameters will be used when backup is configured on NSX:
The following configuration parameters will be used when backup is configured on NSX:
Line 56: Line 49:


<span id="section"></span>
<span id="section"></span>
====  ====
==  ==


{| class="wikitable collection-content"
{| class="wikitable collection-content"
Line 62: Line 55:
! Parameter Name
! Parameter Name
! Input
! Input
|- id="a38db027-4653-4eaa-83a1-405418d49de2"
|-
| class="cell-title"| [https://www.notion.so/FQDN-or-IP-Address-a38db02746534eaa83a1405418d49de2?pvs=21 FQDN or IP Address]
| FQDN or IP Address
| class="cell-WUZo"| 10.203.0.240
| 10.203.0.240
|- id="a974feb0-1c06-450a-9556-f840ba4327fc"
|-
| class="cell-title"| [https://www.notion.so/Port-a974feb01c06450a9556f840ba4327fc?pvs=21 Port]
| Port
| class="cell-WUZo"| 22
| 22
|- id="a83c020b-b07c-416f-8989-83b63d7610e1"
|-
| class="cell-title"| [https://www.notion.so/Directory-Path-a83c020bb07c416f898983b63d7610e1?pvs=21 Directory Path]
| Directory Path
| class="cell-WUZo"| /home/administrator/nsxbackup/
| /home/administrator/nsxbackup/
|- id="87878afe-619a-46fd-8bec-193211eae9cd"
|-
| class="cell-title"| [https://www.notion.so/Username-87878afe619a46fd8bec193211eae9cd?pvs=21 Username]
| Username
| class="cell-WUZo"| administrator
| administrator
|- id="7f66d5d4-4056-44ee-9bb9-63d5f75065c9"
|-
| class="cell-title"| [https://www.notion.so/Authentication-Scheme-7f66d5d4405644ee9bb963d5f75065c9?pvs=21 Authentication Scheme]
| Authentication Scheme
| class="cell-WUZo"| Password
| Password
|- id="69825695-0dd1-4f5c-b892-5699454357a4"
|-
| class="cell-title"| [https://www.notion.so/Password-698256950dd14f5cb8925699454357a4?pvs=21 Password]
| Password
| class="cell-WUZo"| VMware1!
| VMware1!
|- id="1f7d830e-e7ba-4a0b-9aac-0e285e97b487"
|-
| class="cell-title"| [https://www.notion.so/Passphrase-1f7d830ee7ba4a0b9aac0e285e97b487?pvs=21 Passphrase]
| Passphrase
| class="cell-WUZo"| VMware1!
| VMware1!
|}
|}
<br />
<br />


</div>
</div>
Line 210: Line 199:


</div>
</div>
<div id="560dd1f8-996c-487b-b080-6a02df366c4c" class="figure callout" style="white-space:pre-wrap;display:flex">
<div style="font-size:1.5em">
<span class="icon">⚡</span>
</div>
<div style="width:100%">
[https://www.notion.so/Lab-Replacing-the-self-signed-SSL-certificates-with-CA-signed-certificates-f39072b7eab145e2bb4a388deec7af1a?pvs=21 Continue with the Replacing the self-signed SSL certificates with CA-signed certificates].


</div>
Continue with  >> [[Lab: Replacing the self-signed SSL certificates with CA-signed certificates]]


</div>
__TOC__


</div>
[[Category:NSX]]
<span class="sans" style="font-size:14px;padding-top:2em"></span>
[[Category:Networking]]
[[Category:VMware]]
[[Category:NSX Academy]]

Latest revision as of 06:55, 16 March 2024

In this lab I am working with the following software and versions:

Software Version Filename
Ubuntu Server 20.04.3 ubuntu-20.04.3-live-server-amd64.iso
VMware NSX 4.0.0.1 nsx-unified-appliance-4.0.0.1.0.20159694.ova
  1. Make sure NSX is backed up every Sunday and Wednesday.
    1. Make sure the backup occurs outside business hours.
    1. Also update the backup every two hours after a change has been made on NSX.

Untitled.png

The Steps

STEP 1: Configure backup

STEP 1» Configure backup

The following configuration parameters will be used when backup is configured on NSX:

Parameter Name Input
FQDN or IP Address 10.203.0.240
Port 22
Directory Path /home/administrator/nsxbackup/
Username administrator
Authentication Scheme Password
Password VMware1!
Passphrase VMware1!

Go to System → Lifecycle Management → Backup and Restore to configure backup on NSX.

Click on “Edit” to configure the SFTP Server.

Untitled%201.png

Use the configuration parameters provided above.

Untitled%202.png

When I click “Save” I get a message to add the missing Fingerprint of the SFTP server. Click on “Add”.

Untitled%203.png

The SSH Fingerprint is added and click on “Save” again.

Untitled%204.png

The SFTP server is now configured. Notice the IP address under the SFTP label. Click on “Start Backup” to start my first backup.

Untitled%205.png

After the backup has started I can keep track by looking at the “Backup Status” bar.

Untitled%206.png

When the backup is finished I see the backup in the “Backup History” section.

Untitled%207.png

I can also verify if the backup is done properly by logging into the SFTP server and verify if the folders and files are there.

administrator@step-lin:~/nsxbackup$ pwd
/home/administrator/nsxbackup

administrator@step-lin:~/nsxbackup$ ls -l
total 4
drwxrwxr-x 3 administrator administrator 4096 Aug 25 11:02 cluster-node-backups

administrator@step-lin:~/nsxbackup$ cd cluster-node-backups/

administrator@step-lin:~/nsxbackup/cluster-node-backups$ ls -l
total 4
drwxrwxr-x 3 administrator administrator 4096 Aug 25 11:02 4.0.0.1.0.20159694-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12

administrator@step-lin:~/nsxbackup/cluster-node-backups$ cd 4.0.0.1.0.20159694-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12/

administrator@step-lin:~/nsxbackup/cluster-node-backups/4.0.0.1.0.20159694-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12$ ls -l
total 4
drwxrwxr-x 2 administrator administrator 4096 Aug 25 11:03 backup-2022-08-25T11_02_21UTC

administrator@step-lin:~/nsxbackup/cluster-node-backups/4.0.0.1.0.20159694-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12$ cd backup-2022-08-25T11_02_21UTC/

administrator@step-lin:~/nsxbackup/cluster-node-backups/4.0.0.1.0.20159694-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12/backup-2022-08-25T11_02_21UTC$ ls -l
total 21584
-r-------- 1 administrator administrator 21207040 Aug 25 11:02 cluster_backup-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12-nsx-ufo-backup-restore.tar
-r-------- 1 administrator administrator   890880 Aug 25 11:03 node_backup-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12.tar
administrator@step-lin:~/nsxbackup/cluster-node-backups/4.0.0.1.0.20159694-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-10.203.120.12/backup-2022-08-25T11_02_21UTC$

⚠️ The folder and filename contains the following UUID: a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a. This UUID is the identifier of the NSX Manager that is the “Leader” in the cluster, and the backup will be done using this leader. To determine how I can find out what the leader is click here.

To schedule a backup to periodically automatically make backups click on “Edit” below the Schedule label.

Untitled%207.png

I can schedule backups with a daily interval…

Untitled%208.png

And with a weekly interval on specific days.

I want to make backups on Sundays and Wednesdays at 03:00 in the night.

I also want to automatically make a backup when a change is made. To prevent that a Backup is made every-time a change is made I want to do this with intervals of 2 hours. This means that when a change occurs one backup copy will be made every 2 hours. Click “Save”.

Untitled%209.png

The Schedule is now configured. Notice the word “Enabled” next to the Schedule label.

Untitled%2010.png

The moment I clicked save a new backup was made, as a change was made. The change being scheduling the actual backup.

Untitled%2011.png

Continue with >> Lab: Replacing the self-signed SSL certificates with CA-signed certificates