Need help in passing data directory of Scylla DB to Vagrant Container of DCOS

36 views
Skip to first unread message

praveen...@gmail.com

unread,
Jun 27, 2017, 7:08:39 PM6/27/17
to Vagrant
Hi all,

I am trying to change data directory of Scylla DB cluster in a vagrant container to point to a XFS volume mounted directory on the host system.

I used synced folders to pass the directory to container adding following line to Vagrantfile :
config.vm.synced_folder "/dir1/", "/mydir1",
        owner:"scylla",
        group:"scylla",
        mount_options: ["dmode=775,fmode=664"]
. But I am getting following error when starting ScyllaDB server:
 [shard 0] init - Directory '/mydir1/data' cannot be initialized. Tried to do it but failed with: storage_io_error (Storage I/O error: 22: Invalid argument)


Kindly help in resolving this issue

Alvaro Miranda Aguilera

unread,
Jun 28, 2017, 7:50:28 AM6/28/17
to vagra...@googlegroups.com
seems a scylla error message.

are you sure that scylla will run on the kind of filesystem ? 

If your host and guest are linux, I would go with NFS.

Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/b3b15d49-602a-48e5-8ca1-9f5fd4e9aebe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

praveen...@gmail.com

unread,
Jul 5, 2017, 4:57:09 PM7/5/17
to Vagrant
Hi Alvaro,

Thanks for the response. The host directory is having XFS filesystem which is completely supported by ScyllaDB.

I am not supposed to to use NFS as I am intended to test the working performance of a Data volume (XFS filesystem) mounted on host.

Therfore kindly help me regarding how to proceed.

I have tried adding synced folders (shared) changing its ownership to scylla:scylla dynamically in vagrant. But still getting the same error. 


Thanks & regards,
Praveen Kumar A


On Wednesday, June 28, 2017 at 4:50:28 AM UTC-7, Alvaro Miranda Aguilera wrote:
seems a scylla error message.

are you sure that scylla will run on the kind of filesystem ? 

If your host and guest are linux, I would go with NFS.

Alvaro.
On Wed, Jun 28, 2017 at 1:08 AM, <praveen...@gmail.com> wrote:
Hi all,

I am trying to change data directory of Scylla DB cluster in a vagrant container to point to a XFS volume mounted directory on the host system.

I used synced folders to pass the directory to container adding following line to Vagrantfile :
config.vm.synced_folder "/dir1/", "/mydir1",
        owner:"scylla",
        group:"scylla",
        mount_options: ["dmode=775,fmode=664"]
. But I am getting following error when starting ScyllaDB server:
 [shard 0] init - Directory '/mydir1/data' cannot be initialized. Tried to do it but failed with: storage_io_error (Storage I/O error: 22: Invalid argument)


Kindly help in resolving this issue

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Jul 6, 2017, 2:56:37 AM7/6/17
to vagra...@googlegroups.com
Hello

If you want XFS on the guest, the best is create a disk and format it as XFS.

Host XFS -> Virtualbox shared folder -> not XFS on VM.

Alvaro





To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/c7e23b2d-d572-453d-9e7f-175a2f0d3352%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

praveen...@gmail.com

unread,
Jul 6, 2017, 6:50:24 PM7/6/17
to Vagrant
Hi Alvaro,

I am exactly doing what you have suggested in this post. I am not creating XFS on VM and only creating on host. I am using sheared folder b/w host and vm for this XFS directory. Kindly let me know how to proceed as the issue is not yet fixed


Thanks & Regards,
Praveen



--
Alvaro

Alvaro Miranda Aguilera

unread,
Jul 7, 2017, 2:33:53 AM7/7/17
to vagra...@googlegroups.com
Hello

Vagrant does stuff on your behalf.

It create the VM, it create the shared folder. up to there, Vagrant did his job.

What I am saying is:
- Shared folders over virtualbox is not a native filesystem.

say you want XFS, the way to go is create a disk on the VM, put a XFS filesystem and use it.

the app you are using is not working with the virtualbox shared folder, you can follow up with the app people to see if they support virtualbox shared folder.
please note, virtualbox shared folder will create a pseudo filesystem, so is not the host native filesystem.


if you think this is a bug on the virtualbox shared folder, you can contact virtualbox team.

in the same way some php apps wont work on virtualbox shared file system, and some nodejs, etc, you have found that scylladb doesn't work with this pseudo-filesystem.

Thanks
Alvaro.

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5f9b9457-a6f3-4e65-9ca9-154069c9ba34%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages