VMAX SAN Commands
VMAX SAN Commands
List HOSTNAME
===============================
symaccess -sid xxxx list -v | grep -i HOSTNAME
-------------INITIATOR--------------------
delete IG
=================================
symaccess -sid xxxx -name <IG-NAME> -type init delete
------------PORT-----------------------
show a PG
==================================
symaccess -sid xxxx show <PG> -type port
add devs to SG
=================================
symaccess -sid xxxx -type storage -name <SG_NAME> add devs xxxx,xxxx
show SG
=================================
symsg -sid xxxx show <SG_NAME>
rename SG
=================================
symaccess -sid xxxx -type storage -name OLD-SG-NAME rename -new_name NEW-SG-NAME
----------------FAST ASSOCIATION----------------------
associate SG to FP
==================================
symfast -sid xxxx -fp_name <FAST-POLICY-NAME> associate -sg <SG-NAME> -prio 2
bind to pool
==================================
symconfigure -sid xxxx -cmd "bind tdev xxxx to pool <POOL-NAME>;" -v prepare
OR
for i in `cat input`; do echo $i; symcfg -sid xxxx list -tdev -dev $i -GB -i 60;
done
Pool Migration
==============================
1. Validate the migration:
symmigrate -sid xxxx -sg <SG-NAME> -tgt_pool -pool <POOL-NAME> -name VP_migration
validate
----------------DEVICES-------------------------
create TDEVs
===================================
symconfigure -sid xxx -cmd "create dev count=<4>, size=<16386> cyl, emulation=FBA,
config=TDEV;" -v prepare (emulation=as/400_d910_099 pentru mainframe!!!)
symconfigure -sid xxx -cmd "create dev count=<1>, size=<273104>
config=TDEV,emulation=fba, meta_member_size=<34138> meta_config=Striped binding to
pool=<tfcsod12dg01>,(dynamic_capability=dyn_rdf,device_attr=SCSI3_persist_reserv);"
-v -nop prepare
dissolve meta
====================================
symconfigure -sid xxxx -cmd "dissolve meta dev xxxx;" -v prepare
copy devices
====================================
symconfigure -sid xxx -cmd "configure 5 devices copying dev xxxx;" -v -nop prepare
Convert a device
====================================
symconfigure -sid XXX "convert dev YYY to BCV+R-5;" preview
Reserve a LUN
==============================
symconfigure -sid xxxx -cmd "reserve dev xxxx;" -owner a586790 -comment "ch CHG-
000383465" -expire MONTH/DAY reserve -nop
Delete device
=============================
symconfigure -sid xxxx -cmd "delete dev yyyy:yyyy;" -v prep
Find device after MegaBytes (and show only first MegaBytes line)
=============================
for i in `cat input`; do echo $i; symdev -sid xxxx show $i | grep -m 1 "MegaBytes";
done
Creating a clone (create a clone file .txt and add devs on two columns X Y where X
is source and Y target)
=============================
symclone -sid xxxx -f <clone-file> query
symclone -sid xxxx -f <clone-file> create (-precopy)
symclone -sid xxxx -f <clone-file> activate
symclone -sid xxxx -f <clone-file> terminate
RDF
======
for i in `cat input`; do echo $i; symdev -sid xxxx show $i | grep "Time of Last
Device Link Status Change"; done
for i in `cat input`; do echo $i; symdev -sid xxxx show $i | grep "Remote Device
Symmetrix Name"; done
for i in `cat input`; do echo $i; symdev -sid xxxx show $i | grep "RDF (RA) Group
Number"; done
create pair directly to syncronized mode without any rdf mode (NEW DEVICES - nu mai
trebuie sa se faca sync cu -format)
==============================
symrdf -sid xxx -rdfg xxx -f <FILE> createpair -type R1 -format
Split pair
==============================
symrdf -sid xxxx -f <FILE> -rdfg xxx split
Suspend pair
==============================
symrdf -sid xxxx -f <FILE> -rdfg xxx suspend
Enable/disable pair
==============================
symrdf -sid xxxx -f <FILE> -rdfg xxx enable/disable
Extending devices
==============================
Method 1:
Method 2:
a. create a new device with the exact same size (and members) as original dev bound
and preallocated = all
b. create members to extend original devices (check one member of original device
to see how many new devs need to be created)
c. add new members to original meta with bcv meta head NEW dev
AUDIT commands
====================================
symaudit -sid xxxx list -symdev_range 1113:1113 -start 7/01/2015
symaudit -sid xxxx list -rec 56151 -n 1 -v
-------------MASKING VIEW-----------------------
create view
====================================
symaccess -sid xxxx create view -name <MV-NAME> -sg <SG-NAME> -ig <IG-NAME> -pg
<PG-NAME>
show masking view
====================================
symaccess -sid xxxx show view <MV-NAME>
-------------OTHER-----------------------------
USEFUL
===============================
symCOMMAND COMMAND |clip
===============================
(cat) `which devinfo.sh`