[HOW-TO] A how to guide for ARM & Intel NAS servers

Discussion on setting up QNAP NAS products.

[HOW-TO] A how to guide for ARM & Intel NAS servers

Postby Don » Mon Dec 29, 2008 10:18 am

Over the past months I have been putting together a how-to guide for the TS-109, 209, 409, & 509 NAS units. I started to put this together after I received my first 209 and started playing with it. I learned a lot from the forums and the support people at QNAP. One of the things I noticed on the forums was that many people had the same learning pains, questions, and issues that I had so I decided to put this guide together. While this guide will definitely help the new user I hope that experienced users also pick up a thing or two from it. It is aimed at using and enhancing core functionality and not at installing / configuring other applications.

It does not address the TS-x01 models as I have no experience with them and do not have one to test with. If someone would like to send me updates for these models (or QNAP would like to send me a TS-101 or 201 that I could use for testing :wink: ) I would be happy to include them in a future update.

I want to thank Christian, fribse, and Silas for their contributions, review, and valuable feedback. I also want to thank all contributors on the forums because without your continued support in the QNAP community some of the information in the guide would not exist.

I hope that you find this useful. Please provide feedback if you see any errors or something that you think should be added. Of course a write-up with your request would be helpful.
-----------------------------------------------------------------------------------------------------

Version 1.2 of the guide has been released on 10/16/09. I hope you find it as useful as the original version.

-----------------------------------------------------------------------------------------------------
Version History:
    V1.0
      Initial release - downloaded 6531 times!!
    V1.1
      Not released
    v1.2
      Adds new content, addresses all the ARM and Intel models, and was reformatted

QNAP TS & SS ARM & Intel How-to Guide V1.2.zip
You do not have the required permissions to view the files attached to this post.
Last edited by Don on Wed Dec 31, 2008 1:50 am, edited 1 time in total.
Search (upper right hand corner) before posting.

Unofficial QNAP How-To Guide: http://forum.qnap.com/viewtopic.php?f=11&t=10622
How-To increase raid rebuild speed: http://forum.qnap.com/viewtopic.php?f=11&t=10268
How-To install dnsmasq: http://forum.qnap.com/viewtopic.php?f=90&t=26395

NAS: TS-509 F/W 3.6.1.0302 | TS-419P+ F/W 3.8.2.0301 | TS-639 F/W 3.6.1.0302 | TS-669 F/W 3.8.2.0301
QPKG: ipkg, LMS 7.7.1, PhpGedView, phpMyAdmin, WordPress, Xdove 1.3
IPKG: atop, busybox, dnsmasq, flac, htop, lame, less, libid3tag, lsof, man, man-pages, unzip, wakelan
OTHER: crontab, phpXmail, SpeedTest
N/W: Asus RT-N16 router w/dd-wrt | SMC gigagit switch
User avatar
Don
Moderator
 
Posts: 5523
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York
NAS Model: TS-509 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby KL643 » Mon Dec 29, 2008 10:38 am

Thanx Don for your time and effort, will start reading tomorrow. Time to go for a sleep here...3.36AM. Hope to find some useful stuff 8)
The solution to the most difficult "problem" is usually very simple.
User avatar
KL643
Experience counts
 
Posts: 1582
Joined: Sun Sep 23, 2007 9:21 pm
Location: Haarlem
NAS Model: TS-509 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby stevebow » Mon Dec 29, 2008 1:06 pm

Bl..dy h.ll, why didn't I have this when I first got my 409 Pro??? :D :D

I've skipped through the doc for now, and at first glance looks very professional. I'll read it through fully later on, there's quite some reading!

Many thanks to Don and the other contributors mentioned in the doc, well done!

This really deserves a Sticky if I ever saw one.
NAS: TS-509 Pro
Firmware: 3.8.1 build 1205T
Drives: 5 x Western Digital WD20EFRX (Red) 2TB drives (RAID5)

