Page 1 of 1

Mediadb service location

Posted: 17 Feb 2025, 20:41
by Pulsar
Hello!

I found that HDD's in my NAS make some noise when I'm definitely not using them..
After some investigation, I found this unexpected activity:

Code: Select all

CW /Volume1/@system/media/pgsql/*
Image


So, there's a media service that uses postgres and a service directory is created on Volume1, which is accessed every few seconds.
The disks do not go to sleep.

Code: Select all

mediadb.service
/usr/lib/postgresql/13/bin/postgres -D /Volume1/@system/media/pgsql
Image

I'm trying to figure out how to move this directory to another Volume2, or where the configuration is located, in which a specific startup path is specified.

If anyone has encountered such a problem, I would appreciate any advice!

Re: Mediadb service location

Posted: 07 Mar 2025, 15:53
by charlesharrel
I think you should check the service configuration for mediadb.service. You can usually find the configuration file in /etc/systemd/system/ or /lib/systemd/system/. Use the following command to view the contents:

Code: Select all

cat /etc/systemd/system/mediadb.service
Look for lines that specify the ExecStart command or any paths related to the database directory.

Re: Mediadb service location

Posted: 18 Mar 2025, 16:42
by rvescovi
Hi,

I discovered same issues, my hdd (Volume2) never went in sleep from long time, because there are continue changes on:

/Volume2/@zlog
/Volume2/@system/media/pgsql
.bash_history file -> just in case I will logged in

I found that the media configuration is located here:

cat /etc/default/mediadb
database=/Volume2/@system/media/pgsql

So it's pretty easy to change manually but after a reboot the system is reverted to old Volume2, so how did you proceed safely and permanently?

Re: Mediadb service location

Posted: 30 Apr 2025, 19:26
by Pulsar
Hi,
well, will try to set the config file to readonly permission