Setting up a newly attached server

Create host groups on ports CL1/2/3/4-E for |Windows server MYSERVER02

 hdvmcli addHostStorageDomain hostmode="Windows Extension" nickname="MYSERVER02" name="MYSERVER02" portname="CL1-E" model=XP24000 serialnum=12345
 hdvmcli addHostStorageDomain hostmode="Windows Extension" nickname="MYSERVER02" name="MYSERVER02" portname="CL2-E" model=XP24000 serialnum=12345
 hdvmcli addHostStorageDomain hostmode="Windows Extension" nickname="MYSERVER02" name="MYSERVER02" portname="CL3-E" model=XP24000 serialnum=12345
 hdvmcli addHostStorageDomain hostmode="Windows Extension" nickname="MYSERVER02" name="MYSERVER02" portname="CL4-E" model=XP24000 serialnum=12345

Add the WWNs of server HBAs to the host group definition

 hdvmcli addWWNForHostStorageDomain domainnickname="MYSERVER02" portname="CL1-E" wwn="10.00.00.9a.ea.9f.e0.6d" wwnnickname="MYSERVER02_Fabric1" model=XP24000 serialnum=12345
 hdvmcli addWWNForHostStorageDomain domainnickname="MYSERVER02" portname="CL3-E" wwn="10.00.00.9a.ea.9f.e0.6d" wwnnickname="MYSERVER02_Fabric1" model=XP24000 serialnum=12345
 hdvmcli addWWNForHostStorageDomain domainnickname="MYSERVER02" portname="CL2-E" wwn="10.00.00.9a.ea.9f.df.45" wwnnickname="MYSERVER02_Fabric2" model=XP24000 serialnum=12345
 hdvmcli addWWNForHostStorageDomain domainnickname="MYSERVER02" portname="CL4-E" wwn="10.00.00.9a.ea.9f.df.45" wwnnickname="MYSERVER02_Fabric2" model=XP24000 serialnum=12345

Create a 50GB LUN is pool 1

 hdvmcli addvirtualvolume arraygroupname=X99-1 capacity=104857600 capacitytype=block devnum=00:0A:4B poolid=1 threshold=20 model=XP24000 serialnum=12345

Map this LUN to the hist group

 hdvmcli addLun domainnickname=MYSERVER02 portname=CL1-E lun=1 devnum=00:0A:4B model=XP24000 serialnum=12345
 hdvmcli addLun domainnickname=MYSERVER02 portname=CL2-E lun=1 devnum=00:0A:4B model=XP24000 serialnum=12345
 hdvmcli addLun domainnickname=MYSERVER02 portname=CL3-E lun=1 devnum=00:0A:4B model=XP24000 serialnum=12345
 hdvmcli addLun domainnickname=MYSERVER02 portname=CL4-E lun=1 devnum=00:0A:4B model=XP24000 serialnum=12345

Deleting a LUN

De-allocate the LUN from the host groups

 hdvmcli deleteLun domainnickname=MYSERVER03 portname=CL1-G devnum=00:0F:00 model=XP24000 serialnum=12345
 hdvmcli deleteLun domainnickname=MYSERVER03 portname=CL2-G devnum=00:0F:00 model=XP24000 serialnum=12345
 hdvmcli deleteLun domainnickname=MYSERVER03 portname=CL3-G devnum=00:0F:00 model=XP24000 serialnum=12345
 hdvmcli deleteLun domainnickname=MYSERVER03 portname=CL4-G devnum=00:0F:00 model=XP24000 serialnum=12345

# Delete the old LUN

 hdvmcli ModifyVirtualVolume assign=false devnums=00:0F:00 model=XP24000 serialnum=12345
 hdvmcli DeleteVirtualVolume arraygroupnames=X517-1 model=XP24000 serialnum=12345

Recent Changes