This short tutorial describes how to expand mirror volume by replacing disk drives by larger. For this example I used FreeNAS installed on VirtualBox with two 10GB drives (10GB total in mirror mode). The existing disk volume will be extended to 20GB by replacing of both disks by larger.

First of all go to ‘Storage’ section.

Zrzut ekranu z 2015-05-05 13:48:35

In this case we have 6 GB used (78% of volume space is used). Let’s try to expand volume from 10GB to 20GB (by replacing 10GB by 20GB disks).

Select ‘test-volume’ and click ‘Volume status’ button on the bottom of page. You will see current status of the volume including disk drives.

Zrzut ekranu z 2015-05-05 13:49:44 Continue Reading

Sometimes you need to combine two text files basing on values in specified columns of that files (on the similar way like SQL JOIN operation). In the Linux it can be easily done using join shell command. Let’s take a look on the following example. Suppose we have two files:

$ cat ./file1.txt
1 aa
2 bb
3 cc
4 dd
$ cat ./file2.txt
1 ee
2 ff
3 gg
4 hh

Continue Reading

Testing of SSL connection could be easily done using openssl command. This powerful tool can check both SSL and TLS connection. Certificate chain can be also checked. It is very useful especially for testing newly installed SSL certificate.
Verification could be done using s_client command in openssl. As an example we will use www.sslshopper.com, test.rebex.net and gmail.com. Here is a list of the most common s_client command’s variations:
To test http SSL connection type:

openssl s_client -connect www.sslshopper.com:443 -CApath /etc/ssl/certs/

Continue Reading