Projekt Qnap: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
= History of my QNAP TS-462 =
* Change admin interface https port to 4433
* Add webserver with standard https port 443
* Add mariadb10: change port to standard 3306 or phpMyAdmin wont work, passwd admin not allowed -> J..1
* Add phpMyAdmin: edit config.inc.php line 31: localhost -> 127.0.0.1
* Add owncloudX: change db from sqllib -> mysql. DB user root, pw see above, host = localhost:3306 or 127.0.0.1:3306
* Connection refused or file not found during db login: Given up on mariadb -> sqllib backend for now
* Storagepool1/Raid Group 1 (NVME) went read only -> too much space for snapshots?
** Qnap->Systemsteuerung->Speicher&Snapshots->Speicher/Snapshots->Speicherpool1
*** Select volumename, click Verwalten
**** Guaranteed snapshot space reduced: 15% -> 5% (~600GB)
**** Snapshot schedule of all volumes (Backup/Multimedia/Public/Homes) changed: hourly -> daily
**** Checked usage reduced: 75% -> 25%
= History of my QNAP TS-419PII =
= History of my QNAP TS-419PII =


Line 17: Line 32:
  ./idle3ctl -g105 /dev/sd[abc]
  ./idle3ctl -g105 /dev/sd[abc]
   
   
# todo: experiment with -s300: does not directly reflect idle seconds before unload 
  ./idle3ctl -s300 /dev/sdc
  ./idle3ctl -s300 /dev/sdc
# enable bitmap on the raid to speed up resyncs (can be deactivated after replugging the disks)
  # unplug sdc, wait for qnap to ack
  # unplug sdc, wait for qnap to ack
  # replug sdc, wait for resync to finish
  # replug sdc, wait for resync to finish
Line 35: Line 52:
  make install
  make install


or from source:
or from latest source:
 
  ipkg install grep  
  ipkg install grep  
  ipkg install gawk  
  ipkg install gawk  

Latest revision as of 09:08, 20 August 2023

History of my QNAP TS-462

  • Change admin interface https port to 4433
  • Add webserver with standard https port 443
  • Add mariadb10: change port to standard 3306 or phpMyAdmin wont work, passwd admin not allowed -> J..1
  • Add phpMyAdmin: edit config.inc.php line 31: localhost -> 127.0.0.1
  • Add owncloudX: change db from sqllib -> mysql. DB user root, pw see above, host = localhost:3306 or 127.0.0.1:3306
  • Connection refused or file not found during db login: Given up on mariadb -> sqllib backend for now
  • Storagepool1/Raid Group 1 (NVME) went read only -> too much space for snapshots?
    • Qnap->Systemsteuerung->Speicher&Snapshots->Speicher/Snapshots->Speicherpool1
      • Select volumename, click Verwalten
        • Guaranteed snapshot space reduced: 15% -> 5% (~600GB)
        • Snapshot schedule of all volumes (Backup/Multimedia/Public/Homes) changed: hourly -> daily
        • Checked usage reduced: 75% -> 25%

History of my QNAP TS-419PII

  • Started with 2 disks WD20EARX as RAID1 2012-01-14
  • Added another WD20EARX at 2012-01-31
[2 disk raid1 to 3 disk raid5 failed?]
  • Discovered high Load_Cycle_Count. This fix needs optware QPKG
ipkg update
ipkg install make
ipkg install gcc # needed?
cd /tmp
wget http://dfn.dl.sourceforge.net/project/idle3-tools/idle3-tools-0.9.1.tgz
tar xzvf idle3-tools-0.9.1.tgz
cd idle3-tools-0.9.1
CC=gcc make
./idle3ctl -g105 /dev/sd[abc]

# todo: experiment with -s300: does not directly reflect idle seconds before unload  
./idle3ctl -s300 /dev/sdc
# enable bitmap on the raid to speed up resyncs (can be deactivated after replugging the disks)
# unplug sdc, wait for qnap to ack
# replug sdc, wait for resync to finish
# repeat for sda and sdb
  • no smartctl (only get_hd_smartinfo) and the one provided by ipkg just segfaults -> compile my own
ipkg install grep 
ipkg install gawk 
ipkg install optware-devel # needed?
export PATH=/opt/bin:$PATH
wget http://heanet.dl.sourceforge.net/project/smartmontools/smartmontools/5.42/smartmontools-5.42.tar.gz
tar xzvf smartmontools-5.42.tar.gz
cd smartmontools-5.42
# -fno-toplevel-reorder required for gcc 4.2 on arm or smartctl will segfault (gcc bug)
./configure CXXFLAGS='-g -O2 -fno-toplevel-reorder -Wall -W'
make
make install

or from latest source:

ipkg install grep 
ipkg install gawk 
ipkg install optware-devel # needed?
export PATH=/opt/bin:$PATH
cd /tmp
svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools smartmontools
cd smartmontools
# autogen fails because perl does not work. Seems ipkg is missing libperl. Reported on freenode #nslu2-general
# see below 'perl is missing libperl' together with this sed fixes it:
sed -i 's/\($perl_threads =\) 1/\1 0/' /opt/share/automake-1.11/Automake/Config.pm
LC_ALL=C ./autogen.sh
./configure CXXFLAGS='-g -O2 -fno-toplevel-reorder -Wall -W'
make
make install 

build 5.38 from tar and execute smrtctl works (5.39 - 5.42 do not)

  • missing home directory
mkdir -p /share/homes/joachim
chown joachim /share/homes/joachim
ln -s /share/joachim /share/homes/joachim/share
cp /root/.profile /root/.bashrc /share/homes/joachim
# edit ps1 and add /opt/bin to PATH in .profile
  • no sudo
ipkg install sudo
# copy admin lines in /etc/passwd /etc/shadow for root
add file /opt/etc/sudoers.d/joachim with content "joachim ALL = (root) ALL" and permissions 0440
  • perl is missing libperl
# use perl from other repo
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/stable/perl_5.10.0-6_arm.ipk
# fix md5sum to quiece ipkg
md5sum perl_5.10.0-6_arm.ipk # -> db8d74945234dd9cfb0b848c7601e6fe
vi /opt/lib/ipkg/lists/cs08q1armel # find line "Package: perl" and replace the md5sum
ipkg install perl_5.10.0-6_arm.ipk