際際滷

際際滷Share a Scribd company logo
Suk Kim , Oracle ACE Director
Noreak Senior managed Consultant
Oracle Solaris 11 Virtual Storage Server
- COMSTAR

 覦 螳
 朱Μ COMSTAR 螳
 朱Μ COMSTAR 蟲譟
 朱Μ COMSTAR target 蟲
 朱Μ COMSTAR Initiator 蟲
 Questions
覦 螳
 蟾 ( nick : 蟾覯 )
 ) る狩 伎  ( Oracle ACE Director )
 ) 譯殊 碁危 貉る / 伎
 ) 磯蟲 IT覲伎螻 蟆語蟲
 ) 朱Μ  伎
 ) 朱Μ れ触 伎
 ) 觚襦蠏 蟾覯 IT 伎手鍵
朱Μ 11 COMSTAR 螳
 朱Μ ろ 譟伎
ろ 螻糾 ろ襴讌
ろ語襯 牛 語ろ瑚 襦貉
レ襦 
 讌 襦貊
 iSCSI
 FC
 iSER
 SRP
 Common Multiprotocol SCSI Target(COMSTAR)
朱Μ 11 COMSTAR 螳
 COMSTAR
 Oracle Solaris 11 語ろ碁ゼ 覲   語 
 STMF(SCSI Target Mode Framework) 伎
 蟲煙
 Port Providers (or plug-ins)
  螻糾( 蠏語)
 FC(Fibre Channel) 覦 iSCSI 螳 襦貊 蟲
 Logical Unit Provider
 ろ 覦 危 レ 螳 れ SCSI レ 覡危
 The mamagement library(libstmf)
 COMSTART 蟯襴 誤壱伎 螻
 itadm - iSCSI 碁 蟯襴
 stmfadm - 朱Μレ 蟲
 srptadm - SRP(SCSI RDMA Protocol)   蟯襴
朱Μ 11 COMSTAR 蟲譟
朱Μ 11 COMSTAR target 蟲
root@server11:~# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://pkg.oracle.com/solaris/release/
root@server11:~# pkg search storage-server
INDEX ACTION VALUE PACKAGE
incorporate depend pkg:/storage-server@0.1,5.11-0.133 pkg:/consolidation/osnet/osnet-incorporation@0.5.11-0.175.0.0.0.2.1
pkg.fmri set solaris/storage-server pkg:/storage-server@0.1-0.133
pkg.fmri set solaris/storage/storage-server pkg:/storage/storage-server@0.1-0.173.0.0.0.1.0
pkg.fmri set solaris/group/feature/storage-server pkg:/group/feature/storage-server@0.5.11-0.175.0.0.0.2.1
root@server11:~# pkg install pkg://solaris/storage/storage-server
 れ  覦 ろ襴讌 覯 れ れ
朱Μ 11 COMSTAR target 蟲
root@server11:~# svcadm enable stmf
root@server11:~# svcs -a | grep stmf
online 6:54:41 svc:/system/stmf:default
root@server11:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3t0d0 <ATA-VBOX HARDDISK-1.0 cyl 8351 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c4t0d0 <VBOX-HARDDISK-1.0-1.00GB>
/pci@0,0/pci1000,8000@14/sd@0,0
2. c4t1d0 <VBOX-HARDDISK-1.0-1.00GB>
/pci@0,0/pci1000,8000@14/sd@1,0
3. c4t2d0 <VBOX-HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32>
/pci@0,0/pci1000,8000@14/sd@2,0
4. c4t3d0 <VBOX-HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32>
/pci@0,0/pci1000,8000@14/sd@3,0
 stmf 觜 燕 覦 ろ
朱Μ 11 COMSTAR target 蟲
root@server11:~# zpool create iscsi c4t0d0 c4t1d0
root@server11:~# zpool list iscsi
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
iscsi 1.97G 153K 1.97G 0% 1.00x ONLINE -
root@server11:~# zfs create -V 1500m iscsi/target1 // 1.5G
root@server11:~# zfs create -V 400m iscsi/target2 // 400M
 zpool  覦 zfs 覲朱エ 
