![适用于 Windows 7 的 Samba 3.5 卷影复制](https://linux22.com/image/797201/%E9%80%82%E7%94%A8%E4%BA%8E%20Windows%207%20%E7%9A%84%20Samba%203.5%20%E5%8D%B7%E5%BD%B1%E5%A4%8D%E5%88%B6.png)
过去几天,我一直在尝试让影子与 Samba 一起工作,但没有成功。有人可以检查下面的配置并告诉我是否遗漏了什么吗?我们正在使用 Equallogic SAN 和 iSCSI LUNS 来安装卷。
我可以干净地访问 Windows 7 客户端上的 Samba 共享,但无法访问影子副本。我参考了官方的操作方法,但无法让它工作。我在日志中看到了这些消息。任何帮助都将不胜感激。
[2012/10/31 12:20:53.549863, 0] smbd/nttrans.c:2170(call_nt_transact_ioctl)
FSCTL_GET_SHADOW_COPY_DATA: connectpath /fs/test-01,失败。[2012/10/31 12:21:13.887198,0] modules/vfs_shadow_copy2.c:734(shadow_copy2_get_shadow_copy2_data)
shadow:在 get_shadow_copy_data 中未找到 /fs/test-01 的 snapdir[2012/10/31 12:21:13.887265, 0] smbd/nttrans.c:2170(call_nt_transact_ioctl)
FSCTL_GET_SHADOW_COPY_DATA:connectpath /fs/test-01,失败。
== Samba 软件包 ==
- samba-3.5.10-116.el6_2.x86_64
- samba-通用-3.5.10-116.el6_2.x86_64
- samba-winbind-客户端-3.5.10-116.el6_2.x86_64
- samba 客户端-3.5.10-116.el6_2.x86_64
=== df –h == 第一个是 iSCSI LUN,另外 2 个是快照。
/dev/mapper/eql-0-fs-test01 5.0G 2.3G 2.5G 48% /fs/test-01
/dev/mapper/eql-2-0+fs-test01 5.0G 2.3G 2.5G 48% /fs/test-01/@GMT-2012.10.26-17.32.42/fs/test-01 (SNAPSHOT-1)
/dev/mapper/eql-d-0+fs-test01 5.0G 2.3G 2.5G 48% /fs/test-01/@GMT-2012.10.31-11.52.42/fs/test-01 (SNAPSHOT- 2)
===/etc/samba/smb.conf ===
[global]
workgroup = DOMAIN
server string = Samba Server Version %v
security = ads
realm = DOMAIN.CORP
encrypt passwords = yes
guest account = nobody
map to guest = bad uid
log file = /var/log/samba/%m.log
domain master = no
local master = no
preferred master = no
os level = 0
load printers = no
show add printer wizard = no
printable = no
printcap name = /dev/null
disable spoolss = yes
follow symlinks = yes
wide links = yes
unix extensions = no
[test]
comment = Test Directories
path = /fs/test-01
vfs objects = shadow_copy2
#shadow_copy2: sort = desc
#shadow: localtime = yes
#shadow: snapdir = /fs/test-01/test
#shadow: basedir = /fs/test-01
guest ok = yes
writeable = yes
map archive = no
force create mode = 0660
force directory mode = 2770
inherit owner = yes
inherit permissions = yes
欢迎所有反馈。谢谢!