Thursday, December 13, 2012

Creating a SAN using Microsoft iSCSI Software Target 3.3


When Microsoft released their iSCSI Software Target to general download in April they opened up a world of possibilities for smaller companies (as well as IT Pros and hobbyists) who use servers, but cannot justify spending thousands of dollars on a Storage Area Network (SAN) device. In this article I will show you how to create a virtual SAN in your environment.
Installing the iSCSI Software Target (available here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=45105d7f-8c6c-4666-a305-c8189062a0d0) is a simple process. It comes as a self-extracting package which installs seamlessly on any Windows Server 2008 R2 operating system (RTM or SP1). Once installed it appears under Administrative Tools.
clip_image002
clip_image004Before we create our iSCSI Target we will create two VHD files: One as our Witness Disk and one for Shared Storage. Right-click on Devices and click Create Virtual Disk.
In the Create Virtual Disk Wizard type the full name (including directory structure) of the VHD file you want to create. The Witness Disk does not have to be very big (8GB is my norm), but the Shared Storage Disk should be as large as you would need it to be… depending on what you will be storing it might need to be quite large.
1. In the Welcome screen click Next.
2. In the File screen type the name and location of the VHD file you want to create (c:\disks\Witness.vhd) and click Next.
3. In the Size screen enter the size of the VHD in megabytes (for the Witness disk enter 8192) and click Next.
4. In the Description screen enter a description (Witness Disk) and click Next.
5. On the Access screen click leave the fields blank and click Next. We will configure this once we create our Target.
6. On the Completing the Create Virtual Disk Wizard screen click Finish.
clip_image006Make sure to repeat these steps for the Shared Storage disk, changing only the file name, description, and size appropriately.
For each VHD two files will be created – the Virtual Hard Disk file which will be Fixed Disks, and a Microsoft iSCSI Software Target Change Tracking Bitmap file, which is a .cbm file that Microsoft uses for integrity checking.
Now that our storage is allocated we will create our iSCSI Target. To begin we will right-click on iSCSI Targets in the navigation pane and click Create iSCSI Target.
1. In the Welcome screen click Next.
2. In the iSCSI Target Identification screen enter the name of your iSCSI target. This will be the name of your Logical Unit Number (LUN). You can also optionally enter a description. Click Next.
NOTE: Although not a requirement, it is a best practice to exclude punctuation, especially periods and dashes, as they are used in the iSCSI Qualified Name (IQN) that will be created by both the target and initiator.
3. In the iSCSI Initiators Identifiers screen we will select the Windows machines that will be able to access the iSCSI target. Click on Advanced… to enter the DNS domain name, IP address, MAC address, or multiple pre-determined IQNs. In most cases the iSCSI Initiators of your devices will not have been enabled yet, but by entering their IP address you can save extra steps later.
clip_image008There are two components of an iSCSI SAN – the target, which is the LUN on the actual SAN device, and the initiator, which is the computer that will be accessing it. Because SANs are commonly used with clusters, it is possible to have several initiators configured to access a single target. However if the target is not configured for the initiator, it will be invisible to that system when it tries to access it.
4. Click Next on the iSCSI Initiators Identifiers screen, then click Finish on the Completing the Create iSCSI Target Wizard screen.
clip_image010At this point your iSCSI target has been created. We can look at the properties by right-clicking on the iSCSI Target we created and click Properties.
The LUN properties box should have five tabs: General, iSCSI Initiators, Authentication, Virtual Disks, and Advanced.
Under the General tab you will see (for the first time?) your IQN. In the example created for this article it is iqn.1991-05.com.microsoft:ski-storage-lun1-target. This convention may appear long and convoluted, but it can be broken down into two parts… the device manufacturer and the actual target.
Because we are using the iSCSI Software Target, the manufacturer is Microsoft, and because their domain name (microsoft.com) was registered in May of 1991 the first part of our iqn is 1991-05.com.microsoft. (If you had an EMC device, you would have an IQN of iqn.1997-07.com.emcJ
The first part of the IQN is separated from the second part by a colon. The actual target (LUN1) is on a server called Ski-Storage, hence ski-storage-lun1-target.
Under the iSCSI Initiators tab you can see, add, edit, and remove initiators. This will be important if you plan to add new initiators to a cluster, for example.
Under the Authentication tab you can set CHAP (Control Host Authentication Protocol). This is the only method of authentication supported by iSCSI.
Under the Virtual Disks tab we will add our pre-created VHDs.
1) Click Add…
2) Select both disks and click OK.
3) In the LUN Properties screen click OK.
At this point our LUN is created and populated, and ready to go! Now it is a simple matter of pointing our initiators to the device.
In Windows Server, click Start – Administrator Tools – iSCSI Initiator to launch the iSCSI Initiator. If this is the first time you are running it on your server you will be warned that in order to run the Initiator, the Microsoft iSCSI Initiator Service must be running, and that Windows will configure it to auto-start.
In the iSCSI Initiators Properties box there are six tabs: Targets, Discovery, Favorite Targets, Volumes and Devices, RADIUS, and Configuration.
clip_image012In the Targets tab type the IP address of the server on which you configured your software target, and click Quick-Connect… In the event of a successful connection a Quick Connect window will appear with the IQN of your iSCSI target and the status Connected in the Status column. Click Done to close the Quick Connect window.
The IQN of your target will now appear in the Discovered Targets list on the Targets tab.
Click on the Volumes and Devices tab of the iSCSI Initiator Properties window. The Volume List should be blank. Click Auto Configure to automatically configure all of the devices on the discovered target. Two devices should appear.
clip_image014
The rest of what we are doing should be pretty familiar to you.
1) Open Server Manager.
2) Navigate to Disk Management.
There should be two new disks attached to your server.
3) Right-click the 8.00 GB disk and click on-line. Right-click the 64.00 GB disk and click on-line.
4) Right-click the 8.00 GB disk and click Initialize. The Initialize Disk screen should appear, allowing you to select both disks to be initialized. Click OK.
5) Create a Simple Volume on each disk.
a. On the 8.00 GB disk right-click on the unallocated space and click Create Simple Volume.
b. In the New Simple Volume Wizard click Next.
c. In the Specify Volume Size screen click Next.
d. In the Assign Drive Letter or Path screen select Q and click Next.
e. In the Format Partition screen change the Volume Label to Witness Disk and click Next.
f. On the Completing the New Simple Volume Wizard screen click Finish.
Repeat the same steps for the 64.00 GB disk, replacing the drive letter with M and the label to Shared Storage.
At this point your LUN is created, formatted, and ready for data!
In the next article we will use this LUN to create a cluster, and configure that cluster to make a Hyper-V Virtual Machine Highly Available.

