Sunday, 1 June 2014

Vserver/Storage Virtual Machine (SVM) Dismantling

Introduction

There is a vserver
delete command in the Clustershell, but it quite rightly blocks you from
destroying the Vserver until you’ve done certain things. The following post
takes as an example, a fairly well developed lab SVM, and walks through the
steps to dismantling it. This information is useful for tidying up test/lab
SVM(s).

Example SVM

We have a cluster called NACLU1 with an SVM called NASVM1.
NASVM1 is a fairly well developed SVM - it’s got:

i) A Domain Tunnel for Active Directory Authentication

security login domain-tunnel show

ii) Some DP and XDP SnapMirrors going to other clusters

snapmirror list-destinations -source-vserver
NASVM1

iii) Is a destination for some DP SnapMirrors, and also
has LS SnapMirrors of its rootvol

snapmirror show -destination-vserver NASVM1

iv) Vserver peers

vserver peer show

v) Vserver transition peers

vserver peer transition show

vi) Mounted Volumes

vol show -vserver NASVM1 -fields
junction-path

vii) A number of volumes

vol show -vserver NASVM1

viii) Has a running CIFS server

vserver cifs show -vserver NASVM1

Step by Step - Destroying the SVM

1) Domain Tunnel

NACLU1::> security login domain-tunnel show

NACLU1::> security login domain-tunnel delete

2) SnapMirror
Destinations

NACLU1::> snapmirror list-destinations
-source-vserver NASVM1

NACLU1::> snapmirror release -destination-path
DEST-SVM:DEST-VOL

Repeat until have released all SnapMirror destinations
for NASVM1

3) SnapMirror
Delete

NACLU1::> snapmirror show -destination-vserver NASVM1

NACLU1::> snapmirror delete -destination-path
NASVM1:VOL-NAME

Repeat until have deleted all SnapMirror destinations to
NASVM1 (including LS Mirrors)