March 10, 2009...1:40 am

SMcli snippet: creating new logical drives

Jump to Comments

In an earlier post I outlined the CLI for the DS3000/4000/5000 and I wrapped up saying how I should post up snippets of SMcli. So heres the first of interesting snippets that I come across.

This script creates a new logical drive using the create logicalDrive command in the free space of a array. Now shucks, I dont know the original author of this script so cant give credit, do appriciate if anyone is able to point me to the original source

Show “Create RAID 5 Logical Drive WIN_7 on existing Array 1”;
//Create logicalDrive on array created by the create logicalDrive drives command
//Note: For arrays that use all available capacity, the last logicalDrive on the group is created using all remaining capacity by omitting the capacity=logicalDrive creation parameter
create logicalDrive array=1 RAIDLevel=5 userLabel=”7” owner=A segmentSize=16 readAheadMulitiplier=256 capacity=2GB;
show “Setting additional attributes for logicalDrive WIN_7”; //Configuration settings that cannot be set during logicalDrive creation
set logicalDrive[“WIN_7”] cacheFlushModifier=10;
set logicalDrive[“WIN_7”] cacheWithoutBatteryEnabled=false;
set logicalDrive[“WIN_7”] mirrorEnabled=true; set logicalDrive[“WIN_7”] readCacheEnabled=true;
set logicalDrive[“WIN_7”] writeCacheEnabled=true;
set logicalDrive[“WIN_7”] mediaScanEnabled=false;
set logicalDrive[“WIN_7”] redundancyCheckEnabled=false;
set logicalDrive[“WIN_7”] modificationPriority=high;

Remember as with anything- staging envrionment before production :)

Leave a Reply