0

我正在尝试将 glusterfs 挂载点导出为 samba 导出,然后使用 CIFS 协议挂载它。

[root@ip-10-10-0-000 /]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/xvda1               7.8G  1.3G  6.5G  16% /
devtmpfs                 490M   56K  490M   1% /dev
tmpfs                    498M     0  498M   0% /dev/shm
10.00.0.00:/dist-volume   32G  130M   32G   1% /mnt/distributed

我已按照以下步骤操作:

yum install samba
yum install samba-client
yum install cifs-utils

在 smb.conf 文件中添加以下行

[glustertest]

comment = For testing a Gluster volume exported through CIFS
path = /mnt/distributed
read only = no
guest ok = yes

启动 smb 服务:

[root@ip-10-10-0-000 samba]# /etc/init.d/smb start
Starting SMB services:                                     [  OK  ]

当我尝试使用 CIFS 安装它时出现以下错误:

[root@ip-10-10-0-000 /]# mount.cifs -o username=user,password=userpwd 10.00.0.00:/dist-volume  /mnt/smb

mount.cifs: bad UNC (10.00.0.00:/dist-volume)

我不确定,我遵循的步骤完全正确我找不到任何合适的文档来使用 samba 导出 gluster 卷

谁能告诉我这里出了什么问题?

4

1 回答 1

0

在我将卷名指定为“glustertest”后,我在 samba.conf 中提到,而不是使用它工作的实际 gluster 卷名。

sudo mount -t cifs -o username=user,password=userpwd \\\\127.0.0.1\\glustertest  /mnt/smb
于 2016-07-25T15:35:29.070 回答