0% found this document useful (0 votes)
652 views

VMAX Commands

1. The document provides commands for managing storage groups, LUNs, port groups, initiator groups, and other objects on a VMAX array. 2. It includes commands for creating, modifying, viewing, and deleting these objects as well as managing associated tasks like adding/removing LUNs from storage groups. 3. Examples are provided for common management tasks like creating a storage group, adding LUNs to it, creating a masking view to map the LUNs to specific initiators, and more.

Uploaded by

Priyank Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
652 views

VMAX Commands

1. The document provides commands for managing storage groups, LUNs, port groups, initiator groups, and other objects on a VMAX array. 2. It includes commands for creating, modifying, viewing, and deleting these objects as well as managing associated tasks like adding/removing LUNs from storage groups. 3. Examples are provided for common management tasks like creating a storage group, adding LUNs to it, creating a masking view to map the LUNs to specific initiators, and more.

Uploaded by

Priyank Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

================================================================

view the storage grp, port grp & init grp created on vmax3
================================================================
symaccess -sid 933 list (-v )

========================
STORAGE GROUP COMMANDS:
========================

create storage grp symsg –sid 933 create test_sg –slo gold –
workload oltp
slo can be : diamond, platinum,
gold, bronze
if slo not defined: by default:
otpimized
workload can be: oltp ,oltp_rep ,
dss, dss_rep

Adding LUNs to SG symsg -sid 933 -sg TEST_SG addall devs -range
50:53
symsg -sid 933 -sg SG_name add dev
30
sysg -sid 933 -sg SG_NAME add dev
30 -lun (HLU ID) #TO ASSIGN HLU WHILE ADDING
SG_TVT-PLD-ESX-19_boot 00D67

Removing LUNs from SG symsg -sg TEST_SG rmall devs -range 50:53
symsg -sid 933 -sg SG_name remove
dev 30

View Storage grp symaccess -sid 933 list -type storage -v


symsg list -detail

view LUNs in SG symsg show SG_name

Convert SG to cascaded symsg -sid 933 [-i <Interval>] [-c <Count>] [-


v]convert -cascaded <SgName> <ChildSgName>

Create Cascaded SG symaccess -sid 933 create -name <SG>


