Discussion:
[389-users] how could I set nsslapd-db-home-directory?
Marco Favero
2021-05-27 12:21:28 UTC
Permalink
Hello, could you help me to set `nsslapd-db-home-directory`?

I would like to change that path in order to move the cache in a RAM fs.

I tried with

` /usr/sbin/dsconf -D "cn=Directory Manager" -w *** ldap://tst-example.com:389 backend config set --dbcachesize=209715200 --db-home-directory=/dev/shm/dirsrv/slapd-default/dbcache`

but it fails with:

`Error: Server is unwilling to perform - nsslapd-db-home-directory can't be modified while the server is running.`

I tried to follow these instructions:

https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/performance_tuning_guide/tuning-db-cache#db-cache-on-ram-disk

but even if I stop the directory, I change the entry in the dse, I restart the directory, then I still see:

`nsslapd-db-home-directory: /var/lib/dirsrv/slapd-default/db`

My 389ds-base is `1.4.3.22`.

Thank you very much
Kind Regards
Marco
_______________________________________________
389-users mailing list -- 389-***@lists.fedoraproject.org
To unsubscribe send an email to 389-users-***@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-***@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrast
Simon Pichugin
2021-05-27 12:56:38 UTC
Permalink
Post by Marco Favero
Hello, could you help me to set `nsslapd-db-home-directory`?
Hello, Marko!
Post by Marco Favero
I would like to change that path in order to move the cache in a RAM fs.
I tried with
` /usr/sbin/dsconf -D "cn=Directory Manager" -w *** ldap://
tst-example.com:389 backend config set --dbcachesize=209715200
--db-home-directory=/dev/shm/dirsrv/slapd-default/dbcache`
`Error: Server is unwilling to perform - nsslapd-db-home-directory can't
be modified while the server is running.`
https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/performance_tuning_guide/tuning-db-cache#db-cache-on-ram-disk
but even if I stop the directory, I change the entry in the dse, I restart
Yes, this is the way.
1. Stop the instance;
2. Change dse.ldif attribute value;
3. Start the instance.
Post by Marco Favero
`nsslapd-db-home-directory: /var/lib/dirsrv/slapd-default/db`
Could you please check you /var/log/dirsrv - errors log?
Also, is your SELinux and other permissions are set properly for the
directory?

Sincerely,
Simon
Post by Marco Favero
My 389ds-base is `1.4.3.22`.
Thank you very much
Kind Regards
Marco
_______________________________________________
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
https://pagure.io/fedora-infrastructure
Marco Favero
2021-05-27 14:23:52 UTC
Permalink
Hello Simon,
I can't find any error log related to this, I'll check again.
I don't have selinux enabled.

For now I solved setting the path in dscreate phase. Maybe this is the simplest way for me.

The good surprise is that the process create the path by itself after the start, I don't need an already existing path before starting the Directory Server.

Thank you for the hints
Kind Regards

Marco
_______________________________________________
389-users mailing list -- 389-***@lists.fedoraproject.org
To unsubscribe send an email to 389-users-***@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-***@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fed
Sandhya Rani Boreddy
2021-05-27 14:36:11 UTC
Permalink
Please remove me from this mail chanin

-----Original Message-----
From: Marco Favero <***@gmail.com>
Sent: Thursday, May 27, 2021 7:54 PM
To: 389-***@lists.fedoraproject.org
Subject: [389-users] Re: how could I set nsslapd-db-home-directory?

[**EXTERNAL EMAIL**]

Hello Simon,
I can't find any error log related to this, I'll check again.
I don't have selinux enabled.

For now I solved setting the path in dscreate phase. Maybe this is the simplest way for me.

The good surprise is that the process create the path by itself after the start, I don't need an already existing path before starting the Directory Server.

Thank you for the hints
Kind Regards

Marco
_______________________________________________
389-users mailing list -- 389-***@lists.fedoraproject.org To unsubscribe send an email to 389-users-***@lists.fedoraproject.org
Fedora Code of Conduct: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.fedoraproject.org%2Fen-US%2Fproject%2Fcode-of-conduct%2F&amp;data=04%7C01%7CSandhya_Boreddy%40infosys.com%7C823623edc0fc4e74410308d9211b39cd%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C0%7C0%7C637577223088916317%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Vobb1bIeLQf%2FYocAXlLP1j5uCZrljNnDkwHp%2Bjkzl20%3D&amp;reserved=0
List Guidelines: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffedoraproject.org%2Fwiki%2FMailing_list_guidelines&amp;data=04%7C01%7CSandhya_Boreddy%40infosys.com%7C823623edc0fc4e74410308d9211b39cd%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C0%7C0%7C637577223088916317%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bfKwRWFk6W4aNgct9glI7qDSUdMNfp7iuGIB5sleVkw%3D&amp;reserved=0
List Archives: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.fedoraproject.org%2Farchives%2Flist%2F389-users%40lists.fedoraproject.org&amp;data=04%7C01%7CSandhya_Boreddy%40infosys.com%7C823623edc0fc4e74410308d9211b39cd%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C0%7C0%7C637577223088916317%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=OT%2FdA3kLBmYZPatsIjtofqIpv1OOh6aDSiG82td4VS0%3D&amp;reserved=0
Do not reply to spam on the list, report it: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpagure.io%2Ffedora-infrastructure&amp;data=04%7C01%7CSandhya_Boreddy%40infosys.com%7C823623edc0fc4e74410308d9211b39cd%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C0%7C0%7C637577223088916317%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dlaAePonOnBwq1eRsxl%2Fjm90VKe7p97%2FyxN2ouURZ44%3D&amp;reserved=0
_______________________________________________
389-users mailing list -- 389-***@lists.fedoraproject.org
To unsubscribe send an email to 389-users-***@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-***@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagur

Loading...