Documente Academic
Documente Profesional
Documente Cultură
SunStorageTek2500SeriesArrayHardwareInstallationGuide
B
APPENDIX
iSCSIConfigurationExampleUsingSolaris
ThisappendixshowsanexampleofiSCSIconfigurationonaSolarisdatahostinthefollowingsections:
ToPreparefortheiSCSIConfiguration
ToConfigureiSCSI
ToPreparefortheiSCSIConfiguration
1.Logintothedatahostassuperuser.
2.IdentifytheminimumrequiredOS,softwarepackages,andpatchesbyreferringtotheSunStorageTek2500SeriesArray
ReleaseNotes,6.1orhigher.
Downloadfromhttp://docs.sun.com/app/docs/coll/st2500arrays
Youcanalsoapplythelatestpatchesfrom:http://sunsolve.sun.com/show.do?target=patchpage
a.VerifythatyouarerunningtherequiredSolarisOS:
#cat/etc/release
b.VerifythatiSCSIsoftwarepackagesareinstalled
#pkginfoSUNWiscsiuSUNWiscsir
systemSUNWiscsiuSuniSCSIDeviceDriver(root)
systemSUNWiscsirSuniSCSIManagementUtilities(usr)
c.VerifythatyouhavethelatestpatchesappliedfortheiSCSIpackages.Forexample:
OnaSPARCsystem:
#showrevp|grep119090
Onanx86system:
#showrevp|grep119091
3.InstalltheCommonArrayManagersoftwareonthemanagementhostandregisterthetargetarray.
FollowtheinstructionintheSunStorageTekCommonArrayManagerInstallationGuide.
ToConfigureiSCSI
1.IntheCommonArrayManagersoftware,gotothePortSummarypageandverifythatthetargetports(oneforeach
controller)areinanupstatusandnotethereIPaddressesandports.
IfyouneedtochangetheportIPaddresses,usethePortDetailspage.YoucanenteranewIPaddressorsetDHCP.
2.Fromthedatahost:
a.ListandnotetheIQNofeachinitiator.
#iscsiadmlistinitiatornode
Initiatornodename:iqn.198603.com.sun:01:0003babc0401.46f806dd
Initiatornodealias:
...
https://docs.oracle.com/cd/E19508-01/820-0015-14/AppB_iSCSIHostSolaris.html 1/3
10/31/2016 iSCSI Conguration Example Using Solaris
b.Enablethediscoverymethodofthetargetsasstatic.
#iscsiadmmodifydiscoverystaticenable
c.PingthetargetportsIPaddressestoconfirmtheycanbereached.
#pingip_address
#ping192.168.1.1
192.168.1.1isalive
d.Discoverthetargets(oneportforeachcontroller)fromtheiSCSIinitiatorusingtheisciadmcommandandtheIP
addressesoftheports.
#iscsiadmadddiscoveryaddress192.168.1.1:3260
#iscsiadmadddiscoveryaddress192.168.2.1:3260
...
e.Verifythatdiscoveredtargetsarelistedonthedatahost.
#iscsiadmlistdiscoveryaddress
DiscoveryAddress:192.168.1.1:3260
...
f.ListtheIQNsofthetargetsusingtheiscsiadmcommandandtheIPaddressesyounotedonthePortSummary
page.
>iscsiadmlistdiscoveryaddressv192.168.1.1
DiscoveryAddress:192.168.1.1:3260
Targetname:
iqn.198603.com.sun:2510.600a0b80003487e400000000474c6e0b
Targetaddress:192.168.1.1:3260,1
Targetname:
iqn.198603.com.sun:2510.600a0b80003487e400000000474c6e0b
Targetaddress:192.168.1.2:3260,1
Targetname:
iqn.198603.com.sun:2510.600a0b80003487e400000000474c6e0b
Targetaddress:192.168.2.1:3260,2
Targetname:
iqn.198603.com.sun:2510.600a0b80003487e400000000474c6e0b
Targetaddress:192.168.2.2:3260,2
g.AddtheIQNsofthetargetsdiscoveredinthelaststepstothediscoverytable.
#iscsiadmaddstaticconfigiqn.198603.com.sun:2510.600a0b80003487e400000000474c6e0b,192.168.1.1
Thisaddsatargettothelistofstaticallyconfiguredtargets.Repeatforeachtargetport.
h.Listthestaticallyconfiguredtargetsandverifythatthenewtargetshavebeenadded.
#iscsiadmliststaticconfig
StaticConfigurationTarget:
iqn.198603.com.sun:2510.600a0b80003487e400000000474c6e0b,192.168.1.1:3260
...
i.Notethenumberofdisks(volumes)beforeyouconfigurenewvolumes.
#format
AVAILABLEDISKSELECTIONS:
0.c3t0d0<SUN72Gcyl14087alt2hd24sec424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e010483de1,0
...
3.IntheCAMsoftware:
a.CreateeachinitiatorwithitsIQNfromthedatahostnotedinStep2a.
RefertoAddingInitiatorInformationfordetails.
b.FollowCAMdocumentationto:
Createavolume
Mapthevolumetoahostorhostgrouplinkedtotheinitiator.
https://docs.oracle.com/cd/E19508-01/820-0015-14/AppB_iSCSIHostSolaris.html 2/3
10/31/2016 iSCSI Conguration Example Using Solaris
4.Onthedatahost:
a.CreatetheiSCSIdevicelinkonthedatahost.
#devfsadmiiscsi
b.Issuetheformatcommandandverifythatmoredisk(volumes)werecreatedthanwhatyounotedinStep2i.
#format
Thesystemisreadyforyoutousesystemadministratorcommandstocreateandmountafilesystem.
SunStorageTek2500SeriesArrayHardwareInstallationGuide 820001514
Copyright2009SunMicrosystems,Inc.Allrightsreserved.
https://docs.oracle.com/cd/E19508-01/820-0015-14/AppB_iSCSIHostSolaris.html 3/3