Report this

What is the reason for this report?

smaba/cifs share between droplets

Posted on April 19, 2019

Can’t two droplets mount each others filesystems ? it should be Straight forward

I have two ubuntu droplets “number 1” and “number 2” number 1 has a volume attached and mounted in the /mnt/volume_ams3_01/ directory both have private networking enabled and can ping each other.

I created a directory /mnt/volume_ams3_01/data I create a symlink to the directory in /mnt ln -s /mnt/volume_ams3_01/data /mnt/dd

What I want is to make a samba share of /mnt/dd and then mount it on number 2 via cifs

smb.conf:

[sambashare] comment = Samba on Ubuntu path = /mnt/dd read only = no browsable = yes

on “number 2”

mkdir -p /mnt/data mount -t cifs //<private ip of number 1>/dd /mnt/data -o username=root, password =password Retrying with upper case share name mount error(6): No such device or address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

What is wrong ???



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

You can consider following these steps to troubleshoot the issue:

  1. Double-check: Make sure you have Samba installed and running on both droplets. Additionally, confirm the private IP addresses on each droplet are correct.
  2. Samba configuration: Ensure the smb.conf is correct on “number 1” droplet. Also, restart the Samba service after making any changes to the configuration file:
  1. sudo systemctl restart smbd
  2. sudo systemctl restart nmbd
  1. Firewall settings: Check if any firewall rules are blocking the Samba connections. On Ubuntu, you can use ufw to manage the firewall settings.
  2. Testing the share: Verify if the Samba share is accessible from “number 2” droplet using the following command:
  1. smbclient -L ///sambashare -U username%password
  1. Mounting the share: If the previous command works, try mounting the share again with:
  1. sudo mkdir -p /mnt/data
  2. sudo mount -t cifs ///sambashare /mnt/data -o username=root, password=password

If you’re still facing issues, please refer to the following DigitalOcean document on how to set up a Samba file server: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-samba-share-on-ubuntu-18-04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.