Hi If you found this post useful then kindly share your view and feed back through comments.

Thanks
R.karthikeyan
9782829889/9772655552

No comments:

Post a Comment

Share this

Labels

WINDOWS SERVER (22) Windows (20) IIS (15) Interview questions (10) TFS (9) Troubleshooting Tips (9) Fortigate Firewall (8) SQL (8) Backup (6) Team Foundation Server (6) Webserver (6) Windows Administration Task (6) Microsoft certification (5) Virtualization (5) ADDS (4) Active Directory (4) FTP (4) PHP (4) SQL 2012 (4) SQL Server (4) server (4) DBA (3) MSSQL (3) Networking (3) Offer (3) Webhosting (3) Windows 8 (3) 74-409 (2) Agile Methodology (2) Apache (2) CLI Commands (2) DNS (2) Dedicated server (2) Difference between Active and Passive Connection Mode (2) Fortinet (2) GPO (2) IIS8 (2) IPAddress (2) IPV6 (2) MVA (2) Microsoft News (2) NAT (2) Software Development (2) TFS2013 (2) Uncategorized Post (2) XAMPP (2) firewall Administration. (2) powershell (2) .htaccess (1) ALM (1) Agile vs Scrum Difference (1) Blogging TIPS (1) CPanel (1) Command for Administrator (1) DC (1) DHCP (1) Domain joining nano server (1) Exam 74-409 (1) Excel TIps (1) File server (1) Fortigate Firewall HA (1) Fortigate Firmware Upgrade (1) Free Exam 70-740 (1) Free Voucher (1) Generation2 VM (1) Group Policy (1) HP (1) HP ILO IP CHange (1) HP OA IP Change (1) HP Proliant Servers (1) HTTP to HTTPS (1) Hyper-V (1) IAS (1) IIS Server hardening (1) ILO (1) Install dll (1) MCSA 2016 (1) Microsoft Virtual Academy (1) Microsoft file sharing Port (1) Migration (1) MySQL (1) NPS (1) Nano server (1) Network Drive (1) OA (1) Plesk Panel (1) Ports (1) Ports for windows file sharing (1) RADIUS (1) RDP (1) Remote Desktop Connection (1) SCRUM (1) SQL ErrorLog (1) SQL TEMPDB (1) Second Shot (1) Server 2012 (1) Startup Parameters (1) TEMPDB Movement (1) TIPS (1) Team Foundation Server 2013 (1) Temp profile. (1) Troubleshooting DNS (1) URL Rewriting (1) VDOM (1) VPS (1) VSS (1) Virtual Labs (1) Visual Studio (1) Visual Studio 2012 (1) Visual Studio 2013 (1) Visual source safe (1) Waterfall Model vs Agile Methodology (1) Windows 2016 (1) Windows 7 (1) Windows Server 2012 (1) Windows command line (1) XP (1) certification path (1) exam (1) free online courses (1) protocols/ports for windows file sharing on a firewall (1) sql error (1) what features has been installed in your SQL Server (1) windows 2012 (1) windows Time Service (1) work item types difference (1)

E-Books

Blogger Gadgets