root@server11:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
iscsi 1.91G 23.5M 31K /iscsi
iscsi/target1 1.51G 1.53G 16K -
iscsi/target2 413M 436M 16K -
朱Μ 11 COMSTAR target 蟲
root@server11:~# stmfadm create-lu /dev/zvol/iscsi/target1
Logical unit create: LU Name: 600144F0D00D4C00000054E1DB5B0002
root@server11:~# stmfadm list-lu
LU Name: 600144F0D00D4C00000054E1DB5B0002
root@server11:~# stmfadm add-view 600144F0D00D4C00000054E1DB5B0002
 lu  覦 れ
root@server11:~# stmfadm list-view -l 600144F0D00D4C00000054E1DB5B0002
View Entry: 0
Host group : All
Target group : All
LUN : 0
朱Μ 11 COMSTAR target 蟲
root@server11:~# svcadm enable svc:/network/iscsi/target:default
root@server11:~# svcs iscsi/target
STATE STIME FMRI
online 21:54:43 svc:/network/iscsi/target:default
root@server11:~# itadm create-target
Target iqn.1986-03.com.sun:02:040533bb-4cbb-472d-dab6-d576182bc03d successfully created
 target 觜 燕 覦 iSCSI target 
root@server11:~# stmfadm list-view -l 600144F0D00D4C00000054E1DB5B0002
TARGET NAME STATE SESSIONS
iqn.1986-03.com.sun:02:040533bb-4cbb-472d-dab6-d576182bc03d online 0
alias: -
auth: none (defaults)
targetchapuser: -
targetchapsecret: unset
tpg-tags: default
朱Μ 11 COMSTAR initiator 蟲
root@s11-desktop:~# svcadm enable iscsi/initiator
root@s11-desktop:~# svcs iscsi/initiator
STATE STIME FMRI
online 12:35:54 svc:/network/iscsi/initiator:default
root@server11:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/_b dhcp ok 10.0.2.4/24
lo0/v6 static ok ::1/128
net0/_a addrconf ok fe80::a00:27ff:fed0:c234/10
 initiator 觜 燕 覦 iSCSI レ 豢螳
root@s11-desktop:~# iscsiadm add static-config iqn.1986-03.com.sun:02:56e168d7-
8c6b-e779-982a-9d4e89b871cb,10.0.2.4
朱Μ 11 COMSTAR initiator 蟲
 initiator 觜 燕 覦 iSCSI レ 豢螳
root@s11-desktop:~# iscsiadm list static-config
Static Configuration Target: iqn.1986-03.com.sun:02:56e168d7-8c6b-e779-982a-9d4e89b871cb,10.0.2.4:3260
root@s11-desktop:~# iscsiadm modify discovery --static enable
root@s11-desktop:~# iscsiadm list discovery
Discovery:
Static: enabled
Send Targets: disabled
iSNS: disabled
root@s11-desktop:~# iscsiadm list target
Target: iqn.1986-03.com.sun:02:56e168d7-8c6b-e779-982a-9d4e89b871cb
Alias: -
TPGT: 1
ISID: 4000002a0000
Connections: 1
朱Μ 11 COMSTAR initiator 蟲
 iscsi レ 語
root@s11-desktop:~# devfsadm -i iscsi
root@s11-desktop:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t600144F0D00D4C00000054E1DB5B0002d0 <SUN-COMSTAR-1.0 cyl 748 alt 2 hd 128 sec 32>
/scsi_vhci/disk@g600144f0d00d4c00000054e1db5b0002
1. c3t0d0 <ATA-VBOX HARDDISK-1.0 cyl 8351 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@0,0
2. c3t2d0 <ATA-VBOX HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32>
/pci@0,0/pci8086,2829@d/disk@2,0
3. c3t3d0 <ATA-VBOX HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32>
/pci@0,0/pci8086,2829@d/disk@3,0
Specify disk (enter its number):
Q U E S T I O N S
A N S W E R S

More Related Content

