Bootstrapping Synology DiskStation – Unleash The Power

Synology disk station comes locked and does not allow any modifications as it comes out of the factory, however there is a healthy community supporting the boot strapped operations. Bootstrapping is required to install additional packages on the server, other than the default packaged ones, which I should say are not any less.

Let’s start!

1. Bootstrapping program is dependent on the type of CPU on your disk station. See here to find your CPU Type.

2. Make sure the disk station has the login over SSH enabled.

image

3. Login to your disk station over SSH (I use putty) as root. Enter your admin password when prompted.

4. Change to the @tmp directory.

5. Download the bootstrap file for your CPU to the @tmp directory using wget. The example below is for the CPU type ‘Marvel Kirkwood mv6281 ARM processor’. Please find out the bootstrap file for each CPU type from the page Overview on modifying Synology server.

7. Change the bootstrap file permissions, so that it’s executable.

8. Execute the bootstrap file

9. Now, comment out the PATH and EXPORT in the .profile file and save.

10. Reboot the disk station.

11. Login to the disk station using SSH as root.

12. Update ipkg list. ipkg is the default package manager.

13. Install coreutils

14. Check what other packages are available to install

15. Check what packages are already installed through ipkg

At this point, you have all the software installed to add other packages and make any changes to configure the disk station as required.

Have Fun!

Install SCP

DSM 4.0 disk stations do not have SCP installed by default. I find SCP to be the easiest for copying files to the disk station. Moreover, if you are setting up public/private key authentication for password free authentication, the arrangement works very well with SCP, allowing, say a backup program, access the disk station without having to know it’s password.

1. On the disk station, change to @tmp directory

2. Get the OpenSSH package

3. Un-package

4. Inflate the tar file

5. Copy the binary to the bin

SCP is now installed, give it a spin!

Setting up a RAID 1 NAS For Your Home

There are different levels of RAID, like RAID 0 through 5. “RAID 1” is a setting where there are 2 hard disks in the RAID array. Data on one hard disk is replicated exactly on the other one.

What is RAID?

RAID is a “Redundant Array of Independent Disks” and as its name suggests, it is an array of hard disks connected together so that data can be replicated automatically without the user having to do it manually.

Why redundancy?

Storage devices are not always very reliable. Hard disk failure is still one of the common causes of data loss. Redundancy increases reliability by replicating the data across multiple disks.

There are two types of reliability
  • Reliability of the data being safe.
  • Reliability of data being available when you need it. The availability of data is the amount of time when the data is “online”.

Data backed up on a DVD or an external hard disk satisfies the first type of reliability, that it is being kept safe, but not the second one as it is not “online”.

This is where RAID comes into picture. RAID being a redundant array of disks, data will always be stored on more than one disk (except for RAID 0).

If one disk fails, the RAID controller will automatically start pulling data from the other disk. So that means, even if one disk fails, the data is still “online”. When the faulty disk is replaced with the new one, the RAID controller will automatically start replicating the data to the new disk.

Did you say RAID 1?

There are different levels of RAID, like RAID 0 through 5. “RAID 1” is a setting where there are 2 hard disks in the RAID array. Data on one hard disk is replicated exactly on the other one. This is probably not the best of the RAID arrays, however, for a home setting I think this would more than suffice.

Do we need a RAID server in a home setting?

The quick answer would be no. But if you are like me who has a ton of photos accumulated over the past many years and plenty of home videos of family, friends and kids and really care about all those data not getting lost, a RAID will give that additional layer of protection to your data.

Can RAIDs fail too?

Of course it can! If you have a 2 disk RAID array and if both the disks goes bad (like a power surge), or if there is a hardware failure on your RAID controller, then all the data will be gone. Even if you have a RAID, you will still need a good backup strategy. A RAID cannot replace a good backup strategy, but can only complement it.

What is NAS?

NAS or a Network Attached Storage is a device that can connect to your network, in this case your home network. Multiple computers and devices in your home can access all the files stored in the NAS.

Can’t you connect your storage device directly to your computer?

Well, yes. However, it will be limited to just one computer. I wanted a solution where all the computers at home can access all the files on the storage device. Network Attached Storage is what makes this possible. Your storage device is directly connected to your home network through the router. All your computers are also connected to the home network through the router, which in turn can connect to the storage device.

Hardware Setup

After evaluating a lot of RAID systems, I finally decided on a Synology DS210j. This has 2 drive bays in it and allows wither RAID 0 or a RAID 1 setup.

It turned out that setting this up was the easiest part. The model that I bought does not come bundled with hard disks. So I bought 2 x 1TB hard disks separately and installed it. It supports a maximum of 4TB. The installation of the hard disks was a breeze. Remove couple of screws, slide the hard disks in the slot one at a time and then put the screws back on.

Then I connected this to my router through an ethernet cable, connected the power supply and switched it on.

In a RAID 1 setting, 2TB of storage space would give me effective storage of 1TB, as the rest will be used for redundancy.

Software Setup

Synology’s management user interface is just incredible. It is web based, very user friendly and ajax supported. Multi-tasking is also supported in the management web page.

See the control panel, shown in Figure A, to get a glimpse of what features are being supported on this device. It has its own embedded Web Server running on php and a MySql database. It also supports dynamic DNS notifications. It has a lot of other nicer features like a Media Server, iTunes Server, Audio Station, Photo Station, Download Station and a Surveillance Station.

Figure A

I connected to the Synolgy’s managemet software, which I installed on my computer. It allows me to manage the device including the hard disks, the RAID configuration and other network settings.

To start with, I formatted both the hard disks on RAID1 configuration. Configured the network to use DHCP. Created users and groups and assigned permissions to each of them.

Then I moved all the data from my computer / external hard drives / CDs / DVDs  etc. The copying out is not all that fast as I’m connecting to this device from my computer over a wireless connection. However, when I connected my computer over ethernet, the file transfer was reasonably fast.

Please see a sample screenshot of the management user interface below in Figure B.


Figure B

I’m very glad that all my scattered data is now stored in a central location. All my computers including our xbox media center can access all the photos, videos and other data anytime and anywhere in the house.

I love it!

Footnotes:

You can find out more about RAID in this wiki:
http://en.wikipedia.org/wiki/RAID

You can find more about NAS in this wiki:
http://en.wikipedia.org/wiki/Network-attached_storage

Synology link:
http://www.synology.com/enu/products/DS210j/index.php