Linux workstation accesses Windows Server through iSCSI protocol

Source: Internet
Author: User

1. Prepare the 1.1 Server environment

Windows Storage Server is a Storage Server of the Windows Server series and an enterprise-level file Server platform. Both of them can be used as iSCSI servers. The following are examples.

1.1.1 Windows Storage Server 2008

A Windows Storage Server 2008 (WSS2008) R2 (64-bit Enterprise Edition) Virtual Machine acts as an iSCSI Server (Note: currently, only 64-bit Enterprise Edition or Work Group Edition supports WSS2008 as an iSCSI Server ).

WSS2008 comes with Microsoft's Software iSCSI Software Target 3.3.

NOTE: If WSS2008 enables the Firewall Service, you must allow port 3260 of TCP to provide services for the client: in Windows Firewall, click Allow programs or functions to pass through Windows Firewall, select iSCSI service and Microsoft iSCSI Software Target, and confirm.

IP: 192.168.0.177.

MASK: 255.255.254.0.

1.1.2 Windows Server 2012

A Windows Server 2012 (WS2012) R2 (64-bit) Virtual Machine acts as an iSCSI Server.

On WS2012, install the iSCSI target software as follows:

① Click "Server Management" at the bottom of the desktop ";

② Select "add role and function" in "dashboard ";

③ On the "before you start" page, click "Next ";

④ On the "Select Start type" Page, select "role-based or function-based installation" and click "Next ";

⑤ On the "select target server" Page, select "select a server from server pool" and click "Next ";

⑥ On the "Select Server role" Page, select "iSCSI target server" and "iSCSI target storage vendor" under "file storage service/file and iSCSI service ", click "Next ";

7. On the "Confirm installation and selection" Page, select "Automatically Restart target server if necessary" and click "Install ".

1.2 Client

A Linux Virtual Machine (in this example, CentOS 6.3) serves as the client.

Note: You can use the System-Administration-Add/Remove Software graphical interface to search for and install SCSI-related Software packages.

We recommend that you assign a static IP address to a Linux virtual machine. If DHCP is used to dynamically allocate IP addresses, the IP addresses of workstations (Linux clients) recorded in WSS2008 will become obsolete when their IP addresses are reassigned.

IP: 192.168.0.204.

MASK: 255.255.254.0.

2 configuration steps 2.1 set WSS2008 to iSCSI storage server 2.1.1 WSS2008 create iSCSI target

To create an iSCSI target on WSS2008, follow these steps:

① Open Microsoft iSCSI Software Target, right-click "iSCSI Target", select "create iSCSI Target" from the shortcut menu, enter the Wizard Page, and click Next;

② On the "iSCSI target identification" page, in the "iSCSI target name" text box, enter the name of the iSCSI target to be created. In this example, It is cbh001. In the "Description" text box, enter related description information;

③ On the iSCSI initiator identifier page, click the "advanced" button. In the displayed "Advanced identifier" dialog box, click the "add" button, in the "Add/edit identifier" dialog box that appears, select "ip address" from the "identifier type" drop-down list, and enter the IP address of the workstation (that is, the Linux client, in this example, 192.168.1.204 is used;

④ Return to the iSCSI initiator identifier page and click "Next". On the "creating iSCSI target wizard" page, click "finish.

Note: You can manually select enable CHAP in "property-Authentication" of cbh001 and configure the user name and password. Since the iSCSI target is provided to the Linux workstation, we recommend that you do not enable it.

2.1.2 WSS2008 create a virtual disk and add it to the iSCSI target

After you return to Microsoft iSCSI Software Target, follow these steps to create a virtual disk:

① Right-click "device" and select "create virtual disk" from the shortcut menu to enter the Wizard Page and click Next;

② On the "Files" Page, select to save the partition of the Virtual Disk and set the virtual disk file with the vhd extension to specify the storage location. In this example, the file is c: \ cbh001.vhd;

③ On the "size" Page, set the size of the virtual disk. In this example, the size is 512 MB. On this page, the maximum drive capacity and available space are displayed;

④ Add description information for the virtual disk on the "Description" page;

⑤ On the "access" page, click the "add" button. In the "add target" dialog box that appears, add the newly created disk to an iSCSI target. In this example, select the target cbh001 created in the previous section;

6. On the "creating a virtual disk wizard" page, click the "finish" button.

2.2 WS2012 set to iSCSI storage server 2.2.1 WS2012 create a volume

To create a volume on WS2012, follow these steps:

① In "file and Server Service" in "Server Management", click "volume", select a specific volume, right-click, and select "new volume ";

② On the "before you start" page, click "Next ";

③ On the "Select Server and disk" Page, select a server and click "Next ";

④ On the "Specify volume size" Page, specify the volume size (we recommend that you use all at once) and click "Next ";

⑤ On the "Assign drive letter" Page, assign a drive letter and click "Next ";

6. On the "select file system Settings" Page, set "file system" to "NTFS", "Allocation unit" to "default", and click "Next ";

7. On the confirm selection page, click Create ".

2.2.2 WS2012 create a virtual disk and add it to the iSCSI target

Return to "file and Server Service" in "Server Management". The steps for creating a virtual disk are as follows:

1. Click "iSCSI" and click "Start new iSCSI Virtual Disk orientation ";

② On the "select iSCSI Virtual Disk location" Page, select the previously created "iSCSI target" and click "Next ";

③ On the "specify iSCSI Virtual Disk name" Page, enter "name" and "Description". You can manually modify the storage path of the vhd and click "Next ";

④ On the "specify the size of an iSCSI Virtual Disk" Page, specify the size of the Virtual Disk (if you want to divide it into two virtual disks, the size is halved twice), and click "Next ";

⑤ On the "allocate iSCSI target" Page, select "New iSCSI target" and click "Next ";

6. On the "Specify target name" Page, enter "name" and "Description" and click "Next ";

7. On the "specify Access Server" page, click "add" to add the initiator type (for example, IP address). After adding the initiator, click "Next ";

On the "authentication" page, you can manually select "enable CHAP" and configure the user name and password (because the iSCSI target is provided to the Linux workstation, we recommend that you do not enable it ), click "Next ";

On the confirm selection page, click Create ".

Web Service shared storage cluster architecture based on RHCS + iSCSI + CLVM

Configure iSCSI storage and multi-path functions in Linux

Build an ip san-based iSCSI Storage System

ISCSI connection failure Solution

Install CentOS 6.0 and configure the iSCSI service in Citrix XenServer

CentOS 5.3 mounts storage cabinets with iSCSI

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.