Revision history for HomeNasSetup


Revision [1745]

Last edited on 2020-09-07 18:44:03 by LeoMattos

No Differences

Revision [1744]

Edited on 2020-09-07 18:44:03 by LeoMattos
Deletions:
======UNDER CONSTRUCTION======


Revision [1743]

Edited on 2020-09-07 18:42:00 by LeoMattos

No Differences

Revision [1742]

Edited on 2020-09-07 18:42:00 by LeoMattos
Additions:
- 2x2 TB Seagate Constellation ES - SATA 2.6;
- 1x2 TB Seagate Barracuda 3.5 - SATA 3.1;
Deletions:
- 2x2 TB Seagate Constellation SATA;
- 1x2 TB Seagate Barracuda 3.5;


Revision [1741]

Edited on 2020-09-07 18:40:27 by LeoMattos

No Differences

Revision [1740]

Edited on 2020-09-07 18:40:27 by LeoMattos
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]].
Deletions:
- 1x2 TB Western Digital USB 3.0;
For the NAS OS I've choosen [[https://en.opensuse.org/Portal:42.3 OpenSUSE Leap 42.3]].


Revision [1739]

Edited on 2020-09-07 18:19:00 by LeoMattos

No Differences

Revision [1738]

Edited on 2020-09-07 18:19:00 by LeoMattos
Additions:
https://blog.shadypixel.com/monitoring-hard-drive-health-on-linux-with-smartmontools/


Revision [1511]

Edited on 2018-08-13 12:00:14 by LeoMattos
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


Revision [1419]

Edited on 2018-05-11 14:43:56 by LeoMattos
Additions:
https://h3x.no/2011/07/09/tuning-ubuntu-mdadm-raid56


Revision [1395]

Edited on 2018-04-06 19:38:31 by LeoMattos
Additions:
- [[https://github.com/ldemattos/pySleepWake pySleepWake]]: Software to sleep and wake up the server when some client searches for it;


Revision [1261]

Edited on 2017-09-10 18:09:38 by LeoMattos
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:
- [[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.


Revision [1260]

Edited on 2017-09-09 17:54:36 by LeoMattos
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:
- [[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.


Revision [1259]

Edited on 2017-09-09 17:50:57 by LeoMattos
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:
- [[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.


Revision [1258]

Edited on 2017-09-09 17:50:32 by LeoMattos
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.


Revision [1257]

Edited on 2017-09-09 17:36:43 by LeoMattos
Additions:
======UNDER CONSTRUCTION======


Revision [1255]

Edited on 2017-09-08 10:00:45 by LeoMattos
Additions:
- 2xIntel(R) Celeron(R) CPU J1800 @ 2.41GHz Processor, embedded in the motherboard;
Deletions:
- 2 x Intel(R) Celeron(R) CPU J1800 @ 2.41GHz Processor, embedded in the motherboard;


Revision [1254]

Edited on 2017-09-08 09:07:42 by LeoMattos
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;
Deletions:
- Motherboard PCWARE IPX1800E2
- 2x2 TB Seagate Constellation
- 1x2 TB Western Digital USB 3.0


Revision [1253]

Edited on 2017-09-07 20:18:17 by LeoMattos
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:
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.


Revision [1252]

Edited on 2017-09-07 20:15:05 by LeoMattos
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:
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.


Revision [1251]

Edited on 2017-09-07 20:14:51 by LeoMattos
Additions:
=====Raspberry Pi Setup=====
Deletions:
====Raspberry Pi Setup====


Revision [1250]

Edited on 2017-09-07 20:14:39 by LeoMattos
Additions:
====Raspberry Pi Setup====
=====Other Useful Links=====
Deletions:
===Raspberry Pi Setup===
====Other Useful Links====


Revision [1249]

Edited on 2017-09-07 20:13:03 by LeoMattos
Additions:
======Home NAS Setup======
Deletions:
======NAS Setup======


Revision [1248]

Edited on 2017-09-07 20:12:53 by LeoMattos
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:
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.


Revision [1247]

Edited on 2017-09-07 20:08:06 by LeoMattos

No Differences

Revision [1246]

Edited on 2017-09-07 20:06:47 by LeoMattos
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:
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.


Revision [1245]

Edited on 2017-09-07 20:06:28 by LeoMattos
Additions:
The controlled variable used to suspend the NAS was taken as it network traffic average in a given time window.


Revision [1244]

Edited on 2017-09-07 20:05:18 by LeoMattos
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:
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.


Revision [1243]

Edited on 2017-09-07 20:05:00 by LeoMattos
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:
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.


Revision [1242]

Edited on 2017-09-07 20:04:44 by LeoMattos
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
Deletions:
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.
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)


Revision [1241]

Edited on 2017-09-07 19:53:05 by LeoMattos
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.
Deletions:
- [[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://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


Revision [1240]

Edited on 2017-09-07 19:49:52 by LeoMattos
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:
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.


Revision [1239]

Edited on 2017-09-07 19:49:07 by LeoMattos
Deletions:
$ ssh -oHostKeyAlgorithms=+ssh-dss -oPubkeyAuthentication=no admin@192.168.1.2
curlftpfs -ouid=1000,gid=1000 leonardo:@192.168.1.2/leonardo/ /mnt/nas


Revision [1238]

Edited on 2017-09-07 19:46:29 by LeoMattos
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)
Deletions:
- rsync
https://wiki.archlinux.org/index.php/SSHFS (Mount on demand)


Revision [1237]

Edited on 2017-09-07 19:39:36 by LeoMattos
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=====
Deletions:
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.
===Energy Saving===


Revision [1236]

Edited on 2017-09-07 19:36:42 by LeoMattos
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====
Deletions:
=====Disks and Filesystem=====
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


Revision [1235]

Edited on 2017-09-07 19:31:34 by LeoMattos

No Differences

Revision [1234]

Edited on 2017-09-07 19:31:17 by LeoMattos
Deletions:
Mounting with CIFS:
%%sudo mount -t cifs -o username=someuser,password=somepass,uid=1000,gid=1000 //192.168.1.2/leonardo /mnt/nas/%%


Revision [1233]

Edited on 2017-09-07 19:26:55 by LeoMattos
Additions:
Follows my notes on building a home made Network Attached Server (NAS).
I have assembled to cheapest computer possible to work as NAS:
Deletions:
Follows my notes on building a home made NAS.
I have assembled to cheapest computer possible to server as NAS:


Revision [1232]

Edited on 2017-09-07 19:26:25 by LeoMattos
Additions:
For the NAS OS I've choosen [[https://en.opensuse.org/Portal:42.3 OpenSUSE Leap 42.3]].
Deletions:
For the NAS OS I've choosen OpenSUSE Leap 42.3. I've been using OpenSUSE for a long time and stopped when


Revision [1231]

Edited on 2017-09-07 19:22:11 by LeoMattos
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


Revision [1230]

Edited on 2017-09-07 19:15:35 by LeoMattos
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.
Deletions:
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.


Revision [1229]

Edited on 2017-09-07 19:13:53 by LeoMattos
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:
Follows my notes on building a home made NAS.


Revision [1228]

Edited on 2017-09-07 19:11:36 by LeoMattos
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%%
Deletions:
=====NAS Setup=====
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%%


Revision [1227]

The oldest known version of this page was created on 2017-09-07 19:10:37 by LeoMattos
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki