NetApp vFiler DR with Data ONTAP Simulator Part 4: Create an aggregate and volume

This article is part of a series.

In this part of the series a new aggregate (aggr1) and volume (vol_vfiler01) are created on each of the 2 simulators. The aggregate consists of 14 disks and the volume will have a size of 10 GB (minimum size for synchronous SnapMirrors). In the video I used the OnCommand System Manager to configure the first simulator (netapp01).

Read more gblog_arrow_right

Validate PowerShell parameters

When you use parameters in your PowerShell script you might want to check the values for valid data. Of course you can do these checks with some if statements. But you can also specify valid values when defining the parameters.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# definition of parameters
Param(
    [Parameter(Mandatory=$True)]
    [string]$StringParameter1,

    [Parameter(Mandatory=$True)]
    [ValidateSet("String1","String2")]
    [string]$StringParameter2,

    [Parameter(Mandatory=$True)]
    [int]$IntegerParameter1,

    [Parameter(Mandatory=$True)]
    [ValidateRange(0, 5)]
    [int]$IntegerParameter2
)

# own validation of parameters
if (-not($StringParameter1 -eq "String1" -or $StringParameter1 -eq "String2")) {
    Write-Output "Error! Valid values for StringParameter1 are ""String1"" and ""String2""."
    exit
}
if ($IntegerParameter1 -lt 0 -or $IntegerParameter1 -gt 5) {
    Write-Output "Error! Value of IntegerParameter1 must be in range from 0 to 5."
    exit
}

# output of the parameter values
Write-Output "StringParameter1: $StringParameter1"
Write-Output "StringParameter2: $StringParameter2"
Write-Output "IntegerParameter1: $IntegerParameter1"
Write-Output "IntegerParameter2: $IntegerParameter2"
Read more gblog_arrow_right

Future of jk_poll

jk_poll is now 10 years old (first upload in 2005). New versions are released more and more rarely and only contain bugfixes like compatibility with TYPO3 6.2.x. From my point of view the extension is “feature complete”.

I started jk_poll because I needed a poll for one of my TYPO3 installations and none of the existing ones seemed to fit. Over the years I got requests for new features and so the extension enhanced. By now I do not use jk_poll in any TYPO3 installation by myself (except for the demo on this site). In general I only use TYPO3 rarely. Because of this it is more than likely that jk_poll will not get any new features. In contrast some features might fall because other extension needed (like comments) are no longer compatible with the current TYPO3 version 6.2.17. Of course you are free to request new features but the chances they will make it in the extension are extremely little. However bugfixes and compatibility for at least TYPO3 version 6.x will still be provided.

Read more gblog_arrow_right

NetApp vFiler DR with Data ONTAP Simulator Part 3: Configuration of the second simulator

This article is part of a series.

In general the second simulator is configured like the first one. As a main difference you have to change the serial number and system id of the second VM and use the appropiate license numbers like already mentioned in Part 1.

From the file “VSIM Licenses: 8.2.3 licenses Clustered-ONTAP” you choose a serial number matching your VMware product. In my case this is the line “Licenses for the non-ESX build (Serial Number 4082368507)”. So the serial number for the second VM is 4082368507 and the license codes are listed beneath.

Read more gblog_arrow_right

Alternative client for Let's Encrypt

As mentioned in the first blog post you have to trust the installation process which installs a whole envrionment in ~/.local/ nicht ganz durchsichtig. As an alterntive I tried acme-tiny. The only requierements are Python and OpenSSL and the source code is under 200 lines. So if you know Python you are able do see what the clietn actually does more easily.

Another advantage is the possibility to use Subject Alternative Names which helps yout o get a certificate valid for more than just one domain (as long the domains point to the same server and webspace). So you can get a certificate valid e.g. for krausmueller.de and www.krausmueller.de. The README describes all steps necessary. So I am only adding some notes to the most important ones.

Read more gblog_arrow_right