HI List
I 'm testing a new 389-DS version 3.1 i RH 9 installation, I followed the RH Doc for migration from version 1.2.3 copy only content and user.ldif , I re-create my indexes with dsconf but I can not find where are this new LMDB indexes files? ( Iin old 1.2.3 I used the default userroot , but I can not find such userroot db in latest veersion ?)
Do I need to create userroot directory before or after indexes creation ?
sslapd-db-home-directory: /var/lib/dirsrv/slapd-test/db
/var/lib/dirsrv/slapd-testl/db/
w-r--r--. 1 dirsrv dirsrv 75 Feb 5 09:27 INFO.mdb -rw-------. 1 dirsrv dirsrv 15899 Feb 5 09:27 data.mdb -rw-------. 1 dirsrv dirsrv 8192 Feb 5 11:16 lock.mdb Thank you Isabella
Hi,
with LMDB backend data.mdb contains all data: backends, indexes, entries. You don't need to create anything yourself.
dbscan can display all sub-dbs: dbscan -L /var/lib/dirsrv/slapd-localhost/db or you can access individual indexes: dbscan -s -f /var/lib/dirsrv/slapd-localhost/db/userroot/parentid.db
HTH Equality index keys: 13 On Thu, Feb 5, 2026 at 8:33 PM Ghiurea, Isabella via 389-users < 389-users@lists.fedoraproject.org> wrote:
HI List
I 'm testing a new 389-DS version 3.1 i RH 9 installation, I followed the RH Doc for migration from version 1.2.3 copy only content and user.ldif , I re-create my indexes with dsconf but I can not find where are this new LMDB indexes files? ( Iin old 1.2.3 I used the default userroot , but I can not find such userroot db in latest veersion ?)
Do I need to create userroot directory before or after indexes creation ?
sslapd-db-home-directory: /var/lib/dirsrv/slapd-test/db
/var/lib/dirsrv/slapd-testl/db/
w-r--r--. 1 dirsrv dirsrv 75 Feb 5 09:27 INFO.mdb -rw-------. 1 dirsrv dirsrv 15899 Feb 5 09:27 data.mdb -rw-------. 1 dirsrv dirsrv 8192 Feb 5 11:16 lock.mdb Thank you Isabella
-- _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@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-users@lists.fedoraproject.... Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
Hello, The above dbstat commands are for RH 10 but when using lmdb on RH 9 you have to specify you want to use lmdb:
dbscan -D mdb -L /var/lib/dirsrv/slapd-localhost/db dbscan -D mdb -s -f /var/lib/dirsrv/slapd-localhost/db/userroot/parentid.db
Regards -- Pierre
On Fri, Feb 6, 2026 at 12:35 PM Viktor Ashirov via 389-users < 389-users@lists.fedoraproject.org> wrote:
Hi,
with LMDB backend data.mdb contains all data: backends, indexes, entries. You don't need to create anything yourself.
dbscan can display all sub-dbs: dbscan -L /var/lib/dirsrv/slapd-localhost/db or you can access individual indexes: dbscan -s -f /var/lib/dirsrv/slapd-localhost/db/userroot/parentid.db
HTH Equality index keys: 13 On Thu, Feb 5, 2026 at 8:33 PM Ghiurea, Isabella via 389-users < 389-users@lists.fedoraproject.org> wrote:
HI List
I 'm testing a new 389-DS version 3.1 i RH 9 installation, I followed the RH Doc for migration from version 1.2.3 copy only content and user.ldif , I re-create my indexes with dsconf but I can not find where are this new LMDB indexes files? ( Iin old 1.2.3 I used the default userroot , but I can not find such userroot db in latest veersion ?)
Do I need to create userroot directory before or after indexes creation ?
sslapd-db-home-directory: /var/lib/dirsrv/slapd-test/db
/var/lib/dirsrv/slapd-testl/db/
w-r--r--. 1 dirsrv dirsrv 75 Feb 5 09:27 INFO.mdb -rw-------. 1 dirsrv dirsrv 15899 Feb 5 09:27 data.mdb -rw-------. 1 dirsrv dirsrv 8192 Feb 5 11:16 lock.mdb Thank you Isabella
-- _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@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-users@lists.fedoraproject.... Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
-- Viktor -- _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@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-users@lists.fedoraproject.... Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
Thank you for replies , still some confusing see bellow :
dsconf -D "cn=Directory Manager" -W slapd-testldap backend index add --attr nsaccountlock --index-type eq userroot
Error: Already exists(68)>> So index is already there but this dbscan says : dbscan -D mdb -s -f /var/lib/dirsrv/slapd-testldap/db/userroot/nsaccountlock Empty database!
Thank you
Isabella
________________________________ From: Pierre Rogier progier@redhat.com Sent: Friday, February 6, 2026 3:49:42 AM To: General discussion list for the 389 Directory server project. Cc: Ghiurea, Isabella; Viktor Ashirov Subject: [EXTERNAL\EXTERNE:] Re: [389-users] Re: 3.1 version where i are ndexes ?
***Attention*** This email originated from outside of the NRC. ***Attention*** Ce courriel provient de l'extérieur du CNRC.
Hello, The above dbstat commands are for RH 10 but when using lmdb on RH 9 you have to specify you want to use lmdb:
dbscan -D mdb -L /var/lib/dirsrv/slapd-localhost/db dbscan -D mdb -s -f /var/lib/dirsrv/slapd-localhost/db/userroot/parentid.db
Regards -- Pierre
On Fri, Feb 6, 2026 at 12:35 PM Viktor Ashirov via 389-users <389-users@lists.fedoraproject.orgmailto:389-users@lists.fedoraproject.org> wrote: Hi,
with LMDB backend data.mdb contains all data: backends, indexes, entries. You don't need to create anything yourself.
dbscan can display all sub-dbs: dbscan -L /var/lib/dirsrv/slapd-localhost/db or you can access individual indexes: dbscan -s -f /var/lib/dirsrv/slapd-localhost/db/userroot/parentid.db
HTH Equality index keys: 13 On Thu, Feb 5, 2026 at 8:33 PM Ghiurea, Isabella via 389-users <389-users@lists.fedoraproject.orgmailto:389-users@lists.fedoraproject.org> wrote:
HI List
I 'm testing a new 389-DS version 3.1 i RH 9 installation, I followed the RH Doc for migration from version 1.2.3 copy only content and user.ldif , I re-create my indexes with dsconf but I can not find where are this new LMDB indexes files? ( Iin old 1.2.3 I used the default userroot , but I can not find such userroot db in latest veersion ?)
Do I need to create userroot directory before or after indexes creation ?
sslapd-db-home-directory: /var/lib/dirsrv/slapd-test/db
/var/lib/dirsrv/slapd-testl/db/
w-r--r--. 1 dirsrv dirsrv 75 Feb 5 09:27 INFO.mdb -rw-------. 1 dirsrv dirsrv 15899 Feb 5 09:27 data.mdb -rw-------. 1 dirsrv dirsrv 8192 Feb 5 11:16 lock.mdb Thank you Isabella
-- _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.orgmailto:389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@lists.fedoraproject.orgmailto:389-users-leave@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-users@lists.fedoraproject.... Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
-- Viktor -- _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.orgmailto:389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@lists.fedoraproject.orgmailto:389-users-leave@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-users@lists.fedoraproject.... Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
-- --
389 Directory Server Development Team
On 2/6/26 12:28 PM, Ghiurea, Isabella via 389-users wrote:
Thank you for replies , still some confusing see bellow :
dsconf -D "cn=Directory Manager" -W slapd-testldap backend index add --attr nsaccountlock --index-type eq userroot
Error: Already exists(68)>> So index is already there but this dbscan says : dbscan -D mdb -s -f /var/lib/dirsrv/slapd-testldap/db/userroot/nsaccountlock Empty database!
You need to index the attribute after adding the index configuration. You can add "--reindex" option to your command. This is also how it worked with BDB.
HTH, Mark
Thank you
Isabella
*From:* Pierre Rogier progier@redhat.com *Sent:* Friday, February 6, 2026 3:49:42 AM *To:* General discussion list for the 389 Directory server project. *Cc:* Ghiurea, Isabella; Viktor Ashirov *Subject:* [EXTERNAL\EXTERNE:] Re: [389-users] Re: 3.1 version where i are ndexes ?
****Attention*** This email originated from outside of the NRC. ***Attention*** Ce courriel provient de l'extérieur du CNRC.*
Hello, The above dbstat commands are for RH 10 but when using lmdb on RH 9 you have to specify you want to use lmdb:
dbscan -D mdb -L /var/lib/dirsrv/slapd-localhost/db dbscan -D mdb -s -f /var/lib/dirsrv/slapd-localhost/db/userroot/parentid.db
Regards
Pierre
On Fri, Feb 6, 2026 at 12:35 PM Viktor Ashirov via 389-users 389-users@lists.fedoraproject.org wrote:
Hi, with LMDB backend data.mdb contains all data: backends, indexes, entries. You don't need to create anything yourself. dbscan can display all sub-dbs: dbscan -L /var/lib/dirsrv/slapd-localhost/db or you can access individual indexes: dbscan -s -f /var/lib/dirsrv/slapd-localhost/db/userroot/parentid.db HTH Equality index keys: 13 On Thu, Feb 5, 2026 at 8:33 PM Ghiurea, Isabella via 389-users <389-users@lists.fedoraproject.org> wrote: HI List I 'm testing a new 389-DS version 3.1 i RH 9 installation, I followed the RH Doc for migration from version 1.2.3 copy only content and user.ldif , I re-create my indexes with dsconf but I can not find where are this new LMDB indexes files? ( Iin old 1.2.3 I used the default userroot , but I can not find such userroot db in latest veersion ?) Do I need to create userroot directory before or after indexes creation ? sslapd-db-home-directory: /var/lib/dirsrv/slapd-test/db /var/lib/dirsrv/slapd-testl/db/ w-r--r--. 1 dirsrv dirsrv 75 Feb 5 09:27 INFO.mdb -rw-------. 1 dirsrv dirsrv 15899 Feb 5 09:27 data.mdb -rw-------. 1 dirsrv dirsrv 8192 Feb 5 11:16 lock.mdb Thank you Isabella -- _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@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-users@lists.fedoraproject.org Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new -- Viktor -- _______________________________________________ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-leave@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-users@lists.fedoraproject.org Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new--
389 Directory Server Development Team
389-users@lists.fedoraproject.org