ASK NC
Indexing QNAP NAS with audio - Printable Version

+- ASK NC (https://ask.nascompares.com)
+-- Forum: Q&A (https://ask.nascompares.com/forumdisplay.php?fid=1)
+--- Forum: Before you buy Q&A (https://ask.nascompares.com/forumdisplay.php?fid=2)
+--- Thread: Indexing QNAP NAS with audio (/showthread.php?tid=11012)



Indexing QNAP NAS with audio - Enquiries - 07-21-2024

4 TB of music DSD, DSF Flac mp3.
It is not possible to configure indexing not to run.
It killed a 10TB disk
Can I set up a cronjob killing the indexing process?
And of cause trun it off, the killjob when new files added.


RE: Indexing QNAP NAS with audio - ed - 07-23-2024

Issue with Indexing
It sounds like the continuous indexing process is putting a strain on your drives. Here’s how you can manage this:

Disabling Indexing
To prevent indexing from continuously running and causing issues:

Disable Multimedia Console Indexing:
Log into your QNAP NAS.
Go to the Control Panel.
Navigate to Applications > Multimedia Console.
Disable the media indexing service for the folders containing your music files.




Here is some script- but likely not gonna work



Access the Terminal:

Open an SSH connection to your QNAP NAS using a tool like PuTTY.
Create a Kill Script:

Create a script that kills the indexing process. For example, you can create a file named kill_indexing.sh:
sh
Copy code
#!/bin/sh
pkill -f /usr/local/medialibrary/bin/mymediadbserver
Make the Script Executable:

Run the command: chmod +x kill_indexing.sh
Schedule the Cron Job:

Edit the crontab file by running: crontab -e
Add a line to run the script at your desired intervals. For example, to run every hour:
sh
Copy code
0 * * * * /path/to/kill_indexing.sh
Manually Running Indexing
When you add new files and need to run the indexing process:

Temporarily Disable the Kill Job:

You can comment out the line in the crontab file by adding a # at the beginning of the line:
sh
Copy code
# 0 * * * * /path/to/kill_indexing.sh
Re-enable Indexing:

Re-enable the indexing service from the Multimedia Console for the period you’re adding new files.
Re-enable the Kill Job:

Once indexing is complete, uncomment the line in the crontab file to reactivate the kill job.