SHINE Software Installation
Setting up first node
We will need linux OS, Ubuntu 18.04 LTS is recommended. We need physical or virtual server with at least 16GB RAM, some 50GB storage for the operating system, and a 200GB block storage volume for a ZFS pool.
ZFS is a feature-rich filesystem developed by Sun Mycrosystems, and currently is is available in Linux. ZFS allows quick and lightweight snapshots, and fast rollbacks to existing snapshots. Also it supports compression and adjustable record size suitable for the application.
Install required packages:
apt-get update && apt-get install -y aptitude git lxc-utils zfsutils-linux netfilter-persistent sysstat Create zpool
pvcreate /dev/sdb
vgcreate vg00 /dev/sdb
lvcreate -n zdata -l 100%FREE vg00
zpool create zdata /dev/vg00/zdatalxc container setup
A Linux® container is a set of one or more processes that are isolated from the rest of the system.
LXC containers run natively on the operating system, sharing it across all of your containers, so our apps and services stay lightweight and run swiftly in parallel.
systemctl stop lxc-net
sed -i -e 's,^.*LXC_DHCP_CONFILE,LXC_DHCP_CONFILE,' /etc/default/lxc-net
sed -i -e 's,10\.0\.3,10\.0\.11,g' /etc/default/lxc-net
cat >/etc/lxc/dnsmasq.conf <<'EOT'
dhcp-host=lightapi,10.0.11.10
EOT
systemctl start lxc-netCreate the desired zfs hierarchy.
Download Ubuntu 18.04 packages and set up a new container
Ssh-keygen is a tool for creating new authentication key pairs for SSH
Allow SSH to the container, provided that you have an SSH agent running
Attach the lcx container
Create shine user inside the container.
Build SHINE from Source
Last updated
Was this helpful?