Virtual Southwest
  • Blog
  • About
  • Presentations

NSX Manager Slowness – Too many Backup Files??

9/13/2017

 
A follow up to my previous post on setting up NSX backups…
If you have configured a backup schedule on your NSX Manager, you may notice that there is no setting on the number of backups to retain, or any option to remove older backups.  This is even true in the latest 6.3.3 version.
On several NSX Managers that I administer, I had noticed a slowdown accessing the managers, and when creating or deploying any new components, such as an edge gateway.
 It was discovered that the slowness started occurring if the NSX Manager has 100 or more backup files.  The only way to remove the files was to delete them from the FTP server folder, and then reboot the NSX Manager.
​
If you start to experience any odd behavior of your NSX Managers, check the number of backup files and remove the ones not needed.  I keep mine under 20.
I am hoping a feature will be added in the upcoming release to allow you to set a backup retention and to delete backup files in the web ui.
Will keep you posted on my progress for that...

Configure NSX Backups with API Call

9/13/2017

 
Whether you need to recover your NSX Manager from a failure or revert from changes, it is always good to have a current backup!
And if you have several NSX Managers to configure backups on, updating them using the API call will save you quite a lot of time.
NSX Manager supports setting up backups using FTP or SFTP, and to schedule them to run on an hourly,
daily or weekly frequency.
If you are looking for a FTP Server, I have used the FileZilla Server and pointed NSX Manager backups. It will support SFTP as well, check out the FileZilla info- forum.filezilla-project.org/viewtopic.php?t=8812
I have had the best success running API calls to NSX using the Firefox RESTClient.  To start with-
1. Locate the RESTClient Mozilla add‐on, and add it to Firefox.
2. Click Tools > REST Client to start the add‐on.
3. Click Authentication,then Basic Authentication, and enter the NSX Manager login credentials, which then appear encoded in the Request Header.
Note: you may need to browse to the NSX Managers web ui, and accept the certificate warning before running query.
4. Select a method such as GET, POST, or PUT, and type the URL of a REST API.
Response Header, Response Body, and Rendered HTML appear in the bottom window.
5. For POST and PUT, you will need to add a Custom Header.
Select Headers, Custom header and add the name Content-Type and Value application/xml

Below is an example of adding a backup for a daily schedule:

Method   PUT   URL: https://nsx-manager.corp.local/api/1.0/appliance-management/backuprestore /backupsettings
Headers: Authorization: Basic       Content-Type: application/xml
Body:
<backupRestoreSettings>
<ftpSettings>
<transferProtocol>FTP</transferProtocol>
<hostNameIPAddress>ftp-server.corp.local</hostNameIPAddress>
<port>21</port>
<userName>ftp-user</userName><password>my-pasword</password>
<backupDirectory>NSXBackupDir</backupDirectory>
<filenamePrefix>nsx-manager-</filenamePrefix>
<passPhrase>my-password</passPhrase>  - This item was not listed in the API guide
<passiveMode>true</passiveMode>
<useEPRT>false</useEPRT>
<useEPSV>true</useEPSV>
</ftpSettings>
<backupFrequency>
<frequency>DAILY</frequency>
<hourOfDay>19</hourOfDay>
<minuteOfHour>30</minuteOfHour>
</backupFrequency>
<excludeTables>
<excludeTable>AUDIT_LOGS</excludeTable>
<excludeTable>SYSTEM_EVENTS</excludeTable>
</excludeTables>
</backupRestoreSettings>
 
The items in Bold are the options for your specific configuration…
To check your backup settings, just change the Method to GET, and run the same URL with the Authentication: Basic Header-
Method   GET   URL: https://nsx-manager.corp.local/api/1.0/appliance-management/backuprestore /backupsettings
Headers: Authorization: Basic       
The configured settings will display in the Body:
<backupRestoreSettings>
<ftpSettings>
<transferProtocol>FTP</transferProtocol>
<hostNameIPAddress>ftp-server.corp.local</hostNameIPAddress>
<port>21</port>
<userName>ftp-user</userName><password>my-pasword</password>
<backupDirectory>NSXBackupDir</backupDirectory>
<filenamePrefix>nsx-manager-</filenamePrefix>
<passiveMode>true</passiveMode>
<useEPRT>false</useEPRT>
<useEPSV>true</useEPSV>
</ftpSettings>
<backupFrequency>
<frequency>DAILY</frequency>
<hourOfDay>19</hourOfDay>
<minuteOfHour>30</minuteOfHour>
</backupFrequency>
<excludeTables>
<excludeTable>AUDIT_LOGS</excludeTable>
<excludeTable>SYSTEM_EVENTS</excludeTable>
</excludeTables>
</backupRestoreSettings>

