[Bug] Bug in gpinitsystem when creating multiple segments per segment host
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 247
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 39
Description
### Cloudberry Database version
1.6.0
### What happened
See attached documents. We are creating a cluster on 12 segment hosts that is supposed to have 4 primaries per segment host spread across 4 mounted disks:
/data1
/data2
/data3
/data4
What resulted instead is we ended up with 2 primaries per segment host with it being fairly random as to what disks it created it on.
As a workaround I had to change the config file to double up the disk list. It just seems to be cutting it in half for some reason.
### What you think should happen instead
it should be creating the number of primary segments as per the number of data drives in the DATA_DIRECTORY list
### How to reproduce
See attached
[gpinit_bug_1.txt](https://github.com/user-attachments/files/16965590/gpinit_bug_1.txt)
[gpinit_bug_workaround.txt](https://github.com/user-attachments/files/16965592/gpinit_bug_workaround.txt)
### Operating System
rocky8
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes, I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://cloudberrydb.org/community/coc).
Contributor guide
Assessment
This issue has not been assessed yet.