BVMS - Configuring Microsoft ISCSI Target
BVMS - Configuring Microsoft ISCSI Target
target
1 Document information 3
1.1 Version history 3
2 Introduction 4
3 Microsoft iSCSI Target 5
4 Configuration 6
4.1 Install the iSCSI target 6
4.2 Configure the iSCSI target 7
4.3 Configuration using Powershell 10
4.4 BVMS configuration 10
4.5 Storage system 13
5 Troubleshooting 14
5.1 Video Recording Manager 14
5.2 Windows Resource Monitor. 15
5.3 Hardware specific tools 15
6 After-sales support 16
7 External information 17
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 3 of 17
1 Document information
Project BVMS 10.0.1
Reference n/a
Version 22
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 4 of 17
2 Introduction
SCSI (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.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 5 of 17
Since Windows Server 2012 R2 the iSCSI target support up to 544 iSCSI sessions (source: Microsoft Technet - iSCSI
Target Server Scalability Limits). For fail-over purposes and, depending on the 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.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 6 of 17
4 Configuration
Windows Advanced Firewall
Before starting the configuration, the Windows Advanced Firewall needs to allows iSCSI traffic to pass. Microsoft
Technet - Configuring Windows Firewall for iSCSI Software Target describes how to achieve this.
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).
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 7 of 17
Check of iSCSI target Server is installed. If not installed, select iSCSI Target server and install the role.
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".
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 8 of 17
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.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 9 of 17
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. We recommend you to configure an IQN or
IP based filter that ensures only the whitelisted devices have access to the iSCSI target. For demonstration purposes the
"*" can be used in the IQN filter to whitelist all devices.
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.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 10 of 17
#create target
New-IscsiServerTarget TG0 -InitiatorID Iqn:*
$disk = Get-WmiObject Win32_LogicalDisk -Filter "DeviceID='D:'" | Select-Object Size,FreeSpace
#calculate how many vhdx files to create and then do it in a loop
Write-Host "total space on volume in bytes " $disk.Size
Write-Host "free space on volune in bytes " $disk.FreeSpace
$freeSpaceInMB = [int]($disk.FreeSpace / (1024 * 1024))
Write-Host "free in MB " $freeSpaceInMB $lunSizeInMB = 1950 * 1024
$lunCount = [int]($freeSpaceInMB / $lunSizeInMB)
For($i=0; $i -lt $lunCount; $i++) {
$currentFileName = ("vhd_" + $i + ".vhdx")
New-IscsiVirtualDisk -DevicePath $currentFileName -Size $lunSizeInMB"MB" -fixed
-DoNotClearData
Add-IscsiVirtualDiskTargetMapping -TargetName TG0 -DevicePath $currentFileName
}
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 11 of 17
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.
Warning
When 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".
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 12 of 17
As this will be a new system no data is currently stored on the LUNs, the warning message can be accepted.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 13 of 17
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.
Performance
The 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.
4.5.1 Cache
There are three main caching techniques that can be deployed:
1. Write-through cache: directs write I/O onto cache and through to underlying permanent storage before confirming I/
O completion to the host.
2. Write-around cache: write I/O is written directly to permanent storage, bypassing the cache.
3. 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.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 14 of 17
5 Troubleshooting
Recording gaps and camera disconnect messages can appear if the storage system experiences problems, or is
overloaded.
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.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 15 of 17
Microsoft Technet - Using performance monitor describes how to use the performance- and resource monitor.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 16 of 17
6 After-sales support
When 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.
Warning
Storage 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.
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.
BVMS - Configuring Microsoft iSCSI target 17 of 17
7 External information
The 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)
Copyright Robert Bosch GmbH. All rights reserved, also regarding any disposal, exploration, reproduction, editing, distribution, as well as in the event of
applications for industrial property rights.