<h1 id="miniostorageonlinuxquickinstallationguide">Minio storage on Linux. Quick installation guide.</h1> <p>According to the official site, “Minio is an object storage server released under Apache License v2.0. It is compatible with Amazon S3 cloud storage service. It is best suited for storing unstructured data such as photos, videos, log files, backups and container / VM images. Size of an object can range from a few KBs to a maximum of 5TB”. (<a href="https://docs.minio.io/">https://docs.minio.io/</a>)</p> <p>Minio can be configured under Windows or Linux. However, due to some temporary issues with Windows we highly recommend you to go for a Linux. Since Linux is distributed for free it’s very easy to find the needed installation package over the Internet. Download and install one of the popular Linux distros like:</p> <ul> <li><p>Ubuntu <a href="https://www.ubuntu.com/download/desktop">https://www.ubuntu.com/download/desktop</a></p></li> <li><p>Debian <a href="https://www.debian.org/distrib/">https://www.debian.org/distrib/</a></p></li> <li><p>CentOS <a href="https://www.centos.org/download/">https://www.centos.org/download/</a></p></li> </ul> <p>Below you will find an installation script and other instructions for setting up your Minio storage.</p> <p><strong>1. Download and start Minio configuration script</strong></p> <pre><code>su (or sudo su) // Evaluate privileges to root user wget "https://s3.eu-central-1.amazonaws.com/cblpublic/mcs.sh" // Download the script chmod +x mcs.sh // Make the script executable ./mcs.sh // Run script </code></pre> <p><strong>2. Script step-by-step explanation:</strong></p> <p>2.1 The installation script we previously provided will search for any unfinished/failed Minio installations and delete them automatically.</p> <p><img src="/content/images/ace51911-a3d6-4ef9-9a72-c72a50546fe8.png" alt="" /></p> <p>2.2 You can unmount previously mounted share if you want to mount another share or use local backup destination folder.</p> <p><img src="/content/images/843e8f75-6bb5-4a85-98cd-65a3975aff26.png" alt="" /></p> <p>At this step, you can select your Linux OS.</p> <p><img src="/content/images/d374e51a-239a-4e3a-9530-fb4ea4c984b8.png" alt="" /></p> <p>There are several packages required for the correct work of the Minio server:</p> <ul> <li>sudo</li> <li>openssl</li> <li>cifs-utils</li> <li>curl</li> <li>nfs-common</li> <li>net-tools</li> <li>dnsutils</li> <li>samba</li> <li>smbclient</li> <li>htop</li> </ul> <p>They will be installed automatically.</p> <p>2.3 To point Minio to store data on a NAS or a file server, enter the IP address of that NAS/server. Keep it blank if you would like to use a local folder for Minio storage. Then press Enter.</p> <p><img src="/content/images/25d2a319-906b-4f54-801c-cd2f1203748a.png" alt="" /></p> <p>2.4 On this step you should specify a local backup destination folder. <strong>Steps from 2.5 to 2.8, related to the mounting network share, will be skipped.</strong></p> <p><img src="/content/images/f2d3fab8-0dd2-4af6-bb5f-af4150ff2796.png" alt="" /></p> <p>2.5 Specify NAS/File server network share name.</p> <p><img src="/content/images/a14e23bc-6c0a-4fb7-8df7-733637412d49.png" alt="" /></p> <p>2.6 Enter username and domain name (you can omit @domain<em>name if a user is local) in format username@domain</em>name</p> <p><img src="/content/images/6965f939-cd20-42ca-8680-46d0457edd4d.png" alt="" /></p> <p>2.7 Enter user password. Input is not hidden to allow you to correctly specify the password.</p> <p><img src="/content/images/cefa6edc-825c-4780-9415-ccda13cbd1da.png" alt="" /></p> <p>2.8 Specify the path where you would like to mount a network share (e.g. /mnt/share). The folder will be created automatically.</p> <p><img src="/content/images/f636b5c8-5e6a-484e-b8d9-25d1a4a7b7a9.png" alt="" /></p> <p>2.9 At this step, the script shows an active local IP address from the routing table. Your local IP address will be used to create a self-signed SSL certificate. Your external/public IP address will be applied automatically.</p> <p><img src="/content/images/0dd4b345-ac05-4fef-9332-bedba0d731aa.png" alt="" /></p> <p>2.10 You should then specify the access key for Minio. Minio requires the access key to consist of at least 3 numbers, but we suggest using a minimum of 8 symbols, numbers, and/or special characters for security purposes.</p> <p><img src="/content/images/35396713-d5af-4c66-8032-c59d34abb987.png" alt="" /></p> <p>2.11 Enter the secret key for Minio. The secret key requires a minimum of 8 symbols, numbers, and/or special characters for security purposes.</p> <p><img src="/content/images/8b9c5267-1aa9-4cd7-a385-44c1daa3c822.png" alt="" /></p> <p>Once you have entered all required information, the script will do the following.</p> <ul> <li>Permanently mount a network share if IP address was specified.</li> <li>Download the latest Minio binary</li> <li>Create self-signed SSL certificate</li> <li>Create new minio-user user and give that user permissions to Minio folders</li> <li>Open firewall port 9000</li> <li>Run Minio as a service</li> </ul> <p><strong>3. Adding Minio storage account in CloudBerry Managed Backup Service</strong></p> <p>3.1 Log in to your MBS panel at <a href="https://mspbackups.com/">https://mspbackups.com/</a></p> <p>3.2 Go to Storage &gt; Storage Account &gt; Add account &gt; show more… &gt; Minio</p> <p><img src="/content/images/48ccd3ee-3892-4e93-a23f-7c7e76461760.png" alt="" /></p> <p>Then you need to attach that storage account to the user. You can find more details at <a href="https://mspbackups.com/Admin/Help.aspx?c=Contents/help_apply_storage_for_user.html">https://mspbackups.com/Admin/Help.aspx?c=Contents\help<em>apply</em>storage<em>for</em>user.html</a></p> <p><strong>4. Troubleshooting: most common issues</strong></p> <p>a. Install wget If you faced message “wget command cannot be found”, you need to install wget package using the following command.</p> <p>For Ubuntu / Debian: apt-get install wget -y</p> <p>For CentOS: yum install wget -y</p> <p>b. Manage Minio service You can use the following commands to start, stop and get the status of Minio</p> <pre><code>systemctl start minio # Starts Minio service systemctl stop minio # Stops Minio service systemctl status minio # Shows Minio service status </code></pre> <p>c. Ubuntu: ERROR 22 (“sec=ntlm” issue) Sometimes, during mounting share folder, you can face the error message (-22). It happens due to unavailability to negotiate authentication method. Use the following steps to solve it.</p> <pre><code>sudo nano /etc/fstab #Found and delete “sec=ntlm,” #To save the changes and quit press “Ctrl + X” #Then press “Y” to confirm and press “Enter” sudo mount -a </code></pre> <p>d. Mount error (13): Permission denied Usually, the reason is the wrong username or password.</p> <pre><code>sudo nano /etc/minio/.smbcredentials #Amend username or password #To save the changes and quit press “Ctrl + X” #Then press “Y” to confirm and press “Enter” sudo mount -a </code></pre> <p>e. Access denied: need to check the external access to the Minio storage from any other server using HTTPS link in the browser.</p> <p><img src="/content/images/f518a41a-6aa9-4278-a229-1583a36f288b.png" alt="" /> <img src="/content/images/0a45b4c1-9368-4e18-a7b6-1c969ba2946b.png" alt="" /></p> <p>f. Once you have added the Minio storage in the MBS panel you could go to the CBB agent and start to back up your data to that Minio destination. During the first run, you will get a pop-up window where you should allow your self-signed certificate. The main difference between a Self-signed certificate and a Certificate Authority (CA) certificate is that with self-signed, a browser will generally give some type of error, warning that the certificate is not issued by a Certificate Authority.</p> <p><img src="/content/images/094aeff7-a28a-4c2e-a7db-5720c35aeaf8.png" alt="" /></p> <p>g. You can check the following files and folders in case if you have other issues.</p> <p><strong>/etc/minio/certs</strong> - SSL certificates folder<br /> <strong>/usr/local/bin/minio</strong> - minio binary file.<br /> <strong>/etc/default/minio</strong> - minio options file.<br /> <strong>/etc/systemd/system/minio.service</strong> - minio service config file.<br /> <strong>/etc/minio/.smbcredentials</strong> - network share credentials file.<br /> <strong>/etc/fstab</strong> - network share mount options file. </p>