BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an...

20
23-Mar-2017 10:54 Date: Verhaeg Mario (ST-ESS/MKP1) Author: BVMS - Configuring Microsoft iSCSI target www.boschsecurity.com

Transcript of BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an...

Page 1: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

23-Mar-2017 10:54Date:Verhaeg Mario (ST-ESS/MKP1)Author:

BVMS - Configuring Microsoft iSCSI target

www.boschsecurity.com

Page 2: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 2 of 20

Copyright Robert Bosch GmbH.

Document information

Project BVMS

Reference n/a

Version 17

Last modified 22 March 2017

Version history

Version Date Who Description

17 22 March 2017

Mario Verhaeg Release.

Page 3: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 3 of 20

Copyright Robert Bosch GmbH.

IntroductionSCSI (Small Computer System Interface) is most commonly used for the communication between computers and peripheral devices, such as hard drives. iSCSI enables devices to use SCSI over a network interface, therefore it makes a lot of sense for cameras to use iSCSI to record video. The camera is a small computer that needs a (network) connection to a "hard drive" to store video footage. In other systems this job is performed by the network video recorder (NVR).

Image: Network Video Recorder versus Bosch iSCSI based storage. The Storage Area Network (SAN) could also be iSCSI based.

A network video recorder introduces a single point of failure: all video streams are being processed by a single software process. When this process fails (hardware failure, software crash) a standby network video recorder can connect to those cameras and take over the recording process. This process consumes some time and will result in a small recording gap. A network video recorder does not exist in a Bosch environment. However, there is one exception: when non-Bosch cameras are used a network video recorder called Video Streaming Gateway is used to record streams from these cameras onto the iSCSI environment.

Microsoft Server Windows 2016This guide is based on Microsoft Windows Server 2012 R2. Microsoft did not make major changes in the transition to Windows Server 2016. This guide could therefore also be used as a guide for Windows Server 2016.

Page 4: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 4 of 20

Copyright Robert Bosch GmbH.

ContentsDocument information

Version history

Introduction

Contents

1. Microsoft iSCSI Target

2. Configuration

2.1. Install the iSCSI target

2.2. Configure the iSCSI target

2.3. BVMS configuration

2.4. Storage system

3. Troubleshooting

3.1. Video Recording Manager

3.2. Windows Resource Monitor.

3.3. Hardware specific tools

4. After-sales support

5. External information

Page 5: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 5 of 20

Copyright Robert Bosch GmbH.

1. Microsoft iSCSI TargetThe Microsoft iSCSI target is part of all Windows Server editions. It will pick-up the iSCSI traffic coming from the camera and will write it the storage device. This storage device can be connected to a storage area network, but can also reside within the same system as local hard drives.

Since Windows Server 2012 R2 the iSCSI target support up to 544 iSCSI sessions (source: Microsoft ). For fail-over purposes and, depending on the Technet - iSCSI Target Server Scalability Limits

configuration, a camera connects to an active iSCSI target and a passive iSCSI target simultaneously. Bosch recommends to allocate up to 256 cameras to a single Microsoft iSCSI target based on Windows Server 2012 R2.

Page 6: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 6 of 20

Copyright Robert Bosch GmbH.

2. Configuration

Windows Advanced FirewallBefore starting the configuration, the Windows Advanced Firewall needs to allows iSCSI traffic to pass. describes Microsoft Technet - Configuring Windows Firewall for iSCSI Software Targethow to achieve this.

2.1. Install the iSCSI targetCheck if the Role "File and Storage Service iSCSI Target Server" is installed. Start the "Server Manager". This will start the "Add Roles and Features Wizard". Click "Next".

Choose the "Role-based or feature-based installation" option.

Select the system on which the iSCSI target needs to be installed (normally this would be the local system on which the wizard is started).

Page 7: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 7 of 20

Copyright Robert Bosch GmbH.

Check of iSCSI target Server is installed. If not installed, select iSCSI Target server and install the role.

