Professional Documents
Culture Documents
Cheatsheets - Powermax - RST at Master Kckecheng - Cheatsheets GitHub
Cheatsheets - Powermax - RST at Master Kckecheng - Cheatsheets GitHub
master
cheatsheets / powermax.rst
kckecheng
correct commands
History
1
contributor
VMAX Tips
SYMCLI
Volume/Device Type
Volume/Device Type
Auto Meta
Pool
Provision LUNs to a host - demo
Get VMAX ID
Get unmapped Devices
List a range of Devices
Create and Verify Storage Group
Get Target Ports
Create and Verify Port Group
Get host WWPN on FC switch/host
Create a initiator WWN File
Create and Verify Initiator Port Group
Create and Verify a Masking Veiw
Thin Provisioning
Get help
symconfigure examples
MISC Commands
Add Initiators to an Initiator Group
Add devices to an storage group
Delete views
Delete storage groups
Delete port groups
Delete initiator groups
Delete devices
Rename views
Rename storage group
Rename port group
Rename initiator group
Commands with RecoverPoint
List SG/PG/IPG
List host connected/zoned
Get director bit/flag info
List Directores
List devices summary by type
Show disk details
Show Real Time FA Stats
Host Visible VS. All
Unmap device manually after deleting storage view
List initiator loggedin
Find RA WWN
FCOE Port
Disable ACLX on FA port
Online Device Expansion
SymmWin
Check Slic Map
TF/Clone
Clone to Regular Devices
Clone to BCV Devices
Open Replicator Demo
SRDF
Demo
MISC Commands
SRDF/Metro
NDM
Setup and create a migration session
Query
Cancel
Cutover
Revert
Commit
Recover
Remove the migration environment
SYMCLI
Volume/Device Type
STD - standard devices, 2-Way-Mir/RAID-5/RAID-6/etc.
VDEV - configured for Timefinder/snap
TDEV - thin device, used for virtual provision
R1/R2 - for SRDF
DATA - for virtual provision, store actual data for TDEV
SAVE - for Timefinder/snap and SRDF/A DSE, store actual data for VDEV/R1/R2
DRV - dynamice reallocation volumes devices, for symmetrix optimizer and FAST
Volume/Device Type
Named LUN in industry;
Also called Symmetrix device in EMC, an identifier will be assigned to it;
Enginuity maps a logical volume to physical disks on back-end(hyper-volumes or
splits);
Present to a host through Symmetrix channel diretor port after device masking
Auto Meta
If you want to create a single regular device larger than the maximum size, Symmetrix
will create a metadevice instead when auto meta feature is enabled. If auto meta is
disabled (which is by default), creating device fails.
symconfigure -sid xxx -cmd "set symmetrix auto_meta=ENABLE,
min_auto_meta_size=65520, auto_meta_member_size=16380,
auto_meta_config=concatenated;" commit
min_auto_meta_size: Specifies the size threshold that triggers auto meta
creation;
auto_meta_member_size: Specifies the default meta member size in cylinders
when the auto_meta feature is enabled;
auto_meta_config: Specifies the default meta config when the auto_meta feature is
enabled;
Pool
msnap: contain save devices, used by TimeFinder/Snap;
mrdf_dse: contain save deivces, used by SRDF/A DSE;
mthin: contain data devices, used by virtual provisioning.
Get VMAX ID
# symcfg list
S Y M M E T R I X
Cap
# symaccess create -sid 815 -name elcsesx_devs -type storage devs 0510:0514
Symmetrix ID : 000xxxxxx815
Devices : 0510:0514
None
S Y M M E T R I X F I B R E D I R E C T O R S
AVPF Speed
Legend:
Flags:
# symaccess create -sid 815 -name elcsesx_target -type port -dirport 7E:0,7
# symaccess -sid 815 show elcsesx_target -type port
Symmetrix ID : 000xxxxxx815
Director Identification
FA-7E:0
FA-7E:1
FA-8F:0
FA-8F:1
None
Symmetrix ID : 000xxxxxx815
D i M ki St t S
Device Masking Status : Success
WWN : 10000000c997bee8
ip Address : N/A
Type : Fibre
WWN : 10000000c997bee9
ip Address : N/A
Type : Fibre
#touch /tmp/wwns
# symaccess create -sid 815 -name elcsesx_initports -type initiator -file /tm
# symaccess -sid 815 show elcsesx_initports -type initiator
Symmetrix ID : 000xxxxxx815
Host Initiators
None
None
# symaccess -sid 815 create view -name elcsesx_view -sg elcsesx_devs -pg elcs
(Notices: option -lun xxx canbe used together to set the starting LUN - dynam
# symaccess -sid 815 list view
Symmetrix ID : 000xxxxxx815
......
Thin Provisioning
1. Find device with the same size
DATA devices in a pool should have the same size;
symdev -sid xxx list -all -cyl
- From the output, find devices with the same size
from the Cap(capacity) field, say 1150;
2. Create thin devices
touch mktdev.cfg
echo "create dev count=8, size=1150, config=TDEV, emulation=FBA;" > mktdev.cfg
symconfigure -sid xxx -file mktdev.cfg prep -nop ---------------> Perform a check
before making the change
symconfigure -sid xxx -file mktdev.cfg commit -nop
symdev -sid xxx list -tdev -unbound -------------------------------> Display the created thin
devices
3. Create data devices
touch mkddev.cfg
echo "create dev count=8, size=1150, config=2-Way-Mir, emulation=fba,
attribute=datadev;" > mkddev.cfg
symconfigure -sid xxx -file mkddev.cfg commit -nop
symdev -sid xxx list -datadev -nonpooled
4. Create a thin pool
symconfigure -sid xxx -cmd "create pool P1 type=thin;" commit -nop
5. Add data devices into a pool
symconfigure -sid xxx -cmd "add dev 1A9:1AA to pool P1 type=thin,
member_state=ENABLE;" commit -nop
symcfg -sid xxx list -pool -thin
symcfg -sid xxx show -pool P1 -thin
6. Bind thin devices to a thin pool
Symconfigure -sid xxx -cmd "bind tdev 1A1:1A4 to pool P1;" commit -nop
symcfg -sid xxx list -tdev
symcfg -sid xxx show -pool P1 -thin -detail
7. Pre-allocate space on TDEV(optional)
touch alloc.cfg
echo "start allocate on tdev 1A1:1A2 start_cyl=0 size=100 MB;" > alloc.cfg
symconfigure -sid xxx -f alloc.cfg commit -nop
symcfg -sid xxx list -tdev
symcfg -sid xxx show -pool P1 -thin -detail
8. Provision thin devices to hosts as normal devices
Done
9. Check TDEV info
symcfg list -tdev -devs 1180:1182 -sid 316
10. Unbind a thin device
symconfigure -sid 815 -cmd 'unbind tdev 02ED from pool elcsesx6263;' -nop
commit
11. Remove date devices from a pool
symconfigure -sid 815 -cmd 'disable dev 02B2:02B4 in pool
elcsesx6263,type=thin;' -nop commit
symconfigure -sid 815 -cmd 'remove dev 02B2:02B4 from pool elcsesx6263
type=thin;' -nop commit
12. Remove a thin pool
symconfigure -sid 815 -cmd 'delete pool elcsesx6263,type=thin;' -nop commit
Get help
symcli : show version of the CLI
symcli -h : get brief online help of the symcli commands
symcli -v : display all symcli commands and their short descriptions
symcli -env : env can be set
symcli -def : env defined for current session
symconfigure examples
Query configuration session
Create a device
Symconfigure -sid xxx -cmd "create dev count=3, size=5 GB, config=2-W
Delete a device
Reserve/release a device
MISC Commands
#symaccess -sid 815 -name elcsaix127_128_iports add -type initiator -wwn c05
#symaccess -sid 815 -name elcsaix127_128_sg -type storage add devs 1E37:1E38
Delete views
#symaccess -sid 815 -name elcsaix127_devs -type storage remove devs 0128:0131
#symaccess -sid 815 -name elcsaix127_devs -type storage delete
#symaccess -sid 815 -name elcsaix127_tports -type port remove -dirport 7E:1,8
#symaccess -sid 815 -name elcsaix127_tports -type port delete
#symaccess -sid 815 -name elcsaix127_iports -type initiator remove -wwn c0507
......
Delete devices
symcfg -sid <sid> -i 15 -c <counter> -devs <device range> verify -tdev -[allo
Rename views
#symaccess -sid 815 rename -name elcsaix128_devs -type storage -new_name elcs
#symaccess -sid 815 rename -name elcsaix128_tports -type port -new_name elcsa
List SG/PG/IPG
Symmetrix ID : 000xxxxxx815
-------------------------------- ---------
cswin172_iports Initiator
cswin173_iports Initiator
elcsaix127_128_iports Initiator
......
elcsesx62_65_tpg Port
elcslin55_tports Port
elcssun103_tports Port
elcssun153_tports Port
......
elcslin55_devs Storage
elcslin56_sw31 Storage
elcssun103_devs Storage
......
List Directores
Front-end Fibre
f id li di ll
# symcfg -sid 815 list -dir all
S Y M M E T R I X D I R E C T O R S
After deleting a storage view, masks for devices which are mapped to defined director
ports in the port group definition won't be deleted automatically if -unmap is not used;
symdev -sid xxx not_ready dev xxx;
symconfigure -sid xxx -cmd 'unmap dev XXX from dir ALL:ALL;' commit
Find RA WWN
::
# symcfg -sid 218 list -dir 9h -p 0 -v => Then search WWN
FCOE Port
1. FCOE ports are taken as FC ports, in other words, it will be listed in "symcfg list -fa all"
output:
S Y M M E T R I X D I R E C T O R S
FE 4G Fib Ch l 2 3 2 Offli
FE-4G FibreChannel 2 3 2 Offline
S Y M M E T R I X D I R E C T O R P O R T S
Speed
(ACLX device (symdev -sid xxx list -aclx) is used for initial symm configuration. By default,
it is visible on all hosts. To disable this behavior, follow below commands)
# symconfigure -sid 162 -cmd "unmap dev 0001 from dir ALL:ALL;" commit
--- OR ---
symdev -sid <sid> modify -devs 1ac:1af -cap 200 -captype gb -tdev
SymmWin
TF/Clone
Clone to Regular Devices
……
---------------------------------------------------------------------
Sym Device
LdevName PdevName Dev Config Att.
---------------------------------------------------------------------
DEV001 N/A 0120 RAID-5
DEV002 N/A 0121 RAID-5
DEV003 N/A 0122 RAID-5
DEV004 N/A 0123 RAID-5
DEV005 N/A 0124 RAID-5
}
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (
--------------------------------- ---------------------------- ------------ -
DEV001 0120 33000 0 DEV002 0121 0 XXX. Created
……
……
---------------------------------------------------------------------
Sym Device
LdevName PdevName Dev Config Att.
---------------------------------------------------------------------
DEV001 N/A 0120 RAID-5
DEV002 N/A 0121 RAID-5
DEV003 N/A 0122 RAID-5
DEV004 N/A 0123 RAID-5
DEV005 N/A 0124 RAID-5
}
# symconfigure -sid 316 -cmd "create dev count=2, size=20625 MB, emulation=FB
# symdev list -sid 316 | grep '0E2[89]\|1E3[78]'
……
---------------------------------------------------------------------
Sym Device
LdevName PdevName Dev Config Att.
---------------------------------------------------------------------
DEV001 N/A 0E28 RAID-5
DEV002 N/A 0E29 RAID-5
}
---------------------------------------------------------------------
Sym Device
LdevName PdevName Dev Config Att.
---------------------------------------------------------------------
BCV001 N/A 1E37 BCV
BCV002 N/A 1E38 BCV
}
The Source device and the Target device do not form a Copy session
Device group 'clonegp' does not have any devices that are Clone source device
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (
--------------------------------- ---------------------------- ------------ -
DEV001 0E28 330000 0 BCV001 1E37 0 XXX. Created
DEV002 0E29 330000 0 BCV002 1E38 0 XXX. Created
Track(s) 660000 0 0
'clonegp' (y/[n]) ? y
'clonegp'.
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (
--------------------------------- ---------------------------- ------------ -
DEV001 0E28 198821 0 BCV001 1E37 0 XXX. CopyInProg
DEV002 0E29 191705 0 BCV002 1E38 0 XXX. CopyInProg
Track(s) 390526 0 0
'clonegp' (y/[n]) ? y
'clonegp'.
1. 2 x Arrays, one of them must be VMAX/DMX who provides Open replicator software.
Open replicator is also referred to as ORS(open replicator for symmetrix);
2. VMAX 098 as control, VMAX 316 as remote:
S Y M M E T R I X
4. Assume: hosts are accessing 316 devices through 7H:0 on VMAX 316, we want to hot
pull data with donor update option on to VMAX 098;
5. Create a zone: a director FA port from VMAX 098(say 7H:0) + a director FA port from
VMAX 316(say 7H:0 too) + host HBA WWNs to VMAX 316 7H:0
6. Prepare storage view on both VMAX 098 and VMAX 316:
VMAX 098 storage view:
Storage group: 0B59:0B5B;
Initiator group: nothing;
Port group: 7H:0;
VMAX 316:
Storage group: 1E37:1E39;
Initiator group: 7H:0 WWN of VMAX 098 + host HBA WWNs;
Port group: 7H:0;
7. Verify array connection:
Flags Num
Legend:
[team1@Redhatse ~]$ symsan -sid 098 list -sanluns -wwn 50000972082431D8 -dir
ST
Symdev=000xxxxxx098:0B59 wwn=60000970000xxxxxx316533031453337
Symdev=000xxxxxx098:0B5A wwn=60000970000xxxxxx316533031453338
Symdev=000xxxxxx098:0B5B wwn=60000970000xxxxxx316533031453339
10. Now, everything is fine. We should power off the host which access 1E37:1E39 on
VMAX 316 or delete WWNs of the host from the initiator group of the storage view
defined in step 6 since host write to remote devices should be avoided per open
replicator document;
11. Create an open replicator session and active it:
13. Now, host access can be restored at VMAX 098. We should add WWNs of the host
from the initiator group of the storage view defined in step 6 for VMAX 098 and delete
them from VMAX 316;
14. Terminate it:
15. Done.
SRDF
Demo
1. Identify Array Connections
S Y M M E T R I X R D F D I R E C T O R S
Remote
Ident Symb Num Slot Type Attr SymmID RA Grp RA Grp Statu
RF-8H 08H 120 8 RDF-R2 - 000xxxxxx218 101 (64) 101 (64) Onlin
- 000xxxxxx218 102 (65) 102 (65)
…...
S Y M M E T R I X R D F D I R E C T O R S
Remote
Ident Symb Num Slot Type Attr SymmID RA Grp RA Grp Statu
RF-9H 09H 121 9 RDF-R1 - 000xxxxxx098 101 (64) 101 (64) Onlin
…...
Notes: VMAX 098 will be used for R2 device and VMAX 218 will be used for R1
098 is local and 218 is remote:)
Symmetrix ID : 000xxxxxx218
S Y M M E T R I X R D F G R O U P S
RA-Grp (sec) RA-Grp SymmID T Name LPDS CHT Cfg CSRM time P
-------------- --------------------- -------------------------- ----- ----- -
100 (63) 10 - - D BES_100 XX.. ..X - -IS- 15
101 (64) 10 101 (64) 000xxxxxx098 D BES_101 XX.. ..X F-S -IS- 15
102 (65) 10 102 (65) 000xxxxxx098 D BES_102 XX.. ..X F-S -IS- 15
105 (68) 10 105 (68) 000xxxxxx098 D group_105 XX.. ..X F-S -IS- 15
109 (6C) 10 109 (6C) 000xxxxxx098 D group_109 XX.. ..X F-S -IS- 15
Symmetrix ID : 000xxxxxx098
S Y M M E T R I X R D F G R O U P S
RA-Grp (sec) RA-Grp SymmID T Name LPDS CHT Cfg CSRM time P
-------------- --------------------- -------------------------- ----- ----- -
101 (64) 10 101 (64) 000xxxxxx218 D BES_101 XX.. ..X F-S -IS- 15
102 (65) 10 102 (65) 000xxxxxx218 D BES_102 XX.. ..X F-S -IS- 15
105 (68) 10 105 (68) 000xxxxxx218 D group_105 XX.. ..X F-S -IS- 15
109 (6C) 10 109 (6C) 000xxxxxx218 D group_109 XX.. ..X F-S -IS- 15
# symconfigure -sid 218 -cmd 'create dev count=1, size=2 GB, emulation=FBA, c
dynamic_capability=dyn_rdf;' -nop commit
Target Array
# symconfigure -sid 098 -cmd 'create dev count=1, size=2 GB, emulation=FBA, c
dynamic_capability=dyn_rdf;' commit
Source Array
Target Array
Flags Remote
Dir Lnk
# symrdf addgrp -sid 098 -rdfg 110 -label dyngrp110 -dir 08H -remote_rdfg 110
Symmetrix ID : 000xxxxxx098
S Y M M E T R I X R D F G R O U P S
RA-Grp (sec) RA-Grp SymmID T Name LPDS CHT Cfg CSRM time P
-------------- --------------------- -------------------------- ----- ----- -
101 (64) 10 101 (64) 000xxxxxx218 D BES_101 XX.. ..X F-S -IS- 15
102 (65) 10 102 (65) 000xxxxxx218 D BES_102 XX.. ..X F-S -IS- 15
105 (68) 10 105 (68) 000xxxxxx218 D group_105 XX.. ..X F-S -IS- 15
109 (6C) 10 109 (6C) 000xxxxxx218 D group_109 XX.. ..X F-S -IS- 15
110 (6D) 10 110 (6D) 000xxxxxx218 D dyngrp110 XX.. ..X F-S -IS- 15
# cat SRDF_Mapping.txt
0B59 0FE5
Notes: the first column should be devices from local and the second column sh
Create SRDF Pair
# symrdf createpair -sid 098 -rdfg 110 -file SRDF_Mapping.txt -type R2 -inval
file 'SRDF_Mapping.txt'.
Note: although 098 is used to invoke the configuration and it is a local arra
it is the target for SRDF, hence the type is R2.
8. Establish
Mark target (R2) devices for full copy from source (R1)...Started.
Mark target (R2) devices for full copy from source (R1)...Done.
…...
9. Failover/Failback/Restore/Split/etc.
Standard A N A
Standard A N A
10. Query
Standard A N A
Track(s) 0 0 0 0
…...
Valid : Yes
Symmetrix ID : 000xxxxxx098
……
---------------------------------------------------------------------
Sym Device
LdevName PdevName Dev Config Att.
---------------------------------------------------------------------
DEV001 N/A 0B59 RDF2+Mir
}
……
RDF Type : R2
……
……
……
…...
file 'SRDF_Mapping.txt'.
Device Group 'KC_RDF2' has no associated RDF devices that match the criteria
Remove SRDF Group
Symmetrix ID : 000xxxxxx098
S Y M M E T R I X R D F G R O U P S
RA-Grp (sec) RA-Grp SymmID T Name LPDS CHT Cfg CSRM time P
-------------- --------------------- -------------------------- ----- ----- -
101 (64) 10 101 (64) 000xxxxxx218 D BES_101 XX.. ..X F-S -IS- 15
102 (65) 10 102 (65) 000xxxxxx218 D BES_102 XX.. ..X F-S -IS- 15
105 (68) 10 105 (68) 000xxxxxx218 D group_105 XX.. ..X F-S -IS- 15
109 (6C) 10 109 (6C) 000xxxxxx218 D group_109 XX.. ..X F-S -IS- 15
110 (6D) 10 110 (6D) 000xxxxxx218 D dyngrp110 XX.. ..X F-S -IS- 15
# symrdf removegrp -label dyngrp110 -sid 098 -nop
Successfully Removed Dynamic RDF Group (Label: 'dyngrp110') for Symm: 000xx
# symcfg list -rdfg all -sid 098
Symmetrix ID : 000xxxxxx098
S Y M M E T R I X R D F G R O U P S
RA-Grp (sec) RA-Grp SymmID T Name LPDS CHT Cfg CSRM time P
-------------- --------------------- -------------------------- ----- ----- -
101 (64) 10 101 (64) 000xxxxxx218 D BES_101 XX.. ..X F-S -IS- 15
102 (65) 10 102 (65) 000xxxxxx218 D BES_102 XX.. ..X F-S -IS- 15
105 (68) 10 105 (68) 000xxxxxx218 D group_105 XX.. ..X F-S -IS- 15
109 (6C) 10 109 (6C) 000xxxxxx218 D group_109 XX.. ..X F-S -IS- 15
Legend:
……
MISC Commands
Source/Target vs. Local/Remote
Source: R1;
Target: R2;
Local: based on the view of connected host/SE, local may be SRDF source or
SRDF target;
Remote: based on the view of connected host/SE, once you run commands on a
host attached to the remote array directly, the remote becomes local to the host
and the other array becomes local.
S Y M M E T R I X R D F D I R E C T O R S
Type Explanation
RDF-BI-DIR - This is the state of the RDF group when the group is defined (i.e.,
before any RDF devices are assigned to the RDF group). This value will also be
shown when both R1 and R2 devices are defined to the RDF group.
RDF-R1 - This value indicates that the RDF group contains only R1 devices.
RDF-R2 - This value indicates that the RDF group contains only R2 devices.
Caution!!: For fibre channel and GigE remote directors this state field does not
indicate the capability of the link. The Fibre Channel and Ethernet communication
protocols are bi-directional architectures. The "Type" field only reflects the type of
RDF devices on the RDF director.
-------------------------------------------------------------------------
STATUS MODES RDF S T A T E S
Sym RDF --------- ----- R1 Inv R2 Inv -------------------
Dev RDev Typ:G SA RA LNK MDATE Tracks Tracks Dev RDev Pair
---- ---- -------- --------- ----- ------- ------- --- ---- ----------
…...
Note: Typ:G column shows type of devices and SRDF group number. For exam
0B56 is a R2 device and belong to SRDF group 102.
Note: N/Grp'd means the device does not belong to any SRDF group.
SRDF/Metro
1. Identify director ports to be used(RA ports):
Flags Remote
01E:08 SO O I - - 0000000000000000
01E:09 SO O I - - 0000000000000000
01E:10 SO O I - - 0000000000000000
02E:08 SO O I - - 0000000000000000
02E:09 SO O I - - 0000000000000000
02E:10 SO O I - - 0000000000000000
Legend:
Director:
G = GIGE, - = N/A
Port:
Link:
Explanations: we want to use 996 and 193 for SRDF/Metro setup - based on the
1E:11 & 2E:11 on 996 are connected/zoned with 1E:06 & 2E:06 on
be used to add SRDF group later.
Symmetrix ID : 000xxxxxx996
S Y M M E T R I X R D F G R O U P S
……
Explanations: this command need to be run on both VMAX boxes. A SRDF group nu
which has not been taken on both sides. For example, on VMAX 99
use 3-54, 56-65, etc. On the peer VMAX box, we find a num. as t
Normally, we will choose the same num. at both sides for ease o
Symmetrix ID : 000xxxxxx996
S Y M M E T R I X R D F G R O U P S
……
RDF Information
RDF Type : R1
RDFA Information:
Standard A N A
Track(s) 0 0 0 0
NDM
symdm create [-precopy] -src_sid 3184 -tgt_sid 0129 -sg lcseb246_sg [-val
Query
Cancel
Cutover
symdm -sid 0129 -sg lcseb246_sg list -v -detail -pairs_info | grep 'Migration
symdm -sg lcseb246_sg cutover -sid 0129 [-nop]
Revert
Commit
Recover
The recover command can be used if a migration step fails due to some problem in the
environment. After fixing environment issues, a recover operation can be leverated to pick
up where the create command failed and completes the create operation.