HP 3par: Difference between revisions
No edit summary |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 6: | Line 6: | ||
Funktioniert nicht so... | Funktioniert nicht so... | ||
< | <syntaxhighlight lang=bash> | ||
3par-clusterstorage cli% showcage | 3par-clusterstorage cli% showcage | ||
Id Name LoopA Pos.A LoopB Pos.B Drives Temp RevA RevB Model Side | Id Name LoopA Pos.A LoopB Pos.B Drives Temp RevA RevB Model Side | ||
Line 13: | Line 13: | ||
</source> | </source> | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% createcpg -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 0 FC_R5_31_cage0 | 3par-storage cli% createcpg -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 0 FC_R5_31_cage0 | ||
3par-storage cli% createcpg -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 1 FC_R5_31_cage1 | 3par-storage cli% createcpg -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 1 FC_R5_31_cage1 | ||
</source> | </source> | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% showcpg -sdg | 3par-storage cli% showcpg -sdg | ||
------(MB)------ | ------(MB)------ | ||
Line 27: | Line 27: | ||
</source> | </source> | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% createvv -wait 0 -comment "Mirror A: PRODDB" FC_R5_31_cage0 VV_DB_PROD01_DATA_DS.1 2T | 3par-storage cli% createvv -wait 0 -comment "Mirror A: PRODDB" FC_R5_31_cage0 VV_DB_PROD01_DATA_DS.1 2T | ||
3par-storage cli% createvv -wait 0 -comment "Mirror B: PRODDB" FC_R5_31_cage1 VV_DB_PROD01_DATA_DS.2 2T | 3par-storage cli% createvv -wait 0 -comment "Mirror B: PRODDB" FC_R5_31_cage1 VV_DB_PROD01_DATA_DS.2 2T | ||
Line 34: | Line 34: | ||
</source> | </source> | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% showvv -sortcol 0 -showcols Id,Name,UsrCPG,Prov,Usr_Used_MB -cpg FC_R5_31_cage0,FC_R5_31_cage1 | 3par-storage cli% showvv -sortcol 0 -showcols Id,Name,UsrCPG,Prov,Usr_Used_MB -cpg FC_R5_31_cage0,FC_R5_31_cage1 | ||
Id Name UsrCPG Prov Usr_Used_MB | Id Name UsrCPG Prov Usr_Used_MB | ||
Line 47: | Line 47: | ||
==Group virtual volumes to sets (vv -> vvset)== | ==Group virtual volumes to sets (vv -> vvset)== | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% createvvset -comment "Set for all vvs of Solaris Devel" DevelVVSet | 3par-storage cli% createvvset -comment "Set for all vvs of Solaris Devel" DevelVVSet | ||
3par-storage cli% createvvset -add DevelVVSet VV_DB_TEST01_DATA_DS.3 | 3par-storage cli% createvvset -add DevelVVSet VV_DB_TEST01_DATA_DS.3 | ||
Line 54: | Line 54: | ||
==Create a set of initiators== | ==Create a set of initiators== | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% createhost -os Solaris -model M10 -contact "SuperAdmin" -comment "Developer node" -loc "Germany, Hamburg" -persona 1 unix14_c2 21000024ff8f5aae | 3par-storage cli% createhost -os Solaris -model M10 -contact "SuperAdmin" -comment "Developer node" -loc "Germany, Hamburg" -persona 1 unix14_c2 21000024ff8f5aae | ||
3par-storage cli% createhost -os Solaris -model M10 -contact "SuperAdmin" -comment "Developer node" -loc "Germany, Hamburg" -persona 1 unix14_c3 21000024ff8f5aaf | 3par-storage cli% createhost -os Solaris -model M10 -contact "SuperAdmin" -comment "Developer node" -loc "Germany, Hamburg" -persona 1 unix14_c3 21000024ff8f5aaf | ||
</source> | </source> | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% createhostset DevelHosts | 3par-storage cli% createhostset DevelHosts | ||
3par-storage cli% createhostset -add DevelHosts unix14_c2 | 3par-storage cli% createhostset -add DevelHosts unix14_c2 | ||
Line 67: | Line 67: | ||
==Map virtual volumes as LUNs to a set of initiators== | ==Map virtual volumes as LUNs to a set of initiators== | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% createvlun set:DevelVVSet 0+ set:DevelHosts | 3par-storage cli% createvlun set:DevelVVSet 0+ set:DevelHosts | ||
</source> | </source> | ||
Means map all VVs from DevelVVSet to all hosts in DevelHosts and do auto LUN numbering (+) starting with 0. | Means map all VVs from DevelVVSet to all hosts in DevelHosts and do auto LUN numbering (+) starting with 0. | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% showvlun | 3par-storage cli% showvlun | ||
Active VLUNs | Active VLUNs | ||
Line 91: | Line 91: | ||
==Watch disk initialization== | ==Watch disk initialization== | ||
< | <syntaxhighlight lang=bash> | ||
3par-storage cli% showsys -space -devtype FC | 3par-storage cli% showsys -space -devtype FC | ||
------------- System Capacity (MB) ------------- | ------------- System Capacity (MB) ------------- |
Revision as of 20:43, 25 November 2021
Unsorted collection... Don't do this...
Unsortierte Sammlung... Funktioniert nicht so...
<syntaxhighlight lang=bash> 3par-clusterstorage cli% showcage Id Name LoopA Pos.A LoopB Pos.B Drives Temp RevA RevB Model Side
0 cage0 1:0:1 0 0:0:1 0 24 29-35 321a 321a DCN1 n/a 1 cage1 1:0:2 0 0:0:2 0 24 34-36 321a 321a DCS2 n/a
</source>
<syntaxhighlight lang=bash> 3par-storage cli% createcpg -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 0 FC_R5_31_cage0 3par-storage cli% createcpg -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 1 FC_R5_31_cage1 </source>
<syntaxhighlight lang=bash> 3par-storage cli% showcpg -sdg
------(MB)------
Id Name Warn Limit Grow Args ...
6 FC_R5_31_cage0 - - 32768 -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 0 7 FC_R5_31_cage1 - - 32768 -t r5 -ssz 4 -ha mag -p -devtype FC -mg 0-19 -cg 1
</source>
<syntaxhighlight lang=bash> 3par-storage cli% createvv -wait 0 -comment "Mirror A: PRODDB" FC_R5_31_cage0 VV_DB_PROD01_DATA_DS.1 2T 3par-storage cli% createvv -wait 0 -comment "Mirror B: PRODDB" FC_R5_31_cage1 VV_DB_PROD01_DATA_DS.2 2T 3par-storage cli% createvv -wait 0 -comment "Mirror A: TESTDB" FC_R5_31_cage0 VV_DB_TEST01_DATA_DS.3 2T 3par-storage cli% createvv -wait 0 -comment "Mirror B: TESTDB" FC_R5_31_cage1 VV_DB_TEST01_DATA_DS.4 2T </source>
<syntaxhighlight lang=bash> 3par-storage cli% showvv -sortcol 0 -showcols Id,Name,UsrCPG,Prov,Usr_Used_MB -cpg FC_R5_31_cage0,FC_R5_31_cage1 Id Name UsrCPG Prov Usr_Used_MB
2 VV_DB_PROD01_DATA_DS.1 FC_R5_31_cage0 full 2097152 3 VV_DB_PROD01_DATA_DS.2 FC_R5_31_cage1 full 2097152 4 VV_DB_TEST01_DATA_DS.3 FC_R5_31_cage0 full 2097152 5 VV_DB_TEST01_DATA_DS.4 FC_R5_31_cage1 full 2097152
2 total 8388608
</source>
Group virtual volumes to sets (vv -> vvset)
<syntaxhighlight lang=bash> 3par-storage cli% createvvset -comment "Set for all vvs of Solaris Devel" DevelVVSet 3par-storage cli% createvvset -add DevelVVSet VV_DB_TEST01_DATA_DS.3 3par-storage cli% createvvset -add DevelVVSet VV_DB_TEST01_DATA_DS.4 </source>
Create a set of initiators
<syntaxhighlight lang=bash> 3par-storage cli% createhost -os Solaris -model M10 -contact "SuperAdmin" -comment "Developer node" -loc "Germany, Hamburg" -persona 1 unix14_c2 21000024ff8f5aae 3par-storage cli% createhost -os Solaris -model M10 -contact "SuperAdmin" -comment "Developer node" -loc "Germany, Hamburg" -persona 1 unix14_c3 21000024ff8f5aaf </source>
<syntaxhighlight lang=bash> 3par-storage cli% createhostset DevelHosts 3par-storage cli% createhostset -add DevelHosts unix14_c2 3par-storage cli% createhostset -add DevelHosts unix14_c3 </source>
Map virtual volumes as LUNs to a set of initiators
<syntaxhighlight lang=bash> 3par-storage cli% createvlun set:DevelVVSet 0+ set:DevelHosts </source> Means map all VVs from DevelVVSet to all hosts in DevelHosts and do auto LUN numbering (+) starting with 0.
<syntaxhighlight lang=bash> 3par-storage cli% showvlun Active VLUNs
Lun VVName HostName -Host_WWN/iSCSI_Name- Port Type Status ID 0 VV_DB_TEST01_DATA_DS.3 unix14_c2 21000024FF8F5AAE 0:1:1 host set active 1 1 VV_DB_TEST01_DATA_DS.4 unix14_c2 21000024FF8F5AAE 0:1:1 host set active 1 0 VV_DB_TEST01_DATA_DS.3 unix14_c3 21000024FF8F5AAF 0:1:2 host set active 1 1 VV_DB_TEST01_DATA_DS.4 unix14_c3 21000024FF8F5AAF 0:1:2 host set active 1
4 total
VLUN Templates Lun VVName HostName -Host_WWN/iSCSI_Name- Port Type
0 set:DevelVVset set:DevelHosts ---------------- --- host set
1 total
</source>
Watch disk initialization
<syntaxhighlight lang=bash> 3par-storage cli% showsys -space -devtype FC
System Capacity (MB) -------------
Total Capacity : 57139200
Allocated : 40258560 Volumes : 36577280 Non-CPGs : 0 User : 0 Snapshot : 0 Admin : 0 CPGs (TPVVs & TDVVs & CPVVs) : 36577280 User : 36577280 Used : 36427020 Unused : 0 Snapshot : 0 Used : 0 Unused : 0 Admin : 0 Used : 0 Unused : 0 Unmapped : 0 System : 3681280 Internal : 252928 Spare : 3428352 Used : 0 Unused : 3428352 Free : 16880640 Initialized : 7827456 Uninitialized : 9053184 <--- Still initializing!!!! Unavailable : 0 Failed : 0
Capacity Efficiency --------------
Compaction : 1.0 Dedup : -------- </source>
Solaris
/kernel/drv/sd.conf
sd-config-list=“3PARdataVV”,“physical-block-size:16384”;