The ubiquitous Raspberry Pi (RPI), as a Network Attached Storage (NAS) device

Image
A Plex Server home screen. Running on a Raspberry Pi (RPI)
Image
The Network Attached Storage (NAS) using a Raspberry Pi

I followed the instructions below here, in order to use the RPI as a NAS with a RAID-1 array with two mirroring 2.0 TB Harddisk drives (the abbreviation for these is: HDDs, they can be seen in the photo). Samba is a service which makes the NAS accessible to Windows computers on the same sub net mask. The IP address and RPI credentials are used to access the NAS from a Windows computer. Also install CX File Explorer on your phone and then the NAS is accessible on you Android smartphone, a very cool feature.

https://magpi.raspberrypi.org/articles/build-a-raspberry-pi-nas

I then simply used that same RPI which acts as the NAS, to also run the Plex server which is accessible behind the NAT by typing the IP address and port number which defaults to 32400. The Plex server is accessible with any webbrowser by any device on the same subnet as the Plex server. You can also set-up Plex server to port forward and thus serve you anywhere in the world using your login credentials. I have a double NAT, which means two routers between the RPI and the Internet Service Provider (ISP), so that is a tricky proposition to get external access for me. It can be done but one has to bridge the first router through to the second one, which I don’t want to do.

In the above photo you will see a powered hub and a RPI. The RPI gets its power from the battery bank and I will make a connection for the powered USB hub also to take its power therefrom so that it acts as a UPS, in the future.

Plex server instructions are summarised below:

Plex Install: https://pimylifeup.com/raspberry-pi-plex-server/

Set a Static IP for the RPI: https://thepihut.com/blogs/raspberry-pi-tutorials/how-to-give-your-raspberry-pi-a-static-ip-address-update

Install a Torrent Web App called Deluge: https://pimylifeup.com/raspberry-pi-deluge/

You also need to type in the following command:

sudo chmod -r 755 “your USB HARD DRIVE Path ie: /sda/pi”

This is required or the
Plex server won’t be able to read you usb drive.

If you don’t have a UPS and have a power failure and the RPI cannot see the RAID-1 array follow these instructions:

https://marksbench.com/electronics/recovering-a-lost-mdadm-raidset-in-a-raspberry-pi-based-raid-mirror/

One of my drives failed and in the process of setting up a new one that I bought, which was smaller than the functioning 2.0TB HDD, I realized this cannot be done unless the sdb drive which only had one massive partition called sdb1 needs to subdivided with one partition exactly the same as the new 1.0TB HDD that I bought.

This is problematical as all the data on the Raid-1 array has to be copied into another drive, the sdb drive partioned and reformatted. The easiest way for me was simply to use the Diskmgt.msc function from Windows. The raid-1 array has to be stopped using the mdadm utility. Don’t reboot the RPI as this will cause a major lockout and disk fault. I did exactly that and then had to use the new rpi imager to reimage the RPI’s SD card and rerun through all these steps again. Oh mercy, that was a painful lesson.


Posted

in

by

Tags:

Comments

3 responses to “The ubiquitous Raspberry Pi (RPI), as a Network Attached Storage (NAS) device”

  1. Hairstyles VIP Avatar

    Thanks for the good writeup. It if truth be told was once a enjoyment account it. Look advanced to more brought agreeable from you! By the way, how can we keep up a correspondence?

  2. FIND YOUR PERFECT PARTNER IN THE USA Avatar

    By way of introduction, I am Mark Schaefer with Nutritional Products International (nutricompany.com). We serve international and domestic manufacturers seeking to gain more distribution within the United States. Your brand recently caught my attention, so I am contacting you to discuss the possibility of expanding your distribution reach. We provide expertise in all areas of distribution, and our offerings include the following: * Rapid entry into the U.S. market. * Purchase Orders * FDA Regulatory Compliance * Active accounts with major U.S. distributors and retailers. * Our proven sales force has public relations, branding and marketing all under one roof. We maintain active business relationships with over 200,000 distribution outlets across the nation, and we have a direct line of contact with executive-level buyers. Our company has a proven history of initiating accounts and placing orders with major distribution outlets. Our history allows us to have intimate and unique relationships with key buyers across the United States thus giving your brand a fast track to market in a professional manner. Please contact me directly at 561-544-0719 or by replying, so we can discuss your brand further. Kind Regards, Mark Schaefer, Director Of Global Procurement, Nutritional Products International, 101 Plaza Real S, Boca Raton, FL 33432, Office: 561-544-0719

  3. LifeStyle Avatar

    There are definitely a lot of details like that to take into consideration. That is a nice level to convey up. I provide the ideas above as basic inspiration however clearly there are questions like the one you carry up the place an important factor will likely be working in honest good faith. I don?t know if best practices have emerged around things like that, however I’m certain that your job is clearly identified as a fair game. Each girls and boys feel the impact of just a second抯 pleasure, for the rest of their lives.

Leave a Reply

Your email address will not be published. Required fields are marked *