HP 3par: Difference between revisions
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "[[Kategorie:" to "[[Category:") |
||
Line 1: | Line 1: | ||
[[ | [[Category:Hardware]] | ||
Unsorted collection... Don't do this... | Unsorted collection... Don't do this... |
Revision as of 04:51, 26 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”;