YB Multiple data disk support using yugabyted

We are currently using YugabyteDB stable version 2.20.5.0 and have started using yugabyted. We would like to know if yugabyted supports specifying multiple data disks using the --data_dir flag.

current: --data_dir=/mnt01/data01

looking for: --data_dir=/mnt01/data01, /mnt02/data02

Hi @parvez The version 2.20.5.0 doesn’t support multiple data disks. It was introduced in the 2024.1 release.

However, The database itself has support for multiple disks, its only yugabyted added support for it in 2024.1 release. I believe we can directly set the data_dirs by setting the correct gflags when starting yugabyted.

ok, thanks for the quick response @nmalladi

Can you please share with me how to set the correct gflags?

Try something like:

yugabyted start --tserver_flags="fs_data_dirs={/root/d1,/root/d2}"

1 Like