📜 ⬆️ ⬇️

Feasibility of using the Raspberry Pi as a NAS

I decided to write this article because the lack of such an article outweighed my desire to purchase a Raspberry Pi and use it as a NAS. Below we consider the feasibility of such an application with numbers of copying speeds, and draw conclusions, each with its own.

Preface.


The main purpose of the acquisition of Raspberry Pi was to create a NAS based on it. At home there is a local network, headed by a TP-LINK TL-WR741ND router , to which the ACER ASPIRE 7520G laptop is permanently connected by cable, the Iconbit XDS73D media player and the SAMSUNG UE32C5100QW TV (connected just in case, because the router is under it, but poor network functionality is not used). Plus, the Sony Ericsson Live with Walkman phone, the SAMSUNG Galaxy Tab 7.0 plus tablet, the G-Box Dyno Android 4.0 Mini PC and the experimental TP-LINK 3G TL-MR3020 router , which has a number of articles devoted to it, are periodically connected via Wi-Fi.

All this farm needs network storage to access the necessary files from any device. At the moment, as a NAS, I have a media player mentioned above, which is also a torrent-rocking chair in combination, but this is a separate topic. A Western Digital hard disk with a capacity of 500GB, removed from My Passport Essential due to the absence of an e-sata port in it and inserted into the AgeStar SCB2A8 container, is connected to the e-sata player . But I am not satisfied with the speed of this bundle when it is necessary to transfer a large amount of data, it is just anguish. With the release of the Raspberry Pi, I set about trying to make it a simple network storage with the hope of greater speed than my player allows. As a result, the soul of the poet could not stand it and the malinka was ordered in one of the domestic online stores at the appropriate price, because I really did not want to wait long. At the moment I have a Raspberry Pi model “B” with 512 MB RAM with a SanDisk Ultra SDHC UHS-I 8GB card , with a Raspbian “wheezy” with a Samba server running on it, which was also configured according to the instructions from the habr . As a USB drive, a 160GB hard drive is plugged out of the laptop and inserted into the box from the My Passport Essential. The disk is connected via USB-HUB which says gembird uhb-c345 , but not in the manufacturer's catalog. The USB splitter model was written for a reason, it is not in the list of working and non-working equipment , it can be useful to someone. The Malinka was connected to the network mainly via Wi-Fi via the NETGEAR WNA1100 USB adapter, but at the time of the tests it was also connected via LAN. A visual connection with the raspberry occurs via VNC.

The first test is large-scale.


After assembling and setting up this whole farm, I decided to check the speed of work, and at the first copying of the files I was very disappointed, after which I decided to conduct a full-scale test of copying speed in all directions and, after analyzing the result, decide on the expediency of using the raspberry as a network storage device. A lot of time was killed on the chase data on the main corners of the network, which I determined for myself a laptop, player and, accordingly, Raspberry Pi. The routes were as follows:
')
• Laptop-LAN <-> Player
• Laptop-Wi-Fi <-> Player
• Notebook-LAN <-> Raspberry Pi-LAN
• Laptop-Wi-Fi <-> Raspberry Pi-Wi-Fi
• Raspberry Pi-LAN <-> Player
• Raspberry Pi-Wi-Fi <-> Player

Where “Laptop-LAN” is a laptop connected to a router via LAN, etc. respectively.
Copying was carried out using Total Commander on a laptop and using Nautilus on a malink.

For the test, I used a folder with photos in 276MB with 65 files and a cartoon in mkv format weighing 220MB. As a result, 56 screenshots were taken, from which the results were later rewritten for the compilation of tablets and graphs. The result of the work done was the plate, which I was extremely dissatisfied with.



To understand it is quite difficult, although if you look closely, it becomes clear that the Raspberry Pi in numbers has a very weak result and loses to the media player, but maybe someone can catch useful data from this outrage.

The second test is truncated.


Such an incomprehensible picture does not suit me, and I think you, too, so I decided to cut down the test program, leaving only those directions of copying that can actually be used in my network. They turned out to be much smaller:

• Laptop-LAN <-> Player
• Notebook-LAN <-> Raspberry Pi-LAN
• Laptop-LAN <-> Raspberry Pi-Wi-Fi

For the test, the same files were used as in the first test. As a result, a total of 12 measurements of copying speed were made, and the results were driven into the plate and a more visual diagram was drawn up.



The result obtained roughly coincides with the first test, but this table more clearly describes the state of affairs with copying over the network from / to Raspberry Pi. By not tricky mathematical calculations, I found out that when connecting Malinka via LAN, the data copy speed differs from the speed of the solution I had on average from 1.5 to 2.5 times. And when I connected it via Wi-Fi, as I had originally planned, the difference increased from 3.6 to 4.0

Instead of a conclusion.


For myself, I conclude that for the time being as a NAS I leave my media player and will be thinking about buying a full-fledged home network storage device. For the price that this idea cost me, the Raspberry Pi + USB-HUB + memory card (not counting the available hardware) is comparable to the Western Digita My Book Live 1TB , and this is with the hard drive. At the moment, Malinka is engaged in measuring its own temperature and room temperature, set up according to an article from the habr , but this is from a cannon on sparrows. I can still experiment with it, but I don’t know yet in which direction. I don’t see the point of using Raspberry Pi as a NAS at all, especially if I buy it specifically for this purpose. He himself bought it with good intentions as a lover of all gadgets, but as I usually do, it was played with a new toy and on the table. I hope this article will be at least something useful to someone and everyone will draw his own conclusions for himself, and I have already drawn my own conclusions and voiced them above.

Request to readers.


This is my entrance fee for Habr, so please do not kick much, but constructive criticism is welcomed and appreciated.

Source: https://habr.com/ru/post/165153/


All Articles