Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script scale_minio.sh not working #723

Open
s3tupw1zard opened this issue Dec 7, 2024 · 1 comment
Open

Script scale_minio.sh not working #723

s3tupw1zard opened this issue Dec 7, 2024 · 1 comment

Comments

@s3tupw1zard
Copy link

Hi,

when I'm trying to use scale_minio.sh from the install-wizard-v1.10.4.tar.gz file on the releases page I can't add an additional hard drive or ssd to Olares.

Steps to reproduce:

  1. Getting the script like on this docs page: https://docs.olares.xyz/developer/develop/advanced/cli.html#add-a-hard-drive-locally
  2. Executing the following command: bash scale_minio.sh -a driver -v /olares/data/minio/vol2
  3. Getting error:
scale_minio.sh: line 116: [xdriver: command not found
scale_minio.sh: line 116: [xdriver: command not found

This error comes from missing spaces on the line if ["x$a" != "xnode" ] || ["x$a" != "xdriver" ]; then between the [ and " characters.
After fixing this when executing the command again it just shows the usage help regardless of what the script was given.

Additionally I tried to remove the x es from those lines (before the words driver and node), since I wasn't shure if they should be there.

I think the cause for the usage help which is printed every time could be the comparisons on the part that validates required parameters on lines 112-123.

Hope this informations help you.

Thank you for your time.

@eball
Copy link
Collaborator

eball commented Dec 9, 2024

@s3tupw1zard

For now, scale minio is an experimental feature. If you want to add some additional storage like SSD or HDD, you can mount the devices to the sub path of /olares/share and change the path owner to uid 1000.

eg.

sudo mkdir -o /olares/share/my_storage
sudo mount /dev/nvme0n1p1 /olares/share/my_storage
sudo chown -R 1000:1000 /olares/share/my_storage

Then, you can manage this SSD via Files -> External in Olares. In Files also you can copy or move the media files to any APPs‘ Application data, to add to the APP.

After that, if you want to remove the storage, you can umount them and remove the path.

sudo umount /olares/share/my_storage
sudo rm  /olares/share/my_storage 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants