window连接磁盘柜

用iscsi使windows客户机连接到磁盘柜


首先添加两块不同大小的硬盘,分别是20GB  SCSI 10 、30GB  SCSI 11                              

wKioL1PvK6LDJkf6AAF08kNBEno398.jpg

wKiom1PvKpeCrbloAAFyxHU7B70734.jpg

添加完成查看硬盘

# fdisk -l

 

Disk /dev/sda:26.8 GB, 26843545600 bytes

255 heads, 63 sectors/track, 3263 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

  Device Boot      Start         End      Blocks  Id  System

/dev/sda1  *           1         127    1020096   83  Linux

/dev/sda2             128        1463   10731420   83  Linux

/dev/sda3            1464       2738    10241437+  83 Linux

/dev/sda4            2739        3263    4217062+   5  Extended

/dev/sda5            2739        3260    4192933+  82  Linux swap / Solaris

 

Disk /dev/sdb:1073 MB, 1073741824 bytes

255 heads, 63 sectors/track, 130 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

  Device Boot      Start         End      Blocks  Id  System

/dev/sdb1               1         130    1044224+  83  Linux

并没有看到新添加的硬盘


刷新磁盘信息

# echo "- - -" >/sys/class/scsi_host/host0/scan

# echo "- - -" >/sys/class/scsi_host/host2/scan

# echo "- - -" >/sys/class/scsi_host/host98/scan

 

查看新加的磁盘信息

# cat /proc/scsi/scsi

Attached devices:

Host: scsi0Channel: 00 Id: 00 Lun: 00

 Vendor: VMware,  Model: VMwareVirtual S Rev: 1.0

 Type:   Direct-Access                    ANSI SCSI revision: 02

Host: scsi0Channel: 00 Id: 01 Lun: 00

 Vendor: VMware,  Model: VMwareVirtual S Rev: 1.0

 Type:   Direct-Access                    ANSI SCSI revision: 02

Host: scsi2Channel: 00 Id: 00 Lun: 00

 Vendor: VMware,  Model: VMwareVirtual S Rev: 1.0

 Type:   Direct-Access                    ANSI SCSI revision: 02

Host: scsi2Channel: 00 Id: 01 Lun: 00

 Vendor: VMware,  Model: VMwareVirtual S Rev: 1.0

 Type:   Direct-Access                    ANSI SCSI revision: 02

 

可以看到在console上增加了一个物理资源:

wKioL1PvK8DT50TfAAEoLTLrMJY272.jpg


将新增的两块盘更改为虚拟设备:用于存储

wKiom1PvKrrSe04PAAGQth0S3wA638.jpg

wKiom1PvKseiQZYbAAEVWSrtGzE931.jpg


windows上连接磁盘柜:

wKioL1PvLASClrGuAAHkU33hdAc776.jpg

 wKioL1PvK-2DfByAAAHJRwPGOL0918.jpg

wKioL1PvK_mDNKbPAAHn6gAaVso260.jpg


创建SAN客户机

wKioL1PvLBmihrRZAAIzMoDVzuI701.jpgwKiom1PvKxTgJ9_QAAHGwpK_bWs464.jpg

选择不进行身份验证

wKioL1PvLFDxlRKwAAJuVghLpaY629.jpg


开启永久保存

wKiom1PvK1nh86peAAD9aW0n1Y8991.jpg


浏览客户机的具体信息

wKiom1PvK4TSzq7sAAE4MO4iz74537.jpg


客户机创建成功,在控制台可看到:

wKioL1PvLKuyKbVGAAF0e46z6NU502.jpg


创建逻辑资源:

wKiom1PvK5-AXHWfAAFBvA9j354322.jpg


资源大小为10GB

wKioL1PvLMjxfKaaAAEgN-CABO8618.jpg


设置资源名称:

wKiom1PvK96Tm1vCAAGQpADUGqY082.jpg


SAN客户机分配逻辑资源:

wKiom1PvK_LCm4TkAAFi8-0ajiA200.jpg


分配成功:

wKioL1PvLRiSADF6AAHC3j8z2Ms975.jpg


在客户机上激活target

wKiom1PvLBKx03zYAAHBKlSnrmc179.jpg

wKioL1PvLUuz4SPaAAH8bubWf3M862.jpg


查看磁盘管理:增加了一块10GB的盘

wKioL1PvLXGjiaTlAAFbv5UprbI207.jpg


在磁盘上新建简单卷

wKiom1PvLGqCl29UAADDiywZtmg160.jpg


查看本地磁盘,可看到

wKiom1PvLHexrb6jAABcpGPjrsQ514.jpg


查看控制器,也可以看到资源分配信息

wKiom1PvLHeyBJlUAADQtZpEQak899.jpg

你可能感兴趣的:(windows,连接磁盘柜)