Tuesday, May 4, 2021

Failed Operation was vetoed by lock_manager. Check the event log | NetApp Notes

 Hi Friend, This scenario i came across while doing takeover and giveback process of NetApp Cluster nodes. 

First we have rebooted one node and giveback process completed successfully, however when we do the same on another node, Node came back normally however services and resources are not giveback to same node.

ARKIT-NA::*> storage failover show-giveback
               Partner
Node           Aggregate         Giveback Status
-------------- ----------------- ---------------------------------------------
ARKIT-NA01
               CFO Aggregates    Done
               aggr1_SATA_SNY_NA02
                                 Failed: Operation was vetoed by lock_manager. Check the event log
ARKIT-NA02
                                 No aggregates to give back


Using below command we are going to give back the resources to node2


ARKIT-NA::*> storage failover giveback -ofnode ARKIT-NA02 -override-vetoes true

Warning: Initiating a giveback with vetoes overridden will result in giveback proceeding even if the node detects outstanding issues that
         would make a giveback dangerous or disruptive. Do you want to continue? {y|n}: y

Info: Run the storage failover show-giveback command to check giveback status.


 After give back process initiated

ARKIT-NA::*> storage failover show-giveback
               Partner
Node           Aggregate         Giveback Status
-------------- ----------------- ---------------------------------------------
ARKIT-NA01
               CFO Aggregates    Done
               aggr1_SATA_SNY_NA02
                                 In progress module: lock_manager
ARKIT-NA02
                                 No aggregates to give back


ARKIT-NA::*> storage failover show
                              Takeover
Node           Partner        Possible State Description
-------------- -------------- -------- -------------------------------------
ARKIT-NA01       ARKIT-NA02       true     Connected to ARKIT-NA02, Giveback of
                                       SFO aggregates in progress
ARKIT-NA02       ARKIT-NA01       true     Connected to ARKIT-NA01


Check if any services issues on NetApp storage.

ARKIT-NA::*> system health subsystem show
Subsystem         Health
----------------- ------------------
SAS-connect       ok
Environment       ok
Memory            ok
Service-Processor ok
Switch-Health     ok
CIFS-NDO          ok
Motherboard       ok
IO                ok
MetroCluster      ok
MetroCluster_Node ok
FHM-Switch        ok
FHM-Bridge        ok
12 entries were displayed.

ARKIT-NA::*> system health alert show
This table is currently empty.

That's about this post, if your node is struck with giveback process use above command to giveback without vetoed.

Tuesday, March 2, 2021

How To Automate SnapCenter Snapshot Mounting & Unmounting using PowerShell

How To Automate SnapCenter Snapshot Mounting & Unmounting using PowerShell

In this post we are going to see how to mount SnapCenter snapshots using PowerShell Cmdlets.

Scenario: We would like to backup the snapshots (Created by SnapCenter) data using one of backup application. Before we were used to have SnapManager with SnapDrive Commands. In SnapCenter Snapdrive may not work as expected, frequently we get timeout error.

In order to do this we need atleast SnapCenter version 4.4.

Create a secure string out of user password

> read-host -assecurestring | convertfrom-securestring | out-file c:\mysecurestring.txt

After creating the Secure string use below powershell cmdlets to establish connection with SnapCenter

$pass = cat C:\mysecurestring.txt | convertto-securestring 
$mycred = new-object -typename System.Management.Automation.PSCredential -argumentlist "Domain\UserName",$pass

Open-SmConnection -Credential $mycred -SMSbaseUrl https://SnapCenterIP:8146

Now Mount the snapshot using below command

Mount-SdSnapshot -Path SVMNAME:/vol/Volume/Lun -Snapshot SnapShotName -MountPath E: -Host BackupServer.domain.com

You can Un-Mount the mounted snapshot using below command

Dismount-SdSnapshot -Path "E:" -Host BackupServer.domain.com

That's it. You can use the same scripts as Pre and Post for your backup application

Comment your feedback