-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fixes and tests for issue Additional params in methods - create…
…_vd #2
- Loading branch information
Showing
21 changed files
with
1,263 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.5.0.6" | ||
__version__ = "0.5.0.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...t/create_vd_raid0_00/__c0_add_vd_r0_name=create_vd_raid0_drives=35_12-13_strip=512_J.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Controllers": [ | ||
{ | ||
"Command Status": { | ||
"CLI Version": "007.1704.0000.0000 Jan 16, 2021", | ||
"Operating system": "Linux 5.15.0-58-generic", | ||
"Controller": 0, | ||
"Status": "Success", | ||
"Description": "Add VD Succeeded." | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
i've noticed that pdperarray behaves differenlty some times.
for now i have two rules:
if 'raid10' in args:
args = args.replace('strip=', 'pdperarray=2 strip=')
if 'raid00' in args:
args = args.replace('strip=', 'pdperarray=1 strip=')
but i do not have a raid contorller to check all raid types.
Instead of hardcoding the pdperarray here, can you please add a general options param in args ? so that it will be possible to append any additional args to add vd command.
Because there are more additional params for add vd:
The StorCLI tool supports the commands that follow to add virtual drives:
storcli /cx add vd raid[0|1|5|6|10|50|60][Size=<VD1_Sz>,<VD2_Sz>,..|all]
[name=,..] drives=e:s|e:s-x,y;e:s-x,y,z
[PDperArray=x][pdcache=on|off|default]=default|automatic(auto)|
none|maximum(max)|MaximumWithoutCaching(maxnocache)] [wt|wb|awb] [nora|ra]
[direct|cached][cachevd] [Strip=<8|16|32|64|128|256|1024>]
[AfterVd=X][EmulationType=0|1|2] [Spares = [e:]s|[e:]s-x|[e:]s-x,y]
[force][ExclusiveAccess]
storcli /cx add vd each raid0 [name=,..] [drives=e:s|e:s-x|e:s-x,y]
[pdcache=on|off|default]=default|automatic(auto)|
none|maximum(max)|MaximumWithoutCaching(maxnocache)] [wt|wb|awb] [nora|ra]
[direct|cached][EmulationType=0|1|2]
[Strip=<8|16|32|64|128|256|1024>][ExclusiveAccess]
storcli /cx add VD cachecade|cc raid[0,1] drives =[e:]s|[e:]s-x|[e:]s-x,y
[WT|WB|AWB] [assignvds = 0,1,2]