2.2. Configure the iSCSI target

Configure storage deviceBefore continuing with this guide, the (optional) storage arrays need to be configured and connected to the Windows operating system. This means the arrays should have a drive letter assigned to them. As this process is different for each and every storage vendor, Bosch recommends to contact the storage vendor for documentation regarding this process.

The iSCSI target server uses virtual disks, which are assigned to an iSCSI target. The virtual disks are used for recordings of cameras. The size of the virtual hard disks represent the size of LUN’s assigned to the VRM. Bosch recommends to use a maximum LUN size of 2 Terabyte. A single Video Recording Manager can handle up to 2 Petabyte. If more storage is required, another Video Recording Manager needs to be added.

To start the configuration, open the Windows 2012 Server Manager, select "File and Storage Services" and click "iSCSI".

Page 8: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 8 of 20

Copyright Robert Bosch GmbH.

Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the volume to create new virtual hard disks.

On this server the F drive is used to create the virtual disks. In the next step, the disk name needs to be specified.

Define the size of the virtual hard disk, minimum 200 GB and maximum 2048 GB and make sure “clear the virtual hard disk on allocation” is checked. Multiple disks need to be created if the storage capacity of the system exceeds 2048 GB. One iSCSI target can contain multiple disks. Each disk will be represented as a LUN.

Page 9: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 9 of 20

Copyright Robert Bosch GmbH.

When a new system is created: create a new iSCSI target and define the name of the target. When a new virtual disk is added to an existing system: select the iSCSI target to which the disk needs to be added.

In the "Target name and Access" window the access to the target is specified. Make sure that the IQN is used to identify the initiator and use value "*". This allows all cameras to use the target. Alternatively the identification can be based on IP addresses. Then, all camera IP addresses need to be added to the list.

Page 10: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 10 of 20

Copyright Robert Bosch GmbH.

CHAP authentication is supported and can be enabled as required. The Video Recording Manager and cameras (described in their respective manuals) need to have a matching configuration.

Finish the wizard.

Page 11: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 11 of 20

Copyright Robert Bosch GmbH.

2.3. BVMS configurationWhen adding a new storage device to the BVMS (as described in the BVMS configuration manual) some parameters are required.

Specify the values as required, and use a Windows user-name and password which has administrative access on the iSCSI server.

Activate the configuration before making further changes.

The target needs to be scanned once the target configuration is activated.

Page 12: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 12 of 20

Copyright Robert Bosch GmbH.

WarningWhen the BVMS Config Client is not able to scan the iSCSI target, it is most likely the selected user account does not have the rights to provide the BVMS with the correct information. Ensure that the Windows user is part of the "administrators" group. A description on how to do this can be found on .Microsoft Technet - Add a member to a local group

After adding the iSCSI device an error message could pop up. This message indicates the current file format on the LUN is not recognized and it needs to be formatted. Click "OK".

Select the LUN(s), and click "Format LUN".

Page 13: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 13 of 20

Copyright Robert Bosch GmbH.

1.

As this will be a new system no data is currently stored on the LUNs, the warning message can be accepted.

Right click on the iSCSI device, and click "Load balancing". Set the upper limits for the permitted bit rate and the number of simultaneous iSCSI connections for each iSCSI system. If these limits are exceeded, data is no longer being written to the iSCSI system and is lost.

PerformanceThe load balancing limits are very important: If the storage device cannot offer the performance which is configured, recording gaps might appear and cameras might loose connections to the storage device.

2.4. Storage systemAs storage systems from different vendors differ in configuration, the specific configuration details are not in the scope of this document. Some general recommendations regarding the configuration of a storage system are given.

2.4.1. CacheThere are three main caching techniques that can be deployed:

Write-through cache: directs write I/O onto cache and through to underlying permanent storage before confirming I/O completion to the host.

Page 14: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 14 of 20

Copyright Robert Bosch GmbH.

2.

3.

Write-around cache: write I/O is written directly to permanent storage, bypassing the cache.