vExpert 2017 Announcement!

3/27/2017

 
Picture
I ​am very honored to be selected as a vExpert for the fifth year in a row! 
Congratulations to everyone that was selected this year, you can see the list and announcement here: https://blogs.vmware.com/vmtn/2017/02/vexpert-2017-award-announcement.html
Congratulations to all of the vExperts of 2017!!

VCP6-NV Exam Experience

9/7/2016

4 Comments

 
Yeah, I am way behind on posting things.  I passed the VCP6-NV exam last spring, since I have been working with NSX, and a bit of networking on a daily basis for a while I thought I would just schedule and take exam.

The exam is multiple choice, with several diagram questions, that have you select how a VM or host communicates with another VM or host.  I think there were 4 or 5 questions on this.  I also had a couple of questions on basic subnetting, so be sure and review that before you take the exam!

I watched two NSX courses from Pluralsight, www.pluralsight.com  by Jason Nash.  VMware NSX for vSphere Introduction and Installation and VMware NSX for vSphere: Network Services. 

These are both a huge help in learning NSX, especially the details needed for many of the services it can provide.

I had several questions with a diagram, not as nice as the one below, asking how VM1 would find the Mac address, or IP address of VM2.
Picture
Here is the process if the VM’s are on the same host:
  1. VM1 sends Address Resolution Protocol (ARP) request for the MAC address of VM2 on the
    same logical switch (VNI 5001) on the same host.
  2. Broadcast is sent to all virtual machines on the logical switch of the same host. The switch
    security module uses the management network to query the NSX Controller instances ARP
    table for VM2 ARP entry.
  3. Because VM2 is on the same logical switch, VM2 sends an ARP reply before NSX Controller
    responds to the switch security module:
    1. If VM2 has not participated in previous ARP reply or Dynamic Host Configuration Protocol (DHCP), the NSX Controller instance lacks the information.
    2.  Switch security module updates local ARP table and notifies NSX Controller to update the ARP entry for VM2 (in the ARP table).
4. Logical switch delivers a unicast ARP reply to VM1.
And the same but with the VM’s on different hosts:
Picture
The steps, for Unicast mode at least, are:
  1. VM1 sends an ARP request for the MAC address of VM3 on the same logical switch (VNI 5001) on a different host in a different cluster.
  2. Broadcast is sent on the local logical switch and the switch security module queries the NSX Controller instance for an ARP entry for VM3.
  3. The NSX Controller instance lacks the information on VM3. So the broadcast is forwarded as encapsulated unicast from VTEPx to all local VTEPs and the remote proxy VTEP.
  4. VM3 sends a unicast ARP reply that is encapsulated by VTEPy, and is sent to VTEPx, and returned to VM1.
  5. VTEPx learns the MAC address of VM3 for all subsequent communication from local virtual machines to VM3.
There were also a few questions on Distributed Switches, creating Port Groups ect.

I didn’t find the exam overly difficult, but with 85 or so questions I was pretty worn out at the end of the exam….

Good luck to everyone who is working towards this certification!!
4 Comments
<<Previous
Forward>>
    View my profile on LinkedIn
    Follow @virtsouthwest

    RSS Feed

    Archives

    December 2024
    October 2024
    August 2024
    September 2023
    September 2022
    June 2022
    August 2021
    December 2019
    September 2019
    January 2019
    August 2018
    June 2018
    October 2017
    September 2017
    March 2017
    September 2016
    February 2016
    November 2015
    March 2015
    May 2014
    January 2014
    July 2013
    April 2013
    December 2012
    September 2012
    August 2012
    July 2012
    June 2012

[email protected]