Samba 3.5 Shadow Copy for Windows 7

Posted by Prashanth Sundaram on Server Fault See other posts from Server Fault or by Prashanth Sundaram
Published on 2012-11-27T16:46:12Z Indexed on 2012/11/27 17:06 UTC
Read the original article Hit count: 529

Over the past several days I have been trying to get the shadow to work with samba but haven’t been successful. Can someone check below config and let me know if I am missing something? We are using Equallogic SAN and iSCSI LUNS to mount volumes.

I can cleanly access samba shares on Windows 7 clients but just not shadow copy. I have referred the official how-to but couldn’t get it to work. I see these messages in the logs. Any help is deeply appreciated.

[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, failed.

[2012/10/31 12:21:13.887198, 0] modules/vfs_shadow_copy2.c:734(shadow_copy2_get_shadow_copy2_data)
shadow:snapdir not found for /fs/test-01 in get_shadow_copy_data

[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, failed.

== Samba pkgs ==

  • samba-3.5.10-116.el6_2.x86_64
  • samba-common-3.5.10-116.el6_2.x86_64
  • samba-winbind-clients-3.5.10-116.el6_2.x86_64
  • samba-client-3.5.10-116.el6_2.x86_64

=== df –h == First is the iSCSI LUN and 2 others are snapshots.

/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

All feedback is welcome. Thanks!

© Server Fault or respective owner

Related posts about samba

  • Unable to connect to Samba printer

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I have a headless Ubuntu 12.04 server for files and printers. It shares files via Samba just fine. However, the HP PSC-750xi connected to the server via USB is not accessible from my Ubuntu 12.04 laptop. I can browse for it in the Printing control panel, but any attempt to authenticate my ID to the… >>> More

  • Samba folder is gone

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I seem to have some issues sharing folders from my Ubuntu 12.04 machine to a Win7 machine. After playing around with the settings, I decided to revert to Samba's original setting by reinstalling it: sudo apt-get purge samba sudo rm -rf /etc/samba/ /etc/default/samba sudo apt-get install samba just… >>> More

  • Samba on OS X 10.6.4

    as seen on Server Fault - Search for 'Server Fault'
    I just updated from 10.6.3 to 10.6.4, and now my Samba shares won't mount and won't allow access into the directories. In the logs, I've started to get the following errors, any idea what might have gone wrong? 2010/06/25 15:54:27, 0, pid=13848] /SourceCache/samba/samba-235.4/samba/source/passdb/secrets… >>> More

  • OpenLDAP and Samba, can't log onto Samba share from Windows

    as seen on Server Fault - Search for 'Server Fault'
    The former jackass IT-guy that I'm taking over for had a Samba share setup on a Fedora server that uses our OpenLDAP server to authenticate users who want to log in from Windows. We recently added a new employee and I jumped through the LDAP hoops to add them to the system. However, I can't seem… >>> More

  • Windows 7 Samba issue

    as seen on Server Fault - Search for 'Server Fault'
    We have a strange samba issue affecting only one user. Our samba setup is as follow : Red Hat Enterprise Linux Server release 5.4 (Tikanga) - Samba Server Samba version 3.0.33-3.14.el5 - Samba version Domain Controller WIN2008R2 Standard -… >>> More

Related posts about Snapshot