-type storage -sg <CHILD-SG>,<CHILD-SG>
symsg -sg PARENT_SGNAME -sid 933 [-
i Interval] [-c Count] [-v] [-celerra] [-rp] [-ckd] add sg
SgName1[,SgName2,SgName3,"

===============================
LUN/Device/ Tdev ccommands
===============================
Create LUN symconfigure -sid 933 -cmd "create dev
count =1, config=tdev, emulation=fba, size=100 GB, sg=test_sg;" preview
symconfigure -sid 933 -cmd "create
dev count =1, config=tdev, emulation=fba, size=100 GB, sg=test_sg;" prepare
symconfigure -sid 933 -cmd "create
dev count =1, config=tdev, emulation=fba, size=100 GB, sg=test_sg;" commit
symconfigure -sid 933 -cmd "create
dev count =1 config=tdev, preallocate size =ALL, emulation=fba, size=100 GB,
sg=test_sg;" commmitt
config can be: tdev , tdev+bcv
emulation can be: fba
,celerra_fba , AS/400_D910_099

List assignments for device symaccess -sid 120 list assignments -devs
20:22 .............. ( For range )
symaccess -sid 120 list assignments
-devs 23,36,24 .............. ( For specific devices )

List TDEV Dev details symcfg -sid 933 list -tdev -detail
symcfg list -tdev -srp -fba
(To list FBA tdev)symdev list -wwn … ( To show UID of all LUNs )
symdev list -[gb|mb|tb ]
… (To show Size of all LUNs)
symdev -sid 933 show <DEVID> …
( to view details propertied of specific device )

Start free space of LUNs which fails to delete due to track allocation
symdev -sid 933 -dev 00150 free
-all
symdev -sid 933 -devs 00150:001AB
free -all (multiple dev)

Delete LUN symconfigure -sid 933 delete dev <DEVID>


OR symdev delete <DEVID> -sid 933
symdev -sid 933 delete -devs
213:215 (Multiple LUNs range)

===========================
Masking view commands:
============================

Create masking view symaccess –sid 933 create view –name


test_mv –pg test_pg –sg test_sg –ig test_ig

View Masking View: symaccess -sid 933 list view


-------------------- ( Show all views )
symaccess -sid 933 show view
MV_name -detail ---------( Show specific MV details )
symaccess -sid xxx show view
<masking_view_name>

================
SRP / pool commands:
===============
CHeck the pool subscribe status symcfg -sid xxx list -pool -detail -thin -tb
Check max pool subscribe symcfg show -pool <poolname> -thin -detail

Set max % subscribe : symconfigure -sid xxx -cmd "set pool


POOLNAME ,type=thin,max_subs_percent=100(value);" preview

View SRP details symcfg list -srp -detail -tb


symcfg list -srp -v
symcfg show -srp <NAME of SRP> -tb
symcfg list -sid 0802 list -srp
-detail -v
symcfg -sid xyz list -demand -v
Display Virtual Pool symcfg list -pool
symdisk list -dskgrp_summary
symdisk list

SRP usage consumption: symsg list –srp –demand –type slo

Report SG demand on SRPs symcfg -sid 230 list -srp -demand -type sg

SLO: symcfg list -slo


symcfg list -slo -detail
-by_resptime -all

SLO associations by SG: Symsg list –by_slo –detail

==============================
Moving device to another storage group:
==============================
symsg -sid 123 -sg prod_sg move dev 30 test_sg

===========================
INITIATOR GRP COMMANDS:
===========================

check initiator wrt Dir ports: symaccess -sid 933 list logins

Create a init grp: symaccess -sid 933 create -name


MUM_EXCH05_vHBA0_IG -type initiator -wwn 20000020B5100010 -consistent_lun

Create Parent IG & Add child IG symaccess -sid 933 create -name MUM_EXCH06_IG
-type initiator -ig MUM_EXCH06_vHBA0_IG

Add wwn to existing IG: symaccess -sid 933 -name IG_NAMW add -type
initiator -wwn 10000000c94ef69c

Add child IG into existing IG: symaccess -sid 933 -name MUM_EXCH06_IG add
-type initiator -ig MUM_EXCH06_vHBA1_IG

Add multiple child IG into existing IG: symaccess -sid 933 -name MUM_EXCH06_IG
addall -type initiator -ig MUM_EXCH06_vHBA1_IG,IG2,IG3

Remove initiator from Init grp: symaccess -sid 245 -name IG_1 remove -type
initiator -wwn 10000000c94ef69c (IF WWN)
symaccess -sid 245 -name IG_1
remove -type initiator -ig IG_name ( IF Child IG )

View IG properties symaccess -sid 933 -type initiator


-detail show <init_group_name>

List devices mapped to an init grp: symaccess -sid SymmID list devinfo
symaccess -sid SymmID list
devinfo -ig IG_Name

*******************************************************************
Replace wwn number of HBA in case HBA is replaced from the host end
--------------------------------------------------------------------
symaccess -sid 933 replace -wwn Oldwwn -new_wwn NewWWN

================================================
DELETE initiator grp / Port grp / Storage grp :
=================================================
symaccess -sid 933 -name IG_1 -type initiator delete
symaccess -sid 933 -name SG_1 -type storage delete
symaccess -sid 933 -name PG_1 -type port delete

================================================
RENAME INIT GRP / PORT GRP / STORAGE GRP
================================================
symaccess -sid 933 rename -name IG_1 -type initiator -new_name New_Name_IG
symaccess -sid 933 rename -name SG_1 -type initiator -new_name New_Name_SG
symaccess -sid 933 rename -name PG_1 -type initiator -new_name New_Name_PG

======================
PORT GROUP COMMANDS:
======================

Create port grp & add dir ports in single command: symaccess create
-sid 933 -name PG_1 -type port -dirport 1D:0,2D:0,3D:0,4D:0
View port grp:
symaccess -sid 933 -type port show portgrname
Add port in existing port group
symaccess -sid 933 -name D1_D2_P24_P28_PG -type port add -dirport
1D:24,1D:28,2D:24,2D:28
View ports added in Port group:
symaccess -sid 933 -type port show PG_NAME

symaccess -sid 933 list -type port -name PG_NAMW


Remove ports from port group symaccess
-sid 245 -name PG_test -type port remove -dirport 1D:24
Delete Port Group:
symaccess -sid -name PGNAME -type port delete
To view FA ports: symcfg
-sid 933 list -port -fa all
Check if director is part of Port Group symaccess
-sid 933 list -dirport 7F:0 -type port

===============================
To check initiator/hba zoned with storage:
================================
symaccess -sid 933 list logins

==============================
DIRECTOR VIEW COMMANDS
=============================
View Dir ports and types symcfg list -dir ALL -sid 933
To list front end directors symcfg list -FA ALL -sid 933
To list rdf directors symcfg list -RA ALL -sid 933
To view all ports WWN details symcfg -sid 34 list -dir all -v

=============================
Gatekeeper command
=============================
Create Gatekeeper & add in SG: symconfigure -sid 933 -cmd
"create gatekeeper count=6, emulation=FBA, sg=SG_name;" commit
List gatekeeper devices: symgate list -sid 933

===================================================================================
======
SRDF
===================================================================================
======
Convert Director FA to RA: symconfigure convert dir 7H to type = RF;
(ONLY VMAX2)
----------------------------------------------------
To view remote array adapters visible to the array
----------------------------------------------------
symsan list -sid 933 -sanrdf -dir all
--------------------------------------
To view all arrays visible
----------------------------
symcfg discover
symcfg list
------------------------------------
CREATING A DYNAMIC RDF GROUP
----------------------------------
symrdf addgrp -label SRDF_Sync -sid 933 -remote_sid 934 -dir <DIRPORT1,DIRPORT2>
-remote_dir <DIRPORT1,DIRPORT2> -rdfg 10 -remote_rdfg 10
-------------------------------
TO VIEW SRDF GROUPS
---------------------
symcfg list -sid 933 -rdfg all
-------------------------------
TO VIEW SPECIFIC SRDF GROUPS
------------------------------
symcfg/symrdf list -sid 933 -rdfg 3
----------------------------
CREATING RDF DEVICE PAIR
--------------------------
symrdf createpair -sid 933 -f <FILE.TXT> -type R1 -rdfg <10> -establish
--------------------------------
Remove Device from Device group
--------------------------------
symdg -g MyDg remove ld DEV002
------------------------------------
query SRDF device using a pair file
------------------------------------
symrdf -sid 1234 -rdfg 3 -file rdf.txt query

==============================
Snapvx / SNAPSHOT
==============================
Create snapshot
------------------
symsnapvx -sid 933 -sg <SGNAME> snapvx establish name <SNAPNAME>
----------------
Listing snapshot
----------------
symsnapvx -sid 933 list -sg <SGNAME> -detail
--------------------------------------------------------------------------
Setting Time-To-Leave ( Expiry date ) on snapshot ( expires after 5 days )
--------------------------------------------------------------------------
symsnapvx -sid 933 -sg <SGNAME> -snapshot_name <SNAPSHOTNAME> -generation 0 set ttl
-delta 5
--------------------------------------------------------------------------
Linking snapshot to a target device
--------------------------------------------------------------------------
symsnapvy -sid 933 -sg <SGNAME> -snapshot_name <SNAPNAME> -gen <GENNUMBER> -lnsg
<TARGETSG>
--------------------------------------------------------------------------
Re-linking Snapshot to Target
--------------------------------------------------------------------------
symsnapvy -sid 933 relink -sg <SGNAME> -snapshot_name <SNAPNAME> -gen <GENNUMBER>
-lnsg <TARGETSG>
--------------------------------------------------------------------------
Check if snapshots are linked to target
--------------------------------------------------------------------------
symsnapvx -sid 933 list -sg <SGNAME> -detail -linked
--------------------------------------------------------------------------
Restoring from snapshots
--------------------------------------------------------------------------
symsnapvy -sid 933 restore -sg <SGNAME> -snapshot_name <SNAPNAME> -gen <GENNUMBER>
--------------------------------------------------------------------------
Terminating snapshot
--------------------------------------------------------------------------
symsnapvy -sid 933 terminate -sg <SGNAME> -snapshot_name <SNAPNAME> -gen
<GENNUMBER>

==================
Clone / Symclone
==================
--------------------------------------------------------------------------
Creating a pair of source & target to clone using file
--------------------------------------------------------------------------
symclone -sid 933 create -f scoprio_krypton_clone.txt
--------------------------------------------------------------------------
List the cloning pairs
--------------------------------------------------------------------------
symclone list -v
--------------------------------------------------------------------------
Activate the cloning the session for copying process
--------------------------------------------------------------------------
symclone -sid 933 activate -f scoprio_krypton_clone.txt -consistent
--------------------------------------------------------------------------
Monitor the copying status
--------------------------------------------------------------------------
symclone query -sid 933 -f scoprio_krypton_clone.txt
--------------------------------------------------------------------------
Initiating a re-sync for already copied session
--------------------------------------------------------------------------
symclone -sid 933 recreate -f scoprio_krypton_clone.txt
symclone -sid 933 activate -f scoprio_krypton_clone.txt -consistent
--------------------------------------------------------------------------
Stop & terminate a cloning session
--------------------------------------------------------------------------
symclone -sid 933 terminate -f scoprio_krypton_clone.txt
stordaemon list -all

You might also like