DSU UCL 20061 Presentation 1 Semester 1 2006/2007 - ISCSI Target Server Migration 8 September 2006...

Post on 28-Dec-2015

212 views 0 download

Transcript of DSU UCL 20061 Presentation 1 Semester 1 2006/2007 - ISCSI Target Server Migration 8 September 2006...

DSU UCL 2006 1

Presentation 1 Semester 1 2006/2007

- ISCSI Target Server Migration8 September 2006

By Dominic They Yu Shu

DSU UCL 2006 2

Working phases

Study and analysis on ISCSI Initiator code ISCSI Target setup Initiator code modification and connection

testing

DSU UCL 2006 3

ISCSI Initiator Code Analysis

DSU UCL 2006 4

Major Components

@Disk Mobile application Developed by KT User interface to access remote storage device

SCSI Driver Driver for Mobile device to interface with SCSI

Disk ISCSI Driver (Initiator)

ISCSI Initiator Driver to interface with ISCSI Target

DSU UCL 2006 5

TCP/IP

Network

Interoperation Between Components

@Disk Application

Pocket PC 2003 OS

SCSI Driver

Initiator Driver

Pocket PC

SCSI Disks

Tar

get

Dri

ver

HT

TP

Gat

eway

KT Databases

User

DSU UCL 2006 6

Activities Table 1

  Activities By From To

1Key in Username and

Password User Keyboard aDisk

2 Press Login button User TouchScreen aDisk

3 Get KT SAID aDisk Registry aDisk

4 Get InitiatorID aDisk Registry/ KT

Http gateway aDisk

5 Get NasIP (Target IP) aDisk Registry aDisk

6Log in by Username,

Password, and SAID aDisk aDiskKT Http

gateway

DSU UCL 2006 7

Activities Table 2

  Activities By From To

7 Activate ISCSI Session aDisk aDisk aDisk

8 ~ Activate ISCSI Device by ISCSI

Driver Registry Key aDisk aDiskPPC

2003

9 ~ Get Disk Info by NasIP and

InitiatorID aDiskKT Http

gateway aDisk

10 ~ Write Disk Info aDisk aDisk Registry

11 ~ Activate SCSI Device by SCSI

Driver Registry Key aDisk aDiskPPC

2003

DSU UCL 2006 8

Activities Table 3

  Activities By From To

12 Prepare Disk aDisk aDiskISCSI

Target

13 ~ Format aDisk aDiskISCSI

Target

14 ~ Partition aDisk aDiskISCSI

Target

15 ~ Mount aDisk aDiskISCSI

Target

16 Use the Disk aDisk aDiskISCSI

Target

17 ………      

DSU UCL 2006 9

Initiator Modification

DSU UCL 2006 10

Activities Table 1

  Activities By From To

1Key in Username and

Password User Keyboard aDisk

2 Press Login button User TouchScreen aDisk

3 Get KT SAID aDisk Registry aDisk

4 Get InitiatorID User User aDisk

5 Get NasIP (Target IP) User User aDisk

6Log in by Username,

Password, and SAID aDisk aDiskKT Http

gateway

DSU UCL 2006 11

Activities Table 2

  Activities By From To

7 Activate ISCSI Session aDisk aDisk aDisk

8 ~ Activate ISCSI Device by ISCSI

Driver Registry Key aDisk aDiskPPC

2003

9 ~ Get Disk Info by NasIP and

InitiatorID aDiskKT Http

gateway aDisk

10 ~ Write Disk Info aDisk aDisk Registry

11 ~ Activate SCSI Device by SCSI

Driver Registry Key aDisk aDiskPPC

2003

How to insert driver register key?

DSU UCL 2006 12

Activities Table 3

  Activities By From To

12 Prepare Disk aDisk aDisk ISCSI Target

13 ~ Format aDisk aDisk ISCSI Target

14 ~ Partition aDisk aDisk ISCSI Target

15 ~ Mount aDisk aDisk ISCSI Target

16 Use the Disk aDisk aDisk ISCSI Target

17 ………      

No Changes Required

DSU UCL 2006 13

Problems

DSU UCL 2006 14

Problems Faced

Compilation Problems Library path configuration Linking configuration

Testing Problems Language Support of Emulator Regedit for Pocket PC 2003

DSU UCL 2006 15

Problem Might Face

Initiator – Target communication problem Initiator = aDisk Target = UNH ISCSI Target (1.5/1.6/1.7) DeviceIoControl( hISCSI, ISCSI_IOCTL_LOGIN,

(void *)&iSCSILoginParams, sizeof(ISCSI_LOGIN_PARAMS_T), &m_DiskInfo, sizeof(ISCSI_PARAMS_T), NULL, NULL)

DSU UCL 2006 16

Following Tasks

DSU UCL 2006 17

Following Tasks

ISCSI Target setup Initiator code modification and connection

testing

DSU UCL 2006 18

FAQ

DSU UCL 2006 19

END

Thank you