NAS: TS-409 Pro
Firmware: 3.3.2 build 0918T
Drives: 4 x Western Digital WD20EFRX (Red) 2TB drives (RAID0)
Note: TS-409 Disk Management GUI mostly non-functional with WD Red HDDs
User avatar
stevebow
Been there, done that
 
Posts: 596
Joined: Mon Apr 07, 2008 11:46 am
NAS Model: TS-439U-SP/-RP

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby AndyChuo » Mon Dec 29, 2008 1:30 pm

Great stuff, thanks for sharing Don.

Andy
=============================================================>>>
TS-659-Pro [RAID6][Transmission][MLDonkey][SABnzbdplus+SickBeard=Best PVR]
TS-509-Pro [RAID6][Pentium Dual-Core][Twonkymedia+PMS+SubSonic=Ultimate Streamer]
NMP-1000P [Media Adptor/Playback] Buffalo WHR-HP-G54 [DD-WRT] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
User avatar
AndyChuo
Experience counts
 
Posts: 2396
Joined: Thu Sep 13, 2007 11:56 am
Location: Taipei, Taiwan
NAS Model: TS-459 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby lifeisfun » Mon Dec 29, 2008 9:14 pm

Thanks for your time doing this !
User avatar
lifeisfun
Know my way around
 
Posts: 127
Joined: Sun Nov 30, 2008 5:09 am
NAS Model: TS-439U-SP/-RP

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby Don » Tue Dec 30, 2008 12:43 am

QNAPAndy wrote:Great stuff, thanks for sharing Don.

Andy

lifeisfun wrote:Thanks for your time doing this !


You are welcome. My way of giving back to the community and to QNAP.
Search (upper right hand corner) before posting.

Unofficial QNAP How-To Guide: http://forum.qnap.com/viewtopic.php?f=11&t=10622
How-To increase raid rebuild speed: http://forum.qnap.com/viewtopic.php?f=11&t=10268
How-To install dnsmasq: http://forum.qnap.com/viewtopic.php?f=90&t=26395

NAS: TS-509 F/W 3.6.1.0302 | TS-419P+ F/W 3.8.2.0301 | TS-639 F/W 3.6.1.0302 | TS-669 F/W 3.8.2.0301
QPKG: ipkg, LMS 7.7.1, PhpGedView, phpMyAdmin, WordPress, Xdove 1.3
IPKG: atop, busybox, dnsmasq, flac, htop, lame, less, libid3tag, lsof, man, man-pages, unzip, wakelan
OTHER: crontab, phpXmail, SpeedTest
N/W: Asus RT-N16 router w/dd-wrt | SMC gigagit switch
User avatar
Don
Moderator
 
Posts: 5523
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York
NAS Model: TS-509 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby JD2k3 » Thu Jan 08, 2009 3:19 am

Thank you for this guide :D

Just been quickly reading the guide but I found a little mistake on page 29:

When someone from the internet is attacking your router they most likely will be searching for the known ports, like
21 (FTP), 22 (Telnet), and 23 (SSH) in order to gain access to your system.

This should be: 21 (FTP), 22 (SSH) and 23 (Telnet) :)
JD2k3
Starting out
 
Posts: 18
Joined: Thu Oct 02, 2008 2:56 am
NAS Model: TS-259 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby Don » Thu Jan 08, 2009 3:31 am

Thanks. I'll make the correction.
Search (upper right hand corner) before posting.

Unofficial QNAP How-To Guide: http://forum.qnap.com/viewtopic.php?f=11&t=10622
How-To increase raid rebuild speed: http://forum.qnap.com/viewtopic.php?f=11&t=10268
How-To install dnsmasq: http://forum.qnap.com/viewtopic.php?f=90&t=26395