Oracle solaris comstar introduce and configuration ppt sukkim

  • 1. Suk Kim , Oracle ACE Director Noreak Senior managed Consultant Oracle Solaris 11 Virtual Storage Server - COMSTAR
  • 2. 覦 螳 朱Μ COMSTAR 螳 朱Μ COMSTAR 蟲譟 朱Μ COMSTAR target 蟲 朱Μ COMSTAR Initiator 蟲 Questions
  • 3. 覦 螳 蟾 ( nick : 蟾覯 ) ) る狩 伎 ( Oracle ACE Director ) ) 譯殊 碁危 貉る / 伎 ) 磯蟲 IT覲伎螻 蟆語蟲 ) 朱Μ 伎 ) 朱Μ れ触 伎 ) 觚襦蠏 蟾覯 IT 伎手鍵
  • 4. 朱Μ 11 COMSTAR 螳 朱Μ ろ 譟伎 ろ 螻糾 ろ襴讌 ろ語襯 牛 語ろ瑚 襦貉 レ襦 讌 襦貊 iSCSI FC iSER SRP Common Multiprotocol SCSI Target(COMSTAR)
  • 5. 朱Μ 11 COMSTAR 螳 COMSTAR Oracle Solaris 11 語ろ碁ゼ 覲 語 STMF(SCSI Target Mode Framework) 伎 蟲煙 Port Providers (or plug-ins) 螻糾( 蠏語) FC(Fibre Channel) 覦 iSCSI 螳 襦貊 蟲 Logical Unit Provider ろ 覦 危 レ 螳 れ SCSI レ 覡危 The mamagement library(libstmf) COMSTART 蟯襴 誤壱伎 螻 itadm - iSCSI 碁 蟯襴 stmfadm - 朱Μレ 蟲 srptadm - SRP(SCSI RDMA Protocol) 蟯襴
  • 7. 朱Μ 11 COMSTAR target 蟲 root@server11:~# pkg publisher PUBLISHER TYPE STATUS URI solaris origin online http://pkg.oracle.com/solaris/release/ root@server11:~# pkg search storage-server INDEX ACTION VALUE PACKAGE incorporate depend pkg:/storage-server@0.1,5.11-0.133 pkg:/consolidation/osnet/osnet-incorporation@0.5.11-0.175.0.0.0.2.1 pkg.fmri set solaris/storage-server pkg:/storage-server@0.1-0.133 pkg.fmri set solaris/storage/storage-server pkg:/storage/storage-server@0.1-0.173.0.0.0.1.0 pkg.fmri set solaris/group/feature/storage-server pkg:/group/feature/storage-server@0.5.11-0.175.0.0.0.2.1 root@server11:~# pkg install pkg://solaris/storage/storage-server れ 覦 ろ襴讌 覯 れ れ
  • 8. 朱Μ 11 COMSTAR target 蟲 root@server11:~# svcadm enable stmf root@server11:~# svcs -a | grep stmf online 6:54:41 svc:/system/stmf:default root@server11:~# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c3t0d0 <ATA-VBOX HARDDISK-1.0 cyl 8351 alt 2 hd 255 sec 63> /pci@0,0/pci8086,2829@d/disk@0,0 1. c4t0d0 <VBOX-HARDDISK-1.0-1.00GB> /pci@0,0/pci1000,8000@14/sd@0,0 2. c4t1d0 <VBOX-HARDDISK-1.0-1.00GB> /pci@0,0/pci1000,8000@14/sd@1,0 3. c4t2d0 <VBOX-HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32> /pci@0,0/pci1000,8000@14/sd@2,0 4. c4t3d0 <VBOX-HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32> /pci@0,0/pci1000,8000@14/sd@3,0 stmf 觜 燕 覦 ろ
  • 9. 朱Μ 11 COMSTAR target 蟲 root@server11:~# zpool create iscsi c4t0d0 c4t1d0 root@server11:~# zpool list iscsi NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT iscsi 1.97G 153K 1.97G 0% 1.00x ONLINE - root@server11:~# zfs create -V 1500m iscsi/target1 // 1.5G root@server11:~# zfs create -V 400m iscsi/target2 // 400M zpool 覦 zfs 覲朱エ root@server11:~# zfs list NAME USED AVAIL REFER MOUNTPOINT iscsi 1.91G 23.5M 31K /iscsi iscsi/target1 1.51G 1.53G 16K - iscsi/target2 413M 436M 16K -
  • 10. 朱Μ 11 COMSTAR target 蟲 root@server11:~# stmfadm create-lu /dev/zvol/iscsi/target1 Logical unit create: LU Name: 600144F0D00D4C00000054E1DB5B0002 root@server11:~# stmfadm list-lu LU Name: 600144F0D00D4C00000054E1DB5B0002 root@server11:~# stmfadm add-view 600144F0D00D4C00000054E1DB5B0002 lu 覦 れ root@server11:~# stmfadm list-view -l 600144F0D00D4C00000054E1DB5B0002 View Entry: 0 Host group : All Target group : All LUN : 0
  • 11. 朱Μ 11 COMSTAR target 蟲 root@server11:~# svcadm enable svc:/network/iscsi/target:default root@server11:~# svcs iscsi/target STATE STIME FMRI online 21:54:43 svc:/network/iscsi/target:default root@server11:~# itadm create-target Target iqn.1986-03.com.sun:02:040533bb-4cbb-472d-dab6-d576182bc03d successfully created target 觜 燕 覦 iSCSI target root@server11:~# stmfadm list-view -l 600144F0D00D4C00000054E1DB5B0002 TARGET NAME STATE SESSIONS iqn.1986-03.com.sun:02:040533bb-4cbb-472d-dab6-d576182bc03d online 0 alias: - auth: none (defaults) targetchapuser: - targetchapsecret: unset tpg-tags: default
  • 12. 朱Μ 11 COMSTAR initiator 蟲 root@s11-desktop:~# svcadm enable iscsi/initiator root@s11-desktop:~# svcs iscsi/initiator STATE STIME FMRI online 12:35:54 svc:/network/iscsi/initiator:default root@server11:~# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/_b dhcp ok 10.0.2.4/24 lo0/v6 static ok ::1/128 net0/_a addrconf ok fe80::a00:27ff:fed0:c234/10 initiator 觜 燕 覦 iSCSI レ 豢螳 root@s11-desktop:~# iscsiadm add static-config iqn.1986-03.com.sun:02:56e168d7- 8c6b-e779-982a-9d4e89b871cb,10.0.2.4
  • 13. 朱Μ 11 COMSTAR initiator 蟲 initiator 觜 燕 覦 iSCSI レ 豢螳 root@s11-desktop:~# iscsiadm list static-config Static Configuration Target: iqn.1986-03.com.sun:02:56e168d7-8c6b-e779-982a-9d4e89b871cb,10.0.2.4:3260 root@s11-desktop:~# iscsiadm modify discovery --static enable root@s11-desktop:~# iscsiadm list discovery Discovery: Static: enabled Send Targets: disabled iSNS: disabled root@s11-desktop:~# iscsiadm list target Target: iqn.1986-03.com.sun:02:56e168d7-8c6b-e779-982a-9d4e89b871cb Alias: - TPGT: 1 ISID: 4000002a0000 Connections: 1
  • 14. 朱Μ 11 COMSTAR initiator 蟲 iscsi レ 語 root@s11-desktop:~# devfsadm -i iscsi root@s11-desktop:~# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t600144F0D00D4C00000054E1DB5B0002d0 <SUN-COMSTAR-1.0 cyl 748 alt 2 hd 128 sec 32> /scsi_vhci/disk@g600144f0d00d4c00000054e1db5b0002 1. c3t0d0 <ATA-VBOX HARDDISK-1.0 cyl 8351 alt 2 hd 255 sec 63> /pci@0,0/pci8086,2829@d/disk@0,0 2. c3t2d0 <ATA-VBOX HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32> /pci@0,0/pci8086,2829@d/disk@2,0 3. c3t3d0 <ATA-VBOX HARDDISK-1.0 cyl 1022 alt 2 hd 64 sec 32> /pci@0,0/pci8086,2829@d/disk@3,0 Specify disk (enter its number):
  • 15. Q U E S T I O N S A N S W E R S