Lab: NSX Manager backup configuration: Difference between revisions

From Iwan
Jump to: navigation, search
m (→‎top: clean up)
m (Cleaning up wiki tables)
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 62: Line 62:
! 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]
| [https://www.notion.so/FQDN-or-IP-Address-a38db02746534eaa83a1405418d49de2?pvs=21 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]
| [https://www.notion.so/Port-a974feb01c06450a9556f840ba4327fc?pvs=21 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]
| [https://www.notion.so/Directory-Path-a83c020bb07c416f898983b63d7610e1?pvs=21 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]
| [https://www.notion.so/Username-87878afe619a46fd8bec193211eae9cd?pvs=21 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]
| [https://www.notion.so/Authentication-Scheme-7f66d5d4405644ee9bb963d5f75065c9?pvs=21 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]
| [https://www.notion.so/Password-698256950dd14f5cb8925699454357a4?pvs=21 Password]
| class="cell-WUZo"| VMware1!
| VMware1!
|- id="1f7d830e-e7ba-4a0b-9aac-0e285e97b487"
|-
| class="cell-title"| [https://www.notion.so/Passphrase-1f7d830ee7ba4a0b9aac0e285e97b487?pvs=21 Passphrase]
| [https://www.notion.so/Passphrase-1f7d830ee7ba4a0b9aac0e285e97b487?pvs=21 Passphrase]
| class="cell-WUZo"| VMware1!
| VMware1!
|}
|}



Revision as of 08:49, 15 January 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