NAS: TS-509 F/W 3.6.1.0302 | TS-419P+ F/W 3.8.2.0301 | TS-639 F/W 3.6.1.0302 | TS-669 F/W 3.8.2.0301
QPKG: ipkg, LMS 7.7.1, PhpGedView, phpMyAdmin, WordPress, Xdove 1.3
IPKG: atop, busybox, dnsmasq, flac, htop, lame, less, libid3tag, lsof, man, man-pages, unzip, wakelan
OTHER: crontab, phpXmail, SpeedTest
N/W: Asus RT-N16 router w/dd-wrt | SMC gigagit switch
User avatar
Don
Moderator
 
Posts: 5523
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York
NAS Model: TS-509 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby bigkah624 » Thu Jan 08, 2009 5:10 am

Thanks for the guide. You're awesome for doing this! I hope in the future, i can also contribute to the community.
bigkah624
Starting out
 
Posts: 38
Joined: Tue Dec 30, 2008 6:59 am
NAS Model: TS-419P

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby Don » Thu Jan 08, 2009 6:34 am

bigkah624 wrote:Thanks for the guide. You're awesome for doing this! I hope in the future, i can also contribute to the community.
You're welcome.
Search (upper right hand corner) before posting.

Unofficial QNAP How-To Guide: http://forum.qnap.com/viewtopic.php?f=11&t=10622
How-To increase raid rebuild speed: http://forum.qnap.com/viewtopic.php?f=11&t=10268
How-To install dnsmasq: http://forum.qnap.com/viewtopic.php?f=90&t=26395

NAS: TS-509 F/W 3.6.1.0302 | TS-419P+ F/W 3.8.2.0301 | TS-639 F/W 3.6.1.0302 | TS-669 F/W 3.8.2.0301
QPKG: ipkg, LMS 7.7.1, PhpGedView, phpMyAdmin, WordPress, Xdove 1.3
IPKG: atop, busybox, dnsmasq, flac, htop, lame, less, libid3tag, lsof, man, man-pages, unzip, wakelan
OTHER: crontab, phpXmail, SpeedTest
N/W: Asus RT-N16 router w/dd-wrt | SMC gigagit switch
User avatar
Don
Moderator
 
Posts: 5523
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York
NAS Model: TS-509 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby paolo » Thu Jan 08, 2009 10:29 pm

Nice work!! compliments also from me!

Paolo
TS109-Pro - v.3.1.0 Build 0708T

The strawbale house
http://www.paesaggio.net/strawbales.htm
Image
User avatar
paolo
Getting the hang of things
 
Posts: 73
Joined: Wed Oct 15, 2008 6:52 am
Location: South Sardinia
NAS Model: TS-109/209

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby Q » Thu Jan 08, 2009 11:50 pm

impressive :-D thx!
I am Q
www.qnap.ch

I don't work at QNAP.
And RAID is really NO backup!
User avatar
Q
Experience counts
 
Posts: 1442
Joined: Wed Sep 05, 2007 4:18 pm
Location: Switzerland
NAS Model: TS-110

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby Mouse » Fri Jan 09, 2009 5:34 am

Had a quick flick through and I can learn a lot from this. Well done and Thank You. :D
QNAP TS-209PRO II with 3x 750GB Seagate (2 in RAID1 + 1 via USB)

MS Windows Guru, just getting into Linux
Mouse
Getting the hang of things
 
Posts: 94
Joined: Mon Aug 18, 2008 6:17 pm
Location: England
NAS Model: TS-109/209 Pro

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby ESPNSTI » Thu Jan 15, 2009 2:06 am

Excellent guide, thanks! :D

In the "How to Increase Raid Rebuild/Expansion Speed" section, you had a disclaimer that you hadn't seen any reports of anyone trying it.
For that reason I want to give you my account.

I have a TS-509 with v2.1.0 Build 1202.
I had a RAID-5 array with four 1TB WD drives (WD1002FBYS-01A6B03.0), and I added a fifth using "Add Drive" on the "RAID Management Tool" page.
Before I started that process I shut off all services (multimedia station, download station, web server, rTorrent++, etc...).
I understand that you're supposed to be able to access the data while it's expanding, but I'm totally new to RAID and I was a bit apprehensive about it.
So I took the "better safe than sorry" approach and did not access the NAS RAID drive at all during the expansion process.