Write-back cache: write I/O is directed to cache and completion is immediately confirmed to the host: .this is the recommended way of writing for video footage

Page 15: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 15 of 20

Copyright Robert Bosch GmbH.

3. TroubleshootingRecording gaps and camera disconnect messages can appear if the storage system experiences problems, or is overloaded.

3.1. Video Recording ManagerThe Bosch Video Recording Manager included a lot of tools to evaluate the performance of the system and analyse problems. The Video Recording Manager dashboard can be opened by browsing to the IP address on which the Video Recording Manager is installed. Alternatively the Video Recording Manager dashboard can be opened by right-clicking on the Video Recording Manager in the BVMS Config client, and clicking "VRM monitor".

The Targets page (under Storage), shows the individual targets and their status.

The Storage Overview page shows the total consumes bandwidth and system capacity.

The System Logbook shows current system events. If cameras are disconnected from specific target, messages will show up in the logbook.

Page 16: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 16 of 20

Copyright Robert Bosch GmbH.

3.2. Windows Resource Monitor.The Windows operating system also has a lot of tools on-board which can help analyse performance issues. The Resource Manager can be used to look at read/write rates, active time and response time.

Microsoft Technet - Using performance monitor describes how to use the performance- and resource monitor.

3.3. Hardware specific toolsStorage vendors may have hardware specific tools to monitor the status of the storage devices. These can give additional insights into the status of a device.

Page 17: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 17 of 20

Copyright Robert Bosch GmbH.

Most of these tools also allow system monitoring, and can alert when (for example) a hard-drive fails. The BVMS supports receiving SMTP messages from these devices, and can present these to the operator for follow-up. The configuration of SMTP is outside of the scope of this document, but can be found in the BVMS configuration manual.

Page 18: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 18 of 20

Copyright Robert Bosch GmbH.

4. After-sales supportWhen using Bosch storage devices, an end-to-end Bosch engineered system is delivered. As a result, components are well known and expertise is available to analyse and solve the most difficult issues.

Using non-Bosch storage devices is therefore a challenge: it is not possible to have in-depth knowledge on all storage brand and devices. This section will give clear insights in what Bosch technical support can and cannot do.

WarningStorage devices are complex and require specific knowledge. Ensure the engineers who are designing and configuring the storage system are properly trained by the storage manufacturer and are able to troubleshoot together with Bosch technical support whenever problems arise. Knowledge on how to operate Wireshark, Windows Server and basic networking is required.

Whenever problems arise, Bosch technical support will help with:

Verifying the camera can reach the iSCSI target, based on the configuration guide in this document.

Verify the video footage arrives on the network interface of the iSCSI target (using Wireshark).

Analyse camera logfiles.

Analyse VRM logfiles.

Bosch technical support will help to ensure that the data coming from the camera arrives at the storage server.

Bosch technical support will help with:not

Performance analysis of the storage.

Hardware configuration of the storage (includes configuration of LUN's).

Page 19: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

BVMS - Configuring Microsoft iSCSI target 19 of 20

Copyright Robert Bosch GmbH.

5. External informationThe use of non-Bosch storage devices is based on the usage of IT standard equipment. The information linked below can be used as a reference for further information. For specific configuration manuals the storage vendor should be contacted.

Configuration guide for the Microsoft iSCSI target on Microsoft Technet (can be used to configure the Microsoft iSCSI target, which is part of all Microsoft Windows Server editions)

Explanation of the iSCSI protocol on Wikipedia (readable description of the iSCSI protocol)

Recommended RAID settings for DIVAR IP 6000 (these can also be applied for other storage systems)

Bosch Video Management System Quick storage selection guide (currently tested storage systems)

Page 20: BVMS - Configuring Microsoft iSCSI target...Mar 23, 2017  · Start the wizard: “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”. Select the ... the virtual

Bosch Sicherheitssysteme GmbHST/ESS-MKP1 Postfach 11 11 85626 Grasbrunn GERMANY