openmediavault-postgresql error

  • Hi


    I would test openmediavault-postgresql on a fresh install OMV on VM and i take this is error :



    After googling, i found : http://leopard.in.ua/2013/09/0…l-sessting-shared-memory/


    Postgresql need to have 2 options in sysctl.conf to work well.


    When i add see below into sysctl.conf postgresql star and no have error.


    Code
    kernel.shmmax = 1055092736
    kernel.shmall = 257591



    The patch to add into sysctl.conf



    Anybody can confirm this mistake ?

  • I can't confirm the "mistake" but I can give you advise on a better practice. Put the content you put in /etc/sysctl.conf in a file in /etc/sysctl.d, for example /etc/sysctl.d/postgresql.conf.

    • Offizieller Beitrag

    I've been doing some testing for two weeks without those parameters. You would think that if you needed it, the debian package would install it?? Are you locating the database(s) on zfs?


    Good idea HK :)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I test to change locating database on zfs and ext4 and delete sysctl.conf's add and i have the same error :



    I see in /etc/sysctl.d/30-postgresql-shm.conf :



    I have increase size ram of VM to 2Go (before 512Mo) and i see a wrong couple of kernel.shmmax / kernel.shmall should may crash postgresql.


    Now my /etc/sysctl.d/30-postgresql-shm.conf


    Code
    sysctl -p /etc/sysctl.d/30-postgresql-shm.conf
    kernel.shmmax = 1055297536
    kernel.shmall = 257641
    
    
     service postgresql start
    Starting PostgreSQL 9.1 database server: main.


    Postgresql works well now.


    I am alone to have this problem ???

    • Offizieller Beitrag

    I can't duplicate it. I have it running on my dev system and I never ran into the problem during plugin testing on my VMs. Not sure why you are having the issue.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!