SMcli Examples from the command line
\\ Create snapshot
SMcli <ip address> -c "set session password=\"<password>\" ; create snapshotVolume basevolume=\"TEST_VOL_REPL\" repositoryPercentOfBase=80 repositoryFullPolicy=failSnapShot ; "
\\ Delete snapshot/volume
SMcli <ip address> -c "set session password=\"<password>\" ; delete volume [\"TEST_VOL_REPL-1\"] ; "
\\ Create Remote Mirror (ON PRIMARY STORAGE)
SMcli <Primary IP address> -c "set session password=\"<password>\" ; create remoteMirror primary=\"TEST_VOL\" secondary=\"TEST_VOL_REPL\" remotestorageArrayName=\"<Secondary ARRAY NAME>\" remotePassword=\"<password>\" syncPriority=medium writeOrder=preserved writeMode=synchronous;"
\\ Remove Remote Mirror
SMcli <ip address> -c "set session password=\"<password>\" ; remove remoteMirror localVolume [\"TEST_VOL_REPL\"] ;"
\\ Map LUN
SMcli <ip address> -c "set session password=\"<password>\" ; set volume [\"TEST_VOL_REPL\"] logicalUnitNumber=6 host=\"<HOST NAME>\"; "
\\ Un Mapp LUN
SMcli <ip address> -c "set session password=\"<password>\" ; remove volume [\"TEST_VOL_REPL\"] lunMapping host=\"<HOST NAME>\"; "
\\ View Lun Maps
SMcli <ip address> -c "set session password=\"<password>\" ; Show storageArray lunMappings host [\"<HOST NAME>\"];"
SMcli Examples from a SMcli Script File
// call by SMcli <ip address> -f <script name>
// Set Password
set session password="<password>" ;
// Print statement
show "Hello World" ;
// Create snapshot
create snapshotVolume basevolume="TEST_VOL_REPL" repositoryPercentOfBase=80 repositoryFullPolicy=failSnapShot ;
// Delete snapshot-volume
delete volume ["TEST_VOL_REPL-1"] ;
// Create Remote Mirror
create remoteMirror primary="TEST_VOL" secondary="TEST_VOL_REPL" remotestorageArrayName="<Secondary ARRAY NAME>" remotePassword="<password>" syncPriority=medium writeOrder=preserved writeMode=synchronous;
// Remove Remote Mirror
show "* Break Mirror for TEST_VOL_REPL" ;
remove remoteMirror localVolume ["TEST_VOL_REPL"] ;
// Map LUN to HOST
set volume ["TEST_VOL_REPL"] logicalUnitNumber=<LUN ID> host="<HOST NAME>";
// Un Mapp LUN
remove volume ["TEST_VOL_REPL"] lunMapping host="<HOST NAME>";
// view mappings
show storageArray lunMappings host ["<HOST NAME>"];
Subscribe to:
Post Comments (Atom)
Solaris 11.4 SRU 90 Name Service Checks
Solaris 11.4 SRU 90: Stricter Name Service Validation I recently upgrading to Solaris 11.4 SRU 90 and found a new service SMF service in a d...
-
When you install Solaris 11.3 or 11.4 from standard text installer cdrom, the en_GB-UTF-8 locales are not installed, even if you select Bri...
-
Been playing with ZFS dedupe for the last two weeks and just wanted to share my findings. Setup OpenSolaris build 131 Sun X4200, 2 x Du...
-
A customer had an iSCSI issue and was required to capture network packets at a specific time on a Windows 2008 server. I came up with simp...
No comments:
Post a Comment