After about 12 hours of expanding it was at 3%, which put it on par to complete in 8 or 9 days.
I then found the article on how to speed it up.

I logged in with Putty and found that the speed limit min and max were set to the default values:

#cat /proc/sys/dev/raid/speed_limit_max
# 200000
# cat /proc/sys/dev/raid/speed_limit_min
# 1000

Using "cat /proc/mdstat", I saw that the expanding speed was right around 1 to 1.5MB per second.

I used "echo 10000 >/proc/sys/dev/raid/speed_limit_min" to up the speed to 10MB per second.
Looking at "cat /proc/mdstat" again, I saw that within a time span of about a minute or so, the speed gradually increased to about 10MB per second.

I then used "echo 25000 >/proc/sys/dev/raid/speed_limit_min" in an attempt to up the speed to 25MB per second.
However I never saw anything above a speed of about 11MB per second.
I'm not certain if it reached a limit of how fast it could go, or if it only responds to the first speed_limit_min change.

The CPU usage was about 8-10% and the HDD, CPU and System temperatures never increased.
The temps were between 27-30C (80-86F) for the HDD and System, and about 19C (66F) for the CPU.
The ambient temp probably was around 13C (55F). (I have my NAS in an equipment rack in the basement).

After about 38 hours the process completed successfully.
If I had immediately increased the speed_limit_min to 10MB per second, I think the total time would have been around 27 hours.

Below are the entries it made in the log.
Note that where is says "Rebuilding done" is the 50% mark on the "Device Configuration - SATA Disk" web page, so the last 50% only took about 1.5 hours.

2009-01-14 10:06:04 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4 5] Expanding Raid Device completed.
2009-01-14 10:06:04 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4 5] Expanding Raid Device completed. Drive 5 is added.
2009-01-14 08:32:49 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4 5] Rebuilding done.
2009-01-12 20:17:35 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4 5] Start rebuilding.
2009-01-12 20:17:31 System 127.0.0.1 localhost [RAID5 Disk Volume: Drive 1 2 3 4] Start to expand Raid Device: Add Drive 5.
User avatar
ESPNSTI
New here
 
Posts: 8
Joined: Tue Dec 30, 2008 5:25 am
Location: Decorah, IA
NAS Model: TS-439U-SP/-RP

Re: [HOW-TO] A how to guide for TS-x09 NAS servers

Postby Don » Thu Jan 15, 2009 3:44 am

Thanks for the detailed response. I'm glad it worked. I'll remove the disclaimer from the next release.

Thanks again.
Don
Search (upper right hand corner) before posting.

Unofficial QNAP How-To Guide: http://forum.qnap.com/viewtopic.php?f=11&t=10622
How-To increase raid rebuild speed: http://forum.qnap.com/viewtopic.php?f=11&t=10268
How-To install dnsmasq: http://forum.qnap.com/viewtopic.php?f=90&t=26395

NAS: TS-509 F/W 3.6.1.0302 | TS-419P+ F/W 3.8.2.0301 | TS-639 F/W 3.6.1.0302 | TS-669 F/W 3.8.2.0301
QPKG: ipkg, LMS 7.7.1, PhpGedView, phpMyAdmin, WordPress, Xdove 1.3
IPKG: atop, busybox, dnsmasq, flac, htop, lame, less, libid3tag, lsof, man, man-pages, unzip, wakelan
OTHER: crontab, phpXmail, SpeedTest
N/W: Asus RT-N16 router w/dd-wrt | SMC gigagit switch
User avatar
Don
Moderator
 
Posts: 5523
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York
NAS Model: TS-509 Pro

Next

Return to Turbo Station Installation & Setup

Who is online

Users browsing this forum: jibs20 and 2 guests