Showing changes from revision #37 to #38:
Added | Removed | Changed
DHCP/mDNS to locate server on configuration OR show IP on LCD.
SMB Network Access
Sync between local USB disks
Sync between remote USB disks
MiniDLNA
Auto mount of USB disks
Example hardware.
(server instance cost is not included)
tarsnap backup service
$ 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 |
Primary
/ Backup
Yours
/ Partners
Local
/ Remote
(0+)Local
settings. How to access internet etc. not related to disk.Remote
location.
Primary
disk but zero or more Secondary
disks associated with the Primary
Create
a local Yours
& Local
disk. It may be Primary
or Backup
Create
a local Partners
& Remote
& Backup
diskFile
Access to
Local &
Primary &
Yours` disk through Samba, AFS and NFSSync
from Local
& Primary
& Yours
-> Yours
& Secondary
Recovery
from Yours
& Secondary
-> Local
& Primary
& Yours
Sync
may be Incremental
or Non-incremental
Sync
may be Manual
or Periodic
File
Access users to
Primary` diskSecondary
may be Encrypted
or Non-encrypted
Recovery
may specify a specific increment to recover fromRecovery
may specify a subset of files to recoverSync
through company firewall in reverse?Backup
disks must present latest sync actions.Sync Actions
should present time of sync, data transferred and time to sync.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
Disk view
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.