Nutanix Command Library

I have decided to write this post to record all the Nutanix commands that we rarely use in our routine work , But essentially important for better understanding the environment. All these commands can be run from any CVM , unless I will be specifying it.

How to identify the Acropolis Master in an AHV Cluster.

# links -dump http:0:2030

How to identify the Prism Leader

# curl http://0:2019/prism/leader && echo

How to disable/enable the HA on a VM.(By default all the VM’s are protected with HA .

+ Login to CVM and then type “acli”

# vm.update “VM Name” ha_priority=-1 ( To disable the HA)

# vm.update “VM Name” ha_priority=0 ( To enable the HA)

# vm.get “VM Name” – To confirm the change. But by default , you will not see the field ha_priority parameter unless you disable and then enable it manually.







Advertisements

October 15, 2019 at 12:19 pm Leave a comment

How to create a RHEL 7 template in VSphere ESXi 6.7

Unlike for Windows , RHEL based template creation requires additional steps to make it work. During this process , I came across very valuable information from the linuxtechi blog . I am summarizing the steps and some additional steps that I followed during the whole. process. ( But , I am not adding the steps that you need to follow in ESXi to convert a VM in to template)

Source: https://www.linuxtechi.com/create-vm-template-ovirt-environment/

Environment Details:

  • RHEL 7.3
  • ESXi 6.7

+ Create a RHEL 7.3 VM

+ Install the Operating System and all other Packages needed.

+ Yum update it (If you have a valid RHEL subscription).

Thereafter , we need to follow the below steps to generalize the VM by removing any VM specific configuration and you need to do the below:

+ Remove the SSH host keys
# rm -f /etc/ssh/ssh_host_*

+ Remove the hostname and set it as local host(This is optional , because if
you have not provided any hostname during the step , it will retain
localhost as the name.
# hostnamectl set-hostname ‘localhost’

+ Then remove any reference for UUID , HWADDR & MAC
# rm -f /etc/udev/rules.d/*-persistent-*.rules
# sed -i ‘/^HWADDR=/d’ /etc/sysconfig/network-scripts/ifcfg-*
# sed -i ‘/^UUID=/d’ /etc/sysconfig/network-scripts/ifcfg-*
At this point , please make sure that , while deploying the VM’s from this template you need to create an VM customization specification and forcing to enter the IP address details. Otherwise , you will end up all the VM’s having the same hostid.

+ Again this is optional if you have not registered the VM
#rm -f /etc/sysconfig/rhn/systemid

+ Poweroff the VM systematically
# sys-unconfig

NOTE : VM Customization specification is mandatory to avoid the VM’s getting the same hostids. Steps are as below;

+ Login to the VCenter.
+ Open Policies & Profiles.
+ Select VM Customization Specification.
+ Provide the details , based on your environment.
+ In the Network screen , select “Manually Select Custom Settings”.
+ Click on Add.
+ In the IPv4 section , select ” Prompt the user for an IPv4 address when the
specification is used “.

Good Luck .

October 7, 2019 at 12:07 pm Leave a comment

Cannot open mailbox features in ECP

Sometimes you may receive the below error , when you try to access the Mailbox features for a Mailbox via ECP.

In this situation the Exchange server version is 2016 and it happened only on a single mailbox.
After several hours of troubleshooting we came to know that , this could happen if the mailbox is in quarantined state. During this problem user will not be able to access his mailbox neither by Outlook nor any clients)
(You could refer https://www.nucleustechnologies.com/blog/how-to-fix-exchange-mailbox-quarantine-issue/ to have an idea about possible causes for a mailbox to go in to quarantined mode).

To confirm this we ran the below command via the Exchange Powershell

Get-Mailboxstatistics -identity “Test User” | fl Isquarantined

The output was True , now we could confirm his mailbox is in quarantined state.

To disable the quarantine state we ran the below command:

Disable-MailboxQuarantine “Test User”

But , for us unfortunately , the user mailbox goes again to quarantine mode after few minutes. Thus we tried to repair the mailbox using the below command.:

New-MailboxRepairRequest -Mailbox test@test.local -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,Folderview

In our situation even the repair was not solving the issue and we had to recreate the mailbox. The reason , I shared the above steps as it could help somebody , without the need for recreating the mailbox.

Good Luck.


September 1, 2019 at 12:07 pm Leave a comment

Choose the right authentication method for your Azure Active Directory hybrid identity solution

Choosing the right authentication method , during the new implementation of Hybrid Cloud Infrastructure or Migrating an existing On-Premise towards Cloud with the intention to have a  Hybrid Solution is really mandatory as it will help to avoid any disruptive situations. It has to be a well informed plan and execution process. The decision should be made only on valid compelling reasons. However, Microsoft have published an article in this regard and it can be accessed via https://aka.ms/auth-options.

I would recommend to refer this article as it could be an handy guide to guide the customers and other stakeholders during a project.

June 24, 2019 at 12:09 pm Leave a comment

How to Track File Deletion on a File Server

Hi Folks

Anybody wants to enable auditing on their file server , for the purpose of tracking and auditing who has deleted any files or folders , I would recommend the below article.

https://blogs.technet.microsoft.com/askds/2009/08/04/tracking-a-remote-file-deletion-back-to-the-source/

It covers detailed steps on how to enable the Group Policy for auditing and enabling Folder level Auditing parameters. However after enabling the required configuration you need to filter out for the event ID’s 4663,4624,5140, and 4660 in the Security Event Log.

These event ID’s will provide the audit trail for the event.

June 18, 2019 at 12:22 pm Leave a comment

How to reject emails that tagged as SPAM by spamassassin

Hi Guys,

I have wrote a seperate blog post on how to configure spamassassin ,spamass-milter & sendmail to combat SPAM. But this article focus on how to reject emails that are tagged as SPAM by spamassassin. By default  the emails will not be rejected , and it will be delivered to the MTA as it is.

In order to achieve this , you need to modify the spamass-milter configuration file in  /etc/sysconfig/spamass-milter , and uncomment the line

EXTRA_FLAGS=”-m -r 15″

and modify the -r value to based on your needs, and leave the -m as it is, this will prevent the spamass-milter modifying the header. In my case I have set the -r value to 5 . Do not forget to restart the spamassassin , spamass-milter & sendmail services.

That’s it.

April 8, 2019 at 11:33 am Leave a comment

System Reserved Partition is full and the VEEAM backup job with Guest Processing option enabled will fail.

When there is less free space on the System Reserved Partition , the VEEAM backup jobs will fail(Only when the Guest Processing is enabled). There are so many articles , you could use to solve this issues at the Microsoft Operating System level , leveraging Native MS Tools or some 3rd Party Disk Management Tools.

On the other hand , you could use VMware VCenter Converter to increase the System reserved Partition , by using the “Convert VM” option. To do so , during the Wizard , when you reach the last screen

  • Select “Data to Copy”
  • Then Choose “Select Volumes to Copy” in Data Copy Type.
  • Select the System Reserved Partition and then choose “Type size in GB” and enter the desired value.
  •  

That’s it once the VM is converted , the System reserved partition will be expanded. Now you could happily backup the VM’s using the VEEAM B&R.

Update1:

Even after the above procedure we still had the same issue . However , we were able to identify the root cause and fix it permanently with the help of VEEAM support.

Cause: Even though we increase the system reserved partition size  , under System reserved partition properties (in Disk Management , Right Click on System reserved partition and select Properties) we were able to see that, the maximum limit has not been updated  in the Shadow copies Tab , and it was showing the old value only.

Resolution : When we changed the settings to No Limit , voila the backup started working fine.

 

 

March 24, 2019 at 12:32 pm Leave a comment

Older Posts


Archives

Categories

Follow Hope you like it.. on WordPress.com

Blog Stats

  • 25,537 hits

%d bloggers like this: