OpenNAS

Features

Future features

Phases

  1. Single LAN NAS only
  2. Add firewall / pass through

Hardware

Example hardware.

Views

Cloud Storage Price Comparison

Amazon EC2

(server instance cost is not included)

tarsnap backup service

cyphertite

rsync.net

$ 1800 / year for 1 TB

Cost example:

1 TB or storage and 100 GB transfer / month

Service | : Cost / month
------- | -------------
EC2 | $ 112
tarsnap | $ 330
cyphertite | $ 10 (personal use)
rsync.net | $ 150

Use Case Analysis

Disk categories

Common functions & Rules

Options

Status Information

EHCI bug in OpenBSD

I still have problems when mounting a USB disk for a long time on OpenBSD. This is currently the only showstopper for this project.

The following script (test.sh) is used to test it.

#!/bin/sh

echo "FORMAT:"
/root/format_usbdisk.sh sd0

echo "MOUNT directly after format: "+`date`
mount_ffs /dev/sd0a /mnt/matteus
time ls -l /mnt/matteus
sleep 3600
echo "MOUNT after 1 hour: "+`date`
time ls -l /mnt/matteus
sleep 7200
echo "MOUNT after 3 hour: "+`date`
time ls -l /mnt/matteus
sleep 14400
echo "MOUNT after 7 seconds: "+`date`
time ls -l /mnt/matteus

I also make use of format_usbdisk.sh.

#!/bin/sh

# Automates the following process so BE CAREFUL !!!

# fdisk -iy sd0            
# Writing MBR at offset 0.
# disklabel -E sd0
# Label editor (enter '?' for help at any prompt)
# > z
# > a
# partition: [a] 
# offset: [64] 
# size: [15165296] 
# FS type: [4.2BSD] 
# Rounding size to bsize (32 sectors): 15165280
# > w
# > q
# No label changes.
# newfs sd0a

# TODO: Check that the disk is removable

DISK=$1
LOGFILE="/tmp/format_usbdisk.log"

if [ $# -ne 1 -o -z "$1" ]; then
  echo "Usage: ./format_usbdisk.sh <dev>"; exit
fi

echo "Disk on $DISK will be formatted to FFS2. Wait until all blocks are written ..."
echo
fdisk -iy $DISK 2>&1 > $LOGFILE
disklabel -E $DISK 2>&1 >> $LOGFILE << __EOT__
z
a




w
q
__EOT__
newfs "${DISK}a"
echo

Views

Disk view

Open items

Scripts

Hardware with internal HDD

If we should build a OpenNAS system with a internal HDD I think the following components could be suitable.

The system may also work as a very capable firewall.

Total: 175 euro

An internal 3.5 SATA HDD (e.g. 1-2 TB) is needed to complete the system.

AWS S3 Glacier

It seems like AWS S3 Glacier Deep Archive is one option for a long term remote cloud based backup copy.

The cheapest (as of 2023) options for cloud storage is about 4 USB / month / TB. Glacier deep archive is 1 USB / month / TB but with a lot of other fees for access retrieval etc. So it can mainly be used as insurance backup if all other backups fails. See Backup to Amazon S3 Glacier Deep Archive - Cost Analysis for a deeper cost analysis.

So Glacier could be used for the following.

So a script that store media files incrementally towards glacier could be one option.

Store files with folder structure as rsync incremental backups (but without the hard links)

<data for backup>/full local path/filename

The following technologies could be used.

Investigation Tasks

References