Upgrading On-Premise Installations
SmartFile is excited to announce the version 16.10 update to the SmartFile On-Premise software.
Version 16.10 includes many critical security and performance updates. It is critical that customers using earlier versions of SmartFile accomplish the 16.10 update as soon as possible.
The steps for performing this upgrade are detailed below.
In contrast to previous version updates, the 16.10 upgrade process involves completely replacing the VM image, rather than updating Docker containers inside the VM image.
The new VM image contains critical security updates to the base operating system. Additionally, by completely replacing the VM image we ensure that your SmartFile environment does not contain any unauthorized modifications. We do not support any modifications that you may have made to your previous SmartFile VM. All subsequent updates will be delivered as a full VM image.
This upgrade will require downtime for your current production system. You need to power down your existing installation VM long enough to copy the data to the new VM.
Prerequisites
SmartFile requires that your VM is configured with both a primary disk (for the VM image we provide) and secondary disk (to hold your data).
If you do not have a secondary disk configured, please contact our Support Team for help adding and configuring a secondary data disk prior to the upgrade.
All of the Linux commands in this guide should be performed with root privileges, using sudo.
Preparation
Prior to the upgrade, please perform the following steps:
Make a backup first of the entire production VM including primary and secondary disks. While we've never seen anyone experience a failure following these upgrade instructions, taking a backup first provides a safeguard against the unforeseen interrupting a step that can't be recovered.
Save a copy of the network configuration locally. This will be needed to build a new netplan file. This configuration is likely found in the file /etc/network/interfaces
Confirm that the secondary data disk is mounted at /data
. This is the only supported mount location for the secondary data disk. If the data disk is mounted anywhere else, you will need to perform the following additional steps to fix the mount location of the secondary data disk.
You can view where the data disk is mounted with the following command:
Migrate Data Folder Mapping (if needed)
If your secondary disk is mounted at /data
, then you do not need to perform the steps in this section, and you can move on to creating your new VM.
If your secondary disk is mounted to /data/smartfile/files
, you will need to move folders on your secondary disk.
This process is done on your existing SmartFile server, prior to installing the update.
Before you start this process, need to make sure that you have enough disk space free on your secondary disk. Check the size of /data/veristack
and /data/smartfile/
excluding the /data/smartfile/files
folder. You must verify that you have enough space before trying to move the files in the following steps.
As you run each of the commands below, observe the output and be on the lookout for errors.
Stop the docker processes that are reading and writing to the data files:
Make a new subfolder structure to move your files into:
Move the contents of the data folders:
Move the contents of the configuration files, and databases.:
At this point there should be no files in /data/
except for the smartfile
directory.
Next, we will unmount the data disk:
We will now clean up the existing path and remount the disk to the /data folder:
At this point, you can restart the smartfile appliance using the veridocker command:
Launching The New VM Instance
We support two environments for launching the SmartFile VM: VMWare and EC2.
EC2 Instructions
To obtain access to the AMI image, contact support with your AWS Account ID and Region.
Launch a new EC2 instance using the appropriate SmartFile 16.10 AMI for your region. We recommend using a c5n.xlarge
instance type.
VMWare Instructions
Launch a new VM instance in VMware using the SmartFile 16.10 OVA file. For best results, we recommend that you deploy the image from your Content Libraries in vSphere.
Once the new VM is created, select the new Virtual Machine and choose Edit Settings.
Change the CPU and Memory settings to match the previous configuration. Normally this is 4 vCPU and 16 GB of memory.
Confirm that the VM Options settings are set correctly. The Guest OS Family must be set to Linux, and the Guest OS Version to Debian GNU/Linux 6 (64bit).
Expand the root disk for your new VM to match the size of the root disk from the previous VM.
Copy or restore your secondary disk into this new VM instance. If you are copying, first power off the source VM to prevent changes to the source data disk.
Power on the virtual machine and login as admin
with the password DefaultPassChangeMe1!
.
Change the hostname to match your current hostname using the command:
Use the passwd
command to change the password for the admin user.
Create and apply the appropriate netplan configuration in /etc/netplan/
.
Netplan example configuration
Use the example template below to create a network configuration for your environment.
After the network configuration has been set, apply the changes:
Configuring and Finalizing the Upgrade
Execute the following commands in a shell to configure and finalize the upgrade to 16.10:
Create the /data
dir:
Remount the existing disk:
Start the application:
Upgrade the MariaDB database tables, first connect to the docker container running MariaDB. The default password will be: smartfile
After the MariaDB table upgrade, stop the application:
Wait for all containers to fully stop, then start the application:
Confirm that the migrations all applied successfully by tailing the container instance and confirming that there are no errors in the log:
Troubleshooting After Upgrade
A small number of upgrades have resulted in CSS corruption causing the application to render awkwardly in a web browser. When this happens, there's an easy fix.
To resolve this, we will delete the assets and restart the application.
First, stop the application:
Next, remove the asset files:
Then start the application again, and it will automatically recompute assets.
Last updated