Revision history for HomeNasSetup
No Differences
Deletions:
No Differences
Additions:
- 2x2 TB Seagate Constellation ES - SATA 2.6;
- 1x2 TB Seagate Barracuda 3.5 - SATA 3.1;
- 1x2 TB Seagate Barracuda 3.5 - SATA 3.1;
Deletions:
- 1x2 TB Seagate Barracuda 3.5;
No Differences
Additions:
- 1x2 TB Seagate Barracuda 3.5;
For the NAS OS I've choosen [[https://doc.opensuse.org/release-notes/x86_64/openSUSE/Leap/15.1/ OpenSUSE 15.1]].
For the NAS OS I've choosen [[https://doc.opensuse.org/release-notes/x86_64/openSUSE/Leap/15.1/ OpenSUSE 15.1]].
Deletions:
For the NAS OS I've choosen [[https://en.opensuse.org/Portal:42.3 OpenSUSE Leap 42.3]].
No Differences
Additions:
https://blog.shadypixel.com/monitoring-hard-drive-health-on-linux-with-smartmontools/
Additions:
- File sharing using ssh (linux) and samba (windows and mac).
====Setup====
https://unix.stackexchange.com/questions/1314/how-to-set-default-file-permissions-for-all-folders-files-in-a-directory#1315
====Setup====
https://unix.stackexchange.com/questions/1314/how-to-set-default-file-permissions-for-all-folders-files-in-a-directory#1315
Additions:
https://h3x.no/2011/07/09/tuning-ubuntu-mdadm-raid56
Additions:
- [[https://github.com/ldemattos/pySleepWake pySleepWake]]: Software to sleep and wake up the server when some client searches for it;
Additions:
- [[https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en ES File Manager]]: This is a pretty good file manager for Android that gives the possibility to access the NAS remotely through mobile/wifi networks. With this app you can replace any other 'cloud' stuff. However, it is full of unwanted crap. I'm just still using it while I don't find a better solution.
Deletions:
Additions:
- [[https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en ES File Manager]]: This is a pretty good file manager for Android that gives the possibility to access the NAS remotely through mobile/wifi networks. With this app,you can replace any other 'cloud' stuff. However, it is full of unwanted crap. I'm just still using it while I don't find a better solution.
Deletions:
Additions:
- [[https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en ES File Manager]]: This is a pretty google file manager for Android that gives the possibility to access the NAS remotely through mobile/wifi networks. So,you can replace any other 'cloud' stuff. However, it is full of unwanted crap. I'm just still using it while I don't find a better solution.
Deletions:
Additions:
- [[https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en ES File Explorer]]: This is a pretty google file manager for Android that gives the possibility to access the NAS remotely through mobile/wifi networks. So,you can replace any other 'cloud' stuff. However, it is full of unwanted crap. I'm just still using it while I don't find a better solution.
Additions:
======UNDER CONSTRUCTION======
Additions:
- 2xIntel(R) Celeron(R) CPU J1800 @ 2.41GHz Processor, embedded in the motherboard;
Deletions:
Additions:
- Motherboard PCWARE IPX1800E2;
- 2 x Intel(R) Celeron(R) CPU J1800 @ 2.41GHz Processor, embedded in the motherboard;
- 2x2 TB Seagate Constellation SATA;
- 1x2 TB Western Digital USB 3.0;
- 2 x Intel(R) Celeron(R) CPU J1800 @ 2.41GHz Processor, embedded in the motherboard;
- 2x2 TB Seagate Constellation SATA;
- 1x2 TB Western Digital USB 3.0;
Deletions:
- 2x2 TB Seagate Constellation
- 1x2 TB Western Digital USB 3.0
Additions:
There are few software options to this in the web (please refer the links provided below). However, none of them were exactly were I was looking for. So I wrote a small set of Python scripts, called [[https://github.com/ldemattos/pySleepWake pySleepWake]]. In this set there are two Python scripts: the first 'sleep.py' must go in the server and the second 'alarm.py', should be placed in the device that will be turned on all the time. The controlled variable used to suspend the NAS was taken as the network rx and tx traffic average in a given time window.
Deletions:
Additions:
Here in my house the NAS doesn't need to be on 24h/7, it would be an waste of power and also annoying extra heat and noise. So I've decided start it on demand. To accomplish this it necessary other computer able to wake up the NAS, since it is necessary to 'sense' in the network that some other device is looking for the server and also must capable of sending 'magik packets'. The other computer that I'm using to do this task is one Raspberry Pi 2.
Deletions:
Additions:
=====Raspberry Pi Setup=====
Deletions:
Additions:
====Raspberry Pi Setup====
=====Other Useful Links=====
=====Other Useful Links=====
Deletions:
====Other Useful Links====
Additions:
======Home NAS Setup======
Deletions:
Additions:
Here in my house the NAS doesn't need to be on 24h/7, it would be a waste of power and also annoying extra heat and noise. So I've decided start it on demand. To accomplish this it necessary other computer able to wake up the NAS, since it is necessary to 'sense' in the network that some other device is looking for the server and also must capable of sending 'magik packets'. The other computer that I'm using to do this task is one Raspberry Pi 2.
Deletions:
No Differences
Additions:
There are few software options to this in the web (please refer the links provided below). However, none of them were exactly were I was looking for. So I wrote a small set of Python scripts, called [[https://github.com/ldemattos/pySleepWake pySleepWake]]. In this set there are two Python scripts: the first 'sleep.py' must go in the server and the second 'alarm.py', should be placed in the device that will be turned on all the time. The controlled variable used to suspend the NAS was taken as it network traffic average in a given time window.
Deletions:
The controlled variable used to suspend the NAS was taken as it network traffic average in a given time window.
Additions:
The controlled variable used to suspend the NAS was taken as it network traffic average in a given time window.
Additions:
There are few software options to this in the web (please refer the links provided below). However, none of them were exactly were I was looking for. So I wrote a small set of Python scripts, called [[https://github.com/ldemattos/pySleepWake pySleepWake]]. In this set there are two Python scripts: the first 'sleep.py' must go in the server and the second 'alarm.py', should be placed in the device that will be turned on all the time.
Deletions:
Additions:
Here in my house the NAS doesn't the need to be on 24h/7, it would be a waste of power and also annoying extra heat and noise. So I've decided start it on demand. To accomplish this it necessary other computer able to wake up the NAS, since it is necessary to 'sense' in the network that some other device is looking for the server and also must capable of sending 'magik packets'. The other computer that I'm using to do this task is one Raspberry Pi 2.
Deletions:
Additions:
In order to have some redundancy and not trow away I've decided to use the RAID software available on linux with [[https://raid.wiki.kernel.org/index.php/RAID_setup mdadm]]. I'm using RAID level 5, which permits to miss one of my tree disks without loosing any data. As file systems I've played safe and chose EXT4 for / and XFS for /mnt/storage.
- [[ duplicity]]: USE IT???!?!?!
Here in my house the NAS doesn't the need to be on 24h/7, it would be a waste of power and also annoying extra heat and noise. So I've decided start it on demand. To accomplish this it necessary other computer able to wake up the NAS, since it is necessary to 'sense' in the network that some other device is looking for the server and also must capable of sending 'magik packets'. The other computer that I'm using to do this is task is one Raspberry Pi 2.
There are few software options to this in the web (please refer the links provided below). However, none of them were exactly were I was looking for. So I wrote a small set of Python scripts, called [[https://github.com/ldemattos/pySleepWake pySleepWake]]. In this there are two Python scripts: the first 'sleep.py' must go in the server and the second 'alarm.py', should be placed in the device that will be turned on all the time.
Here are some links that I've read as references:
http://blog.erratasec.com/2016/10/configuring-raspberry-pi-as-router.html#.WasLmheQxhE
- [[ duplicity]]: USE IT???!?!?!
Here in my house the NAS doesn't the need to be on 24h/7, it would be a waste of power and also annoying extra heat and noise. So I've decided start it on demand. To accomplish this it necessary other computer able to wake up the NAS, since it is necessary to 'sense' in the network that some other device is looking for the server and also must capable of sending 'magik packets'. The other computer that I'm using to do this is task is one Raspberry Pi 2.
There are few software options to this in the web (please refer the links provided below). However, none of them were exactly were I was looking for. So I wrote a small set of Python scripts, called [[https://github.com/ldemattos/pySleepWake pySleepWake]]. In this there are two Python scripts: the first 'sleep.py' must go in the server and the second 'alarm.py', should be placed in the device that will be turned on all the time.
Here are some links that I've read as references:
http://blog.erratasec.com/2016/10/configuring-raspberry-pi-as-router.html#.WasLmheQxhE
Deletions:
https://askubuntu.com/questions/516567/how-long-is-an-arp-entry-cached-for
[X] http://blog.erratasec.com/2016/10/configuring-raspberry-pi-as-router.html#.WasLmheQxhE
(Mount on demand)
Additions:
- [[https://www.digitalocean.com/community/tutorials/how-to-copy-files-with-rsync-over-ssh rsync]]: is a very well known file synchronizer in Unix world. Its main purpose here is transfer files in bulk to NAS. Was very useful to very the first NAS population. Nonetheless, I still use when I want to perform a 'full' backup or make sure that client is in sync with the NAS.
- [[https://syncthing.net/ syncthing]]: This program constantly verifies for changes in clients/NAS (here the update is bidirectional, if desired) and keep both in sync. I do not use for my entire home directory, only for specific and most important folders that are frequently altered.
- [[https://syncthing.net/ syncthing]]: This program constantly verifies for changes in clients/NAS (here the update is bidirectional, if desired) and keep both in sync. I do not use for my entire home directory, only for specific and most important folders that are frequently altered.
Deletions:
- [[https://syncthing.net/ syncthing]]: This program constantly verifies for changes in clients/NAS (here the update is bidirectional) and keep both in sync. I do not use for my entire home directory, only for specific and most important folders.
https://serverfault.com/questions/798773/symlinks-not-preserved-by-rsync-when-copying-to-cifs-share
http://stackoverflow.org/wiki/Mount_an_AFP_share_from_Linux
https://askubuntu.com/questions/207663/cannot-update-grub-with-parameters-on-live-usb
Additions:
In order to have some redundancy and not trow away I've decided to use the RAID software available on linux with [[https://raid.wiki.kernel.org/index.php/RAID_setup mdadm]]. I'm using RAID level 5, which permits to loose one of my tree disks without loosing any data. As file systems I've played safe and chose EXT4 for / and XFS for /mnt/storage.
Deletions:
Deletions:
curlftpfs -ouid=1000,gid=1000 leonardo:@192.168.1.2/leonardo/ /mnt/nas
Additions:
- [[https://www.digitalocean.com/community/tutorials/how-to-copy-files-with-rsync-over-ssh rsync]]: it is a very well known file synchronizer in Unix world. Its main purpose here is transfer files in bulk to NAS. Was very useful to very the first NAS population. Nonetheless, I still use when I want to perform a 'full' backup or make sure that client is in sync with the NAS.
- [[https://syncthing.net/ syncthing]]: This program constantly verifies for changes in clients/NAS (here the update is bidirectional) and keep both in sync. I do not use for my entire home directory, only for specific and most important folders.
- [[https://wiki.archlinux.org/index.php/SSHFS SSHFS]]: This is a precious piece of software that permits to mount the NAS folders as 'local' volumes over SSH and, better yet, on demand!
(Mount on demand)
- [[https://syncthing.net/ syncthing]]: This program constantly verifies for changes in clients/NAS (here the update is bidirectional) and keep both in sync. I do not use for my entire home directory, only for specific and most important folders.
- [[https://wiki.archlinux.org/index.php/SSHFS SSHFS]]: This is a precious piece of software that permits to mount the NAS folders as 'local' volumes over SSH and, better yet, on demand!
(Mount on demand)
Deletions:
https://wiki.archlinux.org/index.php/SSHFS (Mount on demand)
Additions:
In order to have some redundancy and not trow away I've decided to use the RAID software available on linux with [[https://raid.wiki.kernel.org/index.php/RAID_setup mdadm]]. I'm using RAID leve 5, wich permits to loose one of my tree disks without loosing any data. As file systems I've played safe and chose EXT4 for / and XFS for /mnt/storage.
=====Networking & Remote Access=====
=====Notables Software=====
The most important softwares that work as glue between the NAS and theirs clients.
- rsync
=====Energy Saving=====
=====Networking & Remote Access=====
=====Notables Software=====
The most important softwares that work as glue between the NAS and theirs clients.
- rsync
=====Energy Saving=====
Deletions:
===Energy Saving===
Additions:
=====Disks and Filesystems=====
In order to have some redundancy and not trow away I've decided to use the RAID software available on linux with [[https://raid.wiki.kernel.org/index.php/RAID_setup mdadm]]. I'm using RAID leve 5, wich permits to loose one of my tree disks without loosing any data. As file systems I've played safe and choosed EXT4 for / and XFS for /mnt/storage.
====Other Useful Links====
In order to have some redundancy and not trow away I've decided to use the RAID software available on linux with [[https://raid.wiki.kernel.org/index.php/RAID_setup mdadm]]. I'm using RAID leve 5, wich permits to loose one of my tree disks without loosing any data. As file systems I've played safe and choosed EXT4 for / and XFS for /mnt/storage.
====Other Useful Links====
Deletions:
Create the disk array with mdadm [1]. As I have 3x2 TB I have chosen the RAID 5 level:
%%mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1%%
====Refer^encias====
[1] - https://raid.wiki.kernel.org/index.php/RAID_setup
No Differences
Deletions:
%%sudo mount -t cifs -o username=someuser,password=somepass,uid=1000,gid=1000 //192.168.1.2/leonardo /mnt/nas/%%
Additions:
Follows my notes on building a home made Network Attached Server (NAS).
I have assembled to cheapest computer possible to work as NAS:
I have assembled to cheapest computer possible to work as NAS:
Deletions:
I have assembled to cheapest computer possible to server as NAS:
Additions:
For the NAS OS I've choosen [[https://en.opensuse.org/Portal:42.3 OpenSUSE Leap 42.3]].
Deletions:
Additions:
=====Hardware=====
I have assembled to cheapest computer possible to server as NAS:
- Motherboard PCWARE IPX1800E2
- 2x2 TB Seagate Constellation
- 1x2 TB Western Digital USB 3.0
- 4 GB RAM DDR3
=====Operational System=====
For the NAS OS I've choosen OpenSUSE Leap 42.3. I've been using OpenSUSE for a long time and stopped when
I have assembled to cheapest computer possible to server as NAS:
- Motherboard PCWARE IPX1800E2
- 2x2 TB Seagate Constellation
- 1x2 TB Western Digital USB 3.0
- 4 GB RAM DDR3
=====Operational System=====
For the NAS OS I've choosen OpenSUSE Leap 42.3. I've been using OpenSUSE for a long time and stopped when
Additions:
Follows my notes on building a home made NAS.
These are notes are not a step-by-step tutorial, instead they are a complete guide from I've done to solve some difficulties that I've been facing. For topics that I've found interesting notes I'll provide the reference. For the solutions that I came up, I'll try to describe more detailed.
These are notes are not a step-by-step tutorial, instead they are a complete guide from I've done to solve some difficulties that I've been facing. For topics that I've found interesting notes I'll provide the reference. For the solutions that I came up, I'll try to describe more detailed.
Deletions:
Additions:
Follows my notes on building a home made NAS. These are note a step-by-step tutorial, however, they are a complete guide from I've done to solve some difficulties that I've been facing.
Deletions:
Additions:
======NAS Setup======
Follows my notes on building a home made NAS.
=====Disks and Filesystem=====
%%mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1%%
Follows my notes on building a home made NAS.
=====Disks and Filesystem=====
%%mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1%%
Deletions:
Follows my notes on building a home made NAS:
%%mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1%%