Sign in to follow this  
Benoire

How to stop Postgres on DSM 5.2?

Recommended Posts

I need to do a manual expansion of my primary SHR-1 array as it won't fully expand from the GUI. I know that the only service using the volume is the database software postgres but unfortunately I cannot find any script to stop it, can anyone point me in the right direction?

Share this post


Link to post
Share on other sites

Right don't worry, I have it now. Its in the rc.sysv directory, not the rc.d one.

Share this post


Link to post
Share on other sites
I need to do a manual expansion of my primary SHR-1 array as it won't fully expand from the GUI. I know that the only service using the volume is the database software postgres but unfortunately I cannot find any script to stop it, can anyone point me in the right direction?

If you are running docker containers on that volume, you will need to stop the contrainers before expanding.

Share this post


Link to post
Share on other sites

I've fixed it now. syno_poweroff_task -d at the SSH prompt shuts down all services on the device except ssh allowing you to unmount the volume and do other things without having to manually shut down everything... Its a good command to remember! I've also fixed my other problem now, found it was a md 'partition' not being assigned to the lvm2 group for some reason.

Share this post


Link to post
Share on other sites
I need to do a manual expansion of my primary SHR-1 array as it won't fully expand from the GUI. I know that the only service using the volume is the database software postgres but unfortunately I cannot find any script to stop it, can anyone point me in the right direction?

 

su -l postgres -c "exec /usr/syno/pgsql/bin/pg_ctl stop -s -m fast"

Share this post


Link to post
Share on other sites
Sign in to follow this