Wiki2
OpenNAS

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.

Investigation Tasks

References