Skip to content

Cockpit

Cockpit summary

Install cockpit

sudo apt install cockpit cockpit-storaged -y

Enable it

sudo systemctl enable --now cockpit.socket

For SMB file sharing first install samba

sudo apt install samba

Enable it on startup

sudo systemctl enable smbd

And start it

sudo systemctl start smbd

You'll need curl if you don't already have it

sudo apt install curl

Then add the file sharing plugin

curl -sSL https://repo.45drives.com/setup | sudo bash
sudo apt-get update
sudo apt-get install cockpit-file-sharing

You'll need to set a samba password for your user

sudo smbpasswd -a thomas

Restart samba

sudo systemctl restart smbd nmbd

For ZFS storage pool, install the utils

sudo apt update
sudo apt install zfsutils-linux

You'll need to install git

sudo apt install git

then follow instructions here: https://github.com/45Drives/cockpit-zfs-manager

Make sure to follow the instructions to enable Windows to see the snapshots.

I had to explicitly set the the snapdir to true

zfs set snapdir=visible Tank/immich

Creating a RAID 1 array with two disks

Go to the storage tab. You should see al lthe drives on the right and nothing under devices. Click the menu button to create a RAID device.

To view raid devices in the cmd line

cat /proc/mdstat

You can also see the array with

sudo mdadm --detail --scan

The lsblk command will show you all your devices and you should see the raid1 array here as well

lsblk

You can mount the drive manually with

sudo mount /dev/md## /mnt/raid

to unmount

sudo umount /mnt/raid

Comments