498 IBM Midrange System Storage Hardware Guide
Deleting a logical drive
Example 8-12, Example 8-13, and Example 8-14 show the same set of commands being
executed on Windows, UNIX, and a script file alternative. The tasks are:
Remove mapping of the logical drive named AIX_D.
Delete logical drive AIX_D.
Show the health status of the storage subsystem, which is managed through the direct
management method.
Example 8-12 Windows command line with -c option
C:\temp>"C:\Program Files\IBM_DS\client\SMcli.exe" 9.11.218.183 9.11.218.182 -p
passw0rd -c "remove logicaldrive [\"AIX_B\"] lunmapping hostgroup=\"AIX_ITSO\"
delete logicaldrive [\"AIX_B\"] ;"
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli completed successfully.
C:\temp>
Example 8-13 UNIX command line with -c option deleting logical drive
# /usr/SMclient/SMcli 9.11.218.183 9.11.218.182 -p passw0rd -c "remove
logicaldrive [\"AIX_B\"] lunmapping hostgroup=\"AIX_ITSO\";"
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli completed successfully.
root@itsop630:/root
Example 8-14 Script file alternative on WIndows or UNIX
In deletelogicaldrive.scr:
remove logicaldrive ["AIX_A"] lunmapping hostgroup="AIX_ITSO";
delete logicaldrive ["AIX_A"] ;
show storageSubsystem healthStatus;
On Windows or UNIX:
SMcli 9.11.218.183 9.11.218.182 -p xxxxxxx -f deletelogicaldrive.scr