Skip to main content

re-installation and disk management

Face it, re-installations are a pain. However, its always a chance to put the best of plans into place and then find out how your plans ended up in the mess.

Well, all wasn't lost so far. The original plan was to software raid 1 (2x 120GB disks) the installation. Of course, greed took the better of me and i decided, i'd just use one whole disk as a separate data mount and if i need to backup, cron an rsync between disks. at least I'd have a bit more room to play with. But like that is ever going to happen.

Data issues, sigh. Unknown to most people, they normally have at least a terabyte of drive space lying around the house. Think about it. How many computers do you have. How many external firewire, usb drives do you have. Have you recently upgraded and have a couple of disks lying somewhere. And we haven't even started looking at optical media yet.

Sometimes, I feel like just getting a NAS with at least a terabyte and not having to worry about it for a year, and I still get the sinking feeling that 1 year is pushing it.

Doesn't sound realistic? if you happen to be like me. A total must to convert stuff to data. Because data is the most secure form of storage hey? So what if bytes corrode, hard disks crash and machines explode. You just got to like those blinking lights.

Distributed file systems. How much of a good idea is that? What redunancies should be put in place? Is my power bill going to shoot the roof? Right, now that we asked the right questions, lets start.


Data Management


1) Identify all type of data stored

2) Classify your data in terms of importance and level of availability

3) Size each category and include potential growth trends

4) Say Yippee and pat your back


Obviously, if you haven't figured what I'm saying is that the important data needs to be backup. you can stick to normal scheduled disk/file copy or network transfers. nothing fancy, just auto windows SMB mapping and bat file for xcopy or rsync or scp -r.

Next think how readily available do I want this data. All the time? Alright, if you look at your list, put the following in order.

|| Important, Always available || Not Important, Always available ||
|| Important, Not always available || Not Important, Not always available ||

Saying that I can't draw a Cross here you, use your imagination.

Take the first layer and allocate the data in your server (machine that is always on). If that machine has 2 disks and you have the space for backup, make a backup schedule between disks. If not schedule a network copy to your other machine. Removable disk do count as additional disks)

So, you have one stable machine you plan on leaving on connected to your broadband router with NAT and server software with the spare firewire drive lying around stuck to it for backups.

You might feel really proud of yourself right now.

In my next post I will talk about the distribution of modern day home processing and how you can benefit from wastage.

Comments

Julia Elvarado said…
Yahoo launches open podcasts directory
I was at the TechCrunch HQ tonight and learnt about the latest embargo expiring at 9PM PT tonight: Yahoo was about to release an open podcast directory, which will be available on podcasts.yahoo.com once the ...
Find out how to buy and sell anything, like things related to private road construction on interest free credit and pay back whenever you want! Exchange FREE ads on any topic, like private road construction!

Popular posts from this blog

Multiple Broadlink RM mini 3 integration using MQTT

Broadlink now has quite a lot of integration options almost out of the box. If you enable Broadlink IHC, you can directly link it to Alexa by giving the device a unique name.

There is a homebridge plug in for homekit integration but I haven't tried or tested this. https://lprhodes.github.io/slate/

I wanted to put the device in domoticz so I can have more control over what can trigger my broadlink. I decided to use broadlink-mqtt for this, which is a fairly easy method to trigger from any source.

Setup Instructions for broadlink-mqtt

1. git clone https://github.com/eschava/broadlink-mqtt

2. vi /home/pi/broadlink-mqtt/mqtt.conf

3. Update the mqtt.conf file with the device type set as multiple_lookup

device_type = 'multiple_lookup'
mqtt_multiple_subprefix_format = '{type}_{mac_nic}/'
4. Start the python script and check that it started and detected all the RM devices.
Check the log file to see what the IP / MAC addresses are. DEBUG Connected to RM2 Broadlink device at …

Fibaro HCL Virtual Device Slider

How to setup Fibaro home center lite (HCL) slider for virtual devices.

As the Fibaro HCL does not support LUA. The question was how to update the number value of the slider to send to the HTTP string. Thanks to this site which is a really good reference https://www.vesternet.com/resources/application-notes/apnt-88/

The 2 use cases here are;

Sonos HTTP API Volume

To allow for volume control for all Sonos devices, add a virtual device with the IP address for SONOS HTTP API and specify the default port to 5005. Create Slider and put the following text into the string.

GET /volume/_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A


Domotiz Virtual Devices

GET /json.htm?type=command&param=switchlight&idx=XX&switchcmd=Set%20Level&level=_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A

Replace XX with the device ID.

Restart Fibaro HCL when it stops working automatically

It seems that the Fibaro HCL seems to hang every now and then. Instead of trying to restart it regularly, which doesn't really work, as it's almost impossible to predict when this will happen.

This method checks that the HCL is actually running and in the event it stops working, trigger a script that will restart it.


1. Get a non Fibaro controlled power plug and scripts to control it.

I used a wifi smart plug, TP-link HS100 and downloaded the scripts from

https://blog.georgovassilis.com/2016/05/07/controlling-the-tp-link-hs100-wi-fi-smart-plug/

2. Create a bash script to restart the Fibaro, e.g. restart_fibaro.sh

#!/bin/bash

ip_addr=
scripts=

$scripts/tplink-smartplug.py -t $ip_addr -c off
sleep 10
$scripts/tplink-smartplug.py -t $ip_addr -c on


3. Create a test global variable in the Fibaro HCL

Go to the variables panel and create a test variable, e.g. Test


4. Add a cron entry to test that the Fibaro API is still working and restart if it's not.

The cron script is scheduled ev…