{"id":1863,"date":"2022-07-20T11:00:02","date_gmt":"2022-07-20T09:00:02","guid":{"rendered":"https:\/\/devpath.pro\/?p=1863"},"modified":"2023-08-29T20:57:07","modified_gmt":"2023-08-29T20:57:07","slug":"server-rack-pet-project-nas","status":"publish","type":"post","link":"https:\/\/fabiocicerchia.it\/sys-admin\/server-rack-pet-project-nas","title":{"rendered":"Server Rack Pet-Project: NAS"},"content":{"rendered":"

After mounting and finally managing to have a UPS working, I can guarantee that a NAS will “always” be powered on without disrupting the data availability…<\/p>\n

I started in a very naive way by plugging my HDD into the Pi, then one of the two almost broke and I had to run take shelter and buy a real NAS.<\/p>\n

<\/p>\n

\"\"
First raw “NAS”<\/figcaption><\/figure>\n

\"\"<\/p>\n

I bought every cheap NAS (therefore old one): Netgear RND2000v1 (ReadyNAS Duo v1)<\/a>. It has only 2 bays, so just RAID 1 is supported. Sorry, but RAID 0 is for fools.<\/p>\n

\"\"
Here is my “new” NAS<\/figcaption><\/figure>\n
\"\"
2 bays, for now, are all I can afford \ud83d\ude41 I wanted to do RAID 5, but all I can do is RAID 1.<\/figcaption><\/figure>\n
\"\"
I didn’t trust buying second-hand disks, so I bought them brand new.<\/figcaption><\/figure>\n
\"\"
I read some reviews about not being brand new… but I guess I got lucky because they are sealed… (does it count? am I that naive?)
On the label, it reports the manufacture date, which is November 2021, so I guess they are brand new after all.<\/figcaption><\/figure>\n
\"\"
Let’s start mounting them…<\/figcaption><\/figure>\n
\"\"
… then I discovered this. Yes, I am a newbie.<\/figcaption><\/figure>\n

\"\"<\/p>\n

\"\"
Then put the disks back to their place.<\/figcaption><\/figure>\n
\"\"
This NAS is cool and has 2 USB ports and a scheduled jobs panel which allows copying data periodically from\/to externals disks.<\/figcaption><\/figure>\n

This NAS is very old and despite using HTTPS is only supports TLS 1.0 and Chrome dislikes it very much to the point it doesn’t let me browse it, fortunately, Firefox is a little bit more flexible on that and lets you override the setting<\/a>.<\/p>\n

\"\"
But then I need to figure out how to reset it, I tried a few things without luck. So I tried to hack it<\/a> a couple of times<\/a> (first to figure out the IP address because it was on another class and then to find the default password).<\/figcaption><\/figure>\n

\"\"<\/p>\n

\"\"
I thought I could upgrade the firmware<\/a>, unfortunately, this model is not the v2 which runs on ARM, it is the v1 which runs on SPARC. So, no way I can upgrade it because it is so old that they don’t bother maintaining anymore (rightfully so).<\/figcaption><\/figure>\n
\"\"
Starting fresh and empty…<\/figcaption><\/figure>\n
\"\"
After a few hours of copying the data from my old disks, I filled the 1TB space I had.<\/figcaption><\/figure>\n

I had to spend 3\/4 days going through the data, using fdupes<\/a> to remove duplicates, splitting the folders into segments to speed up the process as the NAS is not so fast and scan 1TB was very slow.<\/p>\n

\"\"
Then I started to manually merge similar folders, what a task!<\/figcaption><\/figure>\n
\"\"
559 hours?!<\/figcaption><\/figure>\n
\"\"
My laptop was on day and night copying data from one disk to another, at some point it was so hot at the touch that I had to plug that extra cooler to bring the temperature down. It was 49\u00b0C, I guess inside it was “boiling” hot…<\/figcaption><\/figure>\n
\"\"
After a week of cleaning over and over, I managed to de-duplicate most of the data and trash over 500 GB. So, now I have a clean nice folder structure.<\/figcaption><\/figure>\n
root@routing:\/mnt\/nfs# tree -dL 2\n.\n\u251c\u2500\u2500 Personal\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Audios\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Bank\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 CarInsurance\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Education\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Expat\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Finances\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Healthcare\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 House\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ID\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Images\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Learning\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Mortgage\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Passwords\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Pictures\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Projects\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Rent\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Subscriptions\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 UtilityBills\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Videos\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Wedding\n\u251c\u2500\u2500 REVIEW\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Mixed\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Pictures\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Video\n\u251c\u2500\u2500 SystemConfiguration\n\u2514\u2500\u2500 Work\n    \u251c\u2500\u2500 Certifications\n    \u251c\u2500\u2500 Companies\n    \u251c\u2500\u2500 Contracts\n    \u251c\u2500\u2500 Interviews\n    \u251c\u2500\u2500 Invoices\n    \u251c\u2500\u2500 Membership\n    \u251c\u2500\u2500 Mentorships\n    \u251c\u2500\u2500 Projects\n    \u251c\u2500\u2500 Resume\n    \u251c\u2500\u2500 Taxes\n    \u2514\u2500\u2500 Training\n<\/pre>\n

In the next post I’ll cover about how to maintain this NAS secure by adding a firewall to the mix. Stay tuned.<\/p>\n","protected":false},"excerpt":{"rendered":"

After mounting and finally managing to have a UPS working, I can guarantee that a NAS will “always” be powered on without disrupting the data availability… I started in a very naive way by plugging my HDD into the Pi, then one of the two almost broke and I had to run take shelter and […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","footnotes":""},"categories":[6],"tags":[],"aioseo_notices":[],"author_meta":{"display_name":"fabio","author_link":"https:\/\/fabiocicerchia.it\/author\/fabio"},"featured_img":null,"coauthors":[],"tax_additional":{"categories":{"linked":["Sys Admin<\/a>"],"unlinked":["Sys Admin<\/span>"]}},"comment_count":"0","relative_dates":{"created":"Posted 2 years ago","modified":"Updated 7 months ago"},"absolute_dates":{"created":"Posted on July 20, 2022","modified":"Updated on August 29, 2023"},"absolute_dates_time":{"created":"Posted on July 20, 2022 11:00 am","modified":"Updated on August 29, 2023 8:57 pm"},"featured_img_caption":"","series_order":"","_links":{"self":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/posts\/1863"}],"collection":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/comments?post=1863"}],"version-history":[{"count":1,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/posts\/1863\/revisions"}],"predecessor-version":[{"id":2140,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/posts\/1863\/revisions\/2140"}],"wp:attachment":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/media?parent=1863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/categories?post=1863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/tags?post=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}