[solved] ln / cp / mv / samba share incremental backups

Modifying a hardlink(/ed file)... argh.
Result A, old file 1 stays:
1 && echo 2 > 2 && ln 2 3 && mv 1 3 && cat 2 3 && rm 1 2 3
2
1
rm: cannot remove ‘1’: No such file or directory
Result B, file 1 gets overwritten too:
$ echo 1 > 1 && echo 2 > 2 && ln 2 3 && cp 1 3 && cat 2 3 && rm 1 2 3
1
1
Why?
I guess something like: "Because cp just overwrites the file that is where the hardlink points to while mv has to delete the hardlink first and then move the pointer thingy of the existing file"?
On a samba share, when a windows client overwrites hardlinks, I get Result B: The old file stays. Which makes for a great super easy / "lightweight" automatic incremental backup drive: I just hardlink explicitly everything to a file with the name of the current date every day and the old backup hardlinks will never be overwritten when the windows client synchronizes to the "current-directory". Or something like that...
I'm confused though as to WHY that works. Should it be working this way / can I trust that it'll keep working like that? Or is the windows client doing something "wrong" (like deleting the hardlink before copying over the modified file with the same link instead of copying it to the new destination)?
Someone please throw the manual that I need to eat to become less confused at me.
Thanks!
Last edited by whoops (2012-11-04 23:54:39)

Mostly I was looking for my brain, I guess
Thanks, stuff is starting to make sense now and google just got a lot more helpful than it was before, too!
That should explain what my problem was (also it offers an explanation):
http://serverfault.com/questions/225211 … -behaviour

Similar Messages

  • [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

    Greetings all,
    I have built a headless server running Arch linux as the base OS.  I am running SAMBA and CUPS and performing all maintenance of this server via SSH.
    The SAMBA share I can see (read/write) on all the Windows 7 machines on the network as well as the Printer connected to the server.  But I can't see it when I open Thunar or PCManFM.  Nor can I access the printer.
    It's obviously something I am doing wrong but I have Googled different parameters trying to find a solution but have come up short.
    Your assistance and guidance in putting me in the right direction is most appreciated.  All my Linux machines are running Arch.
    Thanks,
    Ian
    Last edited by ichase (2012-10-28 07:19:14)

    I have looked high and low.  The printer is set up via CUPS and the printer in smb.conf is set to CUPS.  All 4 windows computers in the house now have this printer set as default and can print fine.
    But if I try to print in Linux, for example in Libreoffice, I get No default printer found.  Please choose a printer and try again.  When I click ok, the network printer does not show up for me to select.
    I have tried updating the /etc/cups/client.conf on the client computer and it is set as:
    # see 'man client.conf'
    homeserver /var/run/cups/cups.sock
    homeserver 192.168.X.XX
    From what I have read so far, this is correct.  When I go to the CUPS Web Interface it shows under Manage Printer my HP 7300 Series printer there and in idle waiting for job.  And in Windows I can print to it just fine.
    As far as I can  tell SAMBA is set up correctly (I can mount the file drive in Arch with no issues) and CUPS seems to be configured correctly as well from all that I have read.
    Any insight would be great,
    Thanks,
    Ian
    Last edited by ichase (2012-10-28 07:28:31)

  • [Solved] Help Setting Samba Share In Qemu With XP Guest

    Hello all,
    After getting around all the quirks of setting an XP guest inside qemu, the only (though, pretty important) thing I can't solve is setting a samba share between the Arch host and the XP guest.
    I tried whatever I could think of that's relevant, with no success:
    Qemu is launched with:
    qemu-system-x86_64 -machine type=pc,accel=kvm -cpu host -boot d -m 1024 -net user,smb={my home folder} -net nic,model=virtio -rtc base=localtime -drive file=XP.qcow2,if=virtio -spice port=5900,disable-ticketing,image-compression=off,jpeg-wan-compression=never,zlib-glz-wan-compression=never,playback-compression=off -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent -balloon virtio
    I installed samba, added a user, and started the service according to the wiki.
    I allowed the samba ports in UFW (using the CIFS rule).
    Whenever I try accessing the share inside my XP guest (\\10.0.2.4\qemu), I usually end up with a target not found error, or at times, a password prompt that will not accept the samba user/password.
    Anything else I forgot to do?
    Thanks, Adam.
    * EDIT *
    I somehow missed the section regarding the guest OS able to access the host OS normal samba shares at 10.0.2.2.
    Default samba share for home folder works as expected.
    Last edited by adam777 (2013-07-15 16:05:44)

    Thanks.
    I tried toying with the options a bit more, with no success.
    I then decided to try Spice+QXL anyway, and am very happy with it.
    Aside from the lengthy compilation of the Qemu version that supports Spice from the AUR, once I got it set up, installing the guest was a breeze.
    Using the Spice guest tools for windows, everything was set up very conveniently (virtio for network, hdd, qxl driver, mouse integration etc.).
    Responsiveness is much better comparing to previous attempts with "vga std", "vga cirrus" and normal adapter.
    Bottom line, I'm sticking with Spice+QXL, seems to work best for me.

  • [SOLVED] Samba share problems

    Hey guys,
    So I've been trying to create an unauthorized set of samba shares, I've managed to allow a guest user to connect to the drives without authentication however files that I copy from outside the shares cannot be modified by my guest. Is it possible for me to allow guests to modify files that do not belong to them? my example is below;
    cp /etc/motd /home/shares/downloads
    ls -l
    -rw-r--r-- 1 sam   users 406 Feb 16 02:29 motd
    -rw-rw---- 1 guest users   0 Feb 16 02:37 test.txt
    I attempt to modify the motd and it will not let me save apologies for any sheer stupidity, I'm still fairly new to this. Below is my smb.conf
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options (perhaps too
    # many!) most of which are not shown in this example
    # For a step to step guide on installing, configuring and using samba,
    # read the Samba-HOWTO-Collection. This may be obtained from:
    # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
    # Many working examples of smb.conf files can be found in the
    # Samba-Guide which is generated daily and can be downloaded from:
    # http://www.samba.org/samba/docs/Samba-Guide.pdf
    # Any line which starts with a ; (semi-colon) or a # (hash)
    # is a comment and is ignored. In this example we will use a #
    # for commentry and a ; for parts of the config file that you
    # may wish to enable
    # NOTE: Whenever you modify this file you should run the command "testparm"
    # to check that you have not made any basic syntactic errors.
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = WORKGROUP
    # server string is the equivalent of the NT Description field
    server string = Server 1
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = user
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ; hosts allow = 192.168.1. 192.168.2. 127.
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    load printers = yes
    # you may wish to override the location of the printcap file
    ; printcap name = /etc/printcap
    # on SystemV system setting printcap name to lpstat should allow
    # you to automatically obtain a printer list from the SystemV spool
    # system
    ; printcap name = lpstat
    # It should not be necessary to specify the print system type unless
    # it is non-standard. Currently supported print systems include:
    # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
    ; printing = cups
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    guest account = guest
    map to guest = Bad User
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/%m.log
    # Put a capping on the size of the log files (in Kb).
    max log size = 50
    # Use password server option only with security = server
    # The argument list may include:
    # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    # password server = *
    ; password server = <NT-Server-Name>
    # Use the realm option only with security = ads
    # Specifies the Active Directory realm the host is part of
    ; realm = MY_REALM
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
    passdb backend = tdbsam
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting.
    # Note: Consider carefully the location in the configuration file of
    # this line. The included file is read at that point.
    ; include = /usr/local/samba/lib/smb.conf.%m
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ; interfaces = 192.168.12.2/24 192.168.13.2/24
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ; local master = no
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ; os level = 33
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ; domain master = yes
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ; preferred master = yes
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ; domain logons = yes
    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    ; logon script = %m.bat
    # run a specific logon batch file per username
    ; logon script = %U.bat
    # Where to store roving profiles (only for Win95 and WinNT)
    # %L substitutes for this servers netbios name, %U is username
    # You must uncomment the [Profiles] share below
    ; logon path = \\%L\Profiles\%U
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ; wins support = yes
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one WINS Server on the network. The default is NO.
    ; wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The default is NO.
    dns proxy = no
    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    ; add user script = /usr/sbin/useradd %u
    ; add group script = /usr/sbin/groupadd %g
    ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
    ; delete user script = /usr/sbin/userdel %u
    ; delete user from group script = /usr/sbin/deluser %u %g
    ; delete group script = /usr/sbin/groupdel %g
    #============================ Share Definitions ==============================
    [Music]
    path = /home/shares/music
    public = yes
    writable = yes
    printable = no
    read only = no
    guest ok = yes
    write list = @users
    directory mask = 0777
    [Pictures]
    path = /home/shares/pictures
    public = yes
    writable = yes
    printable = no
    read only = no
    guest ok = yes
    write list = @users
    directory mask = 0777
    [Videos]
    path = /home/shares/videos
    public = yes
    writable = yes
    printable = no
    read only = no
    guest ok = yes
    write list = @users
    directory mask = 0777
    [Downloads]
    path = /home/shares/downloads
    public = yes
    writable = yes
    guest ok = yes
    create mask = 0660
    write list = @users
    [Back-ups]
    path = /home/shares/backups
    public = yes
    writable = yes
    printable = no
    read only = no
    guest ok = yes
    write list = @users
    directory mask = 0777
    Last edited by risegeek (2011-02-17 01:47:12)

    Hmm, seems that the linux user account and the samba account passwords need to be identical for this to work? if I define no password for the samba account sam and if it has a password on the linux box itself, it will not work :S am I missing something?
    Also might be worth taking note that if a conflict exists between the password then it also renders my other account such as guest inaccessible, I've got it back to working the way it was before
    EDIT: I've managed to get this working, for some reason once I needed to remove the sam account that I created within smbpasswd - once I had done this I was able to use sam as the guest account? Samba is a little bit like pissing in the dark sometimes Ahh well.
    Last edited by risegeek (2011-02-17 01:46:56)

  • "Windows Backup cannot read the backup destination" when trying to backup to Backup Once to Samba share on NAS

    Environment:
    Windows Server 2012 R2 Essentials running in VirtualBox in a Windows 7 host. Networking is configured and works fine.
    Background:
    My only backup needs are to copy the contents of two folders to a NAS folder every day at 2 AM.
    I configured a backup schedule in Windows Server Backup (wbadmin) to a network location which is hosted as a Samba share on a Synology NAS.
    For authentication, I created a backup user which has the same username and password as a user on the Samba share, with permission to read and write the backup folder. I added this user to the Backup Operators group.
    Problem:
    When I try to run the Backup Once operation to test my backup, I get the following error message:
    "Windows Backup cannot read the backup destination."
    What I've tried:
    I verified that the location is directly accessible in Windows by copying and pasting the address from the Windows Server Backup destination into explorer. Providing the backup user credentials opened the location and creating/reading files worked fine.
    Adding the backup user to the Administrators group did not have an effect.
    Update 2014-02-18
    I checked the backup destination and was surprised to find that the scheduled backup actually completes successfully.
    However, Backup Once always results in the above error message.
    So the problem is confined to the "Backup Once" operation.

    Vssadmin list providers
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001-2013 Microsoft Corp.
    Provider name: 'Microsoft File Share Shadow Copy provider'
       Provider type: Fileshare
       Provider Id: {89300202-3cec-4981-9171-19f59559e0f2}
       Version: 1.0.0.1
    Provider name: 'Microsoft Software Shadow Copy provider 1.0'
       Provider type: System
       Provider Id: {b5946137-7b9f-4925-af80-51abd60b20d5}
       Version: 1.0.0.7
    Vssadmin list shadows
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001-2013 Microsoft Corp.
    Contents of shadow copy set ID: {5636adcf-668c-4761-9f10-93475904c341}
       Contained 1 shadow copies at creation time: 2/19/2014 7:00:00 AM
          Shadow Copy ID: {4ca86ed5-9da5-49ca-8591-bf56ebd43486}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {aa265dab-feaa-49ed-9b0e-7ed39ab7f9d6}
       Contained 1 shadow copies at creation time: 2/19/2014 2:00:00 PM
          Shadow Copy ID: {653a4fa5-4d37-4ea4-9d2a-5710b48cde09}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy2
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {9180a420-a6bd-490d-85da-8b81231502b9}
       Contained 1 shadow copies at creation time: 2/20/2014 7:00:00 AM
          Shadow Copy ID: {871d10ee-9034-4269-b841-4aeee9570464}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy3
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {d83afc4e-317f-488c-89d5-a0e65844b93e}
       Contained 1 shadow copies at creation time: 2/20/2014 2:00:00 PM
          Shadow Copy ID: {f6fbb4ff-bac8-4a82-88e8-dffba8656424}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy4
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {3774a3f2-cd36-4f36-9667-4f96c0dbe0b3}
       Contained 1 shadow copies at creation time: 2/21/2014 7:00:00 AM
          Shadow Copy ID: {91d6c61a-8b39-48dd-811d-e0dcf593c967}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {99be106c-a96d-4488-a9ae-6e92452393ee}
       Contained 1 shadow copies at creation time: 2/21/2014 2:00:00 PM
          Shadow Copy ID: {5bd57dff-0591-4b0f-9ee8-1b8857f59e54}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy6
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {299f4ca8-bffa-47b7-9bb2-12358e0282ce}
       Contained 1 shadow copies at creation time: 2/22/2014 7:00:00 AM
          Shadow Copy ID: {90b732ae-7ea8-4457-8a6d-84983e27b120}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy7
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {97225977-6687-4538-b627-1b33985c9ac1}
       Contained 1 shadow copies at creation time: 2/22/2014 2:00:00 PM
          Shadow Copy ID: {128d7818-ce91-4d35-ad9e-577856d17374}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy8
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {b196f043-a073-46e4-baa4-2eb99969cc7e}
       Contained 1 shadow copies at creation time: 2/23/2014 7:00:00 AM
          Shadow Copy ID: {931780f6-be5e-4ad9-9f4d-151ffd6b1942}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy9
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {f24e1101-8505-450c-a802-8ba65e46d8d5}
       Contained 1 shadow copies at creation time: 2/23/2014 2:00:00 PM
          Shadow Copy ID: {815dff7e-92df-449e-a1ed-eb8e5fa3baeb}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy10
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {d4213f80-6b73-418c-af73-b704007511ed}
       Contained 1 shadow copies at creation time: 2/24/2014 7:00:00 AM
          Shadow Copy ID: {e3bd9313-e7a3-4972-a138-e298e6c12eff}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy11
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {1587431c-1ca9-4276-8d33-dd13ae58a122}
       Contained 1 shadow copies at creation time: 2/24/2014 2:00:00 PM
          Shadow Copy ID: {e4c3e5b4-0314-4496-9215-369b3c973b25}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy12
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {b79771fa-666c-40ff-98c2-80580c1fdf85}
       Contained 1 shadow copies at creation time: 2/25/2014 2:00:01 PM
          Shadow Copy ID: {9d23803a-5d4e-4222-a389-ddd1e17b0472}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy13
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {5b472176-33e7-447f-aebf-da630cebe01d}
       Contained 1 shadow copies at creation time: 2/26/2014 7:00:01 AM
          Shadow Copy ID: {0d5a5d90-c9e7-42c0-ab0b-accf0d7d7304}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy14
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {879a32b4-48f3-434f-8d92-7202a9a25076}
       Contained 1 shadow copies at creation time: 2/26/2014 2:00:00 PM
          Shadow Copy ID: {887d8ff9-db0d-4eaa-9a75-df60015c2bb7}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy15
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {fc8d7e9e-c4d4-4010-b603-d88b99435338}
       Contained 1 shadow copies at creation time: 2/27/2014 7:00:00 AM
          Shadow Copy ID: {69ca835d-0130-4435-8621-83a716f1b621}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy16
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {7cebbd3b-c599-4800-91f5-da94ca038a42}
       Contained 1 shadow copies at creation time: 2/27/2014 2:00:00 PM
          Shadow Copy ID: {57320a15-e046-4128-8305-661984910fff}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy17
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Contents of shadow copy set ID: {702d2ca4-3f60-4d64-8578-50d9dd587ba6}
       Contained 1 shadow copies at creation time: 3/12/2014 6:00:01 AM
          Shadow Copy ID: {41c62c15-ad88-4191-8cc8-c2814da9a2f4}
             Original Volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
             Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy18
             Originating Machine: seattle-vm-win.GENE.local
             Service Machine: seattle-vm-win.GENE.local
             Provider: 'Microsoft Software Shadow Copy provider 1.0'
             Type: ClientAccessible
             Attributes: Persistent, Client-accessible, No auto release, No writers, Differential
    Vssadmin list shadowstorage
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001-2013 Microsoft Corp.
    Shadow Copy Storage association
       For volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
       Shadow Copy Storage volume: (C:)\\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
       Used Shadow Copy Storage space: 3.47 GB (8%)
       Allocated Shadow Copy Storage space: 3.73 GB (9%)
       Maximum Shadow Copy Storage space: 3.96 GB (10%)
    Vssadmin list volumes
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001-2013 Microsoft Corp.
    Volume path: \\?\Volume{ca9edd16-98f7-11e3-80b0-806e6f6e6963}\
        Volume name: \\?\Volume{ca9edd16-98f7-11e3-80b0-806e6f6e6963}\
    Volume path: C:\
        Volume name: \\?\Volume{ca9edd17-98f7-11e3-80b0-806e6f6e6963}\
    Vssadmin list writers
    vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
    (C) Copyright 2001-2013 Microsoft Corp.
    Writer name: 'Task Scheduler Writer'
       Writer Id: {d61d61c8-d73a-4eee-8cdd-f6f9786b7124}
       Writer Instance Id: {1bddd48e-5052-49db-9b07-b96f96727e6b}
       State: [1] Stable
       Last error: No error
    Writer name: 'VSS Metadata Store Writer'
       Writer Id: {75dfb225-e2e4-4d39-9ac9-ffaff65ddf06}
       Writer Instance Id: {088e7a7d-09a8-4cc6-a609-ad90e75ddc93}
       State: [1] Stable
       Last error: No error
    Writer name: 'Performance Counters Writer'
       Writer Id: {0bada1de-01a9-4625-8278-69e735f39dd2}
       Writer Instance Id: {f0086dda-9efc-47c5-8eb6-a944c3d09381}
       State: [1] Stable
       Last error: No error
    Writer name: 'SqlServerWriter'
       Writer Id: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}
       Writer Instance Id: {004b7983-7f00-4abe-81de-36729db8355f}
       State: [1] Stable
       Last error: No error
    Writer name: 'ASR Writer'
       Writer Id: {be000cbe-11fe-4426-9c58-531aa6355fc4}
       Writer Instance Id: {73682cd4-c469-4d00-b9b9-4b64f08af879}
       State: [1] Stable
       Last error: No error
    Writer name: 'COM+ REGDB Writer'
       Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f}
       Writer Instance Id: {652f9dce-637f-447f-bbde-a16dc119e409}
       State: [1] Stable
       Last error: No error
    Writer name: 'Shadow Copy Optimization Writer'
       Writer Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
       Writer Instance Id: {cd1dab9c-a9cb-4783-aff3-32fa2f9e625f}
       State: [1] Stable
       Last error: No error
    Writer name: 'Registry Writer'
       Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485}
       Writer Instance Id: {ba4c4bc6-9081-422a-9ed1-647c0eacfe8d}
       State: [1] Stable
       Last error: No error
    Writer name: 'DFS Replication service writer'
       Writer Id: {2707761b-2324-473d-88eb-eb007a359533}
       Writer Instance Id: {4e4ca3e1-c62a-474f-a925-fadc1a534188}
       State: [1] Stable
       Last error: No error
    Writer name: 'Windows Server Storage VSS Writer'
       Writer Id: {e376ebb9-f0fe-4e1a-adaa-bfbdaf3ab488}
       Writer Instance Id: {044b493b-829f-4bcd-9a8f-6d96a9d38daa}
       State: [1] Stable
       Last error: No error
    Writer name: 'WMI Writer'
       Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
       Writer Instance Id: {72c13a8c-4950-4abb-961a-2e0f612ea9b6}
       State: [1] Stable
       Last error: No error
    Writer name: 'System Writer'
       Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
       Writer Instance Id: {da138ec1-764b-4179-b2f4-70e94ac22276}
       State: [1] Stable
       Last error: No error
    Writer name: 'MSSearch Service Writer'
       Writer Id: {cd3f2362-8bef-46c7-9181-d62844cdc0b2}
       Writer Instance Id: {dd729383-00a9-484c-9abc-3de903f5347c}
       State: [1] Stable
       Last error: No error
    Writer name: 'IIS Config Writer'
       Writer Id: {2a40fd15-dfca-4aa8-a654-1f8c654603f6}
       Writer Instance Id: {a7c0287b-0e85-4d37-9649-d79928def55e}
       State: [1] Stable
       Last error: No error
    Writer name: 'NTDS'
       Writer Id: {b2014c9e-8711-4c5c-a5a9-3cf384484757}
       Writer Instance Id: {aca73317-e7ce-40a0-aac2-548fd6a987c3}
       State: [1] Stable
       Last error: No error
    Writer name: 'IIS Metabase Writer'
       Writer Id: {59b1f0cf-90ef-465f-9609-6ca8b2938366}
       Writer Instance Id: {d7753d0e-6b3b-4af0-95ea-9aa6733071f4}
       State: [1] Stable
       Last error: No error
    Writer name: 'Certificate Authority'
       Writer Id: {6f5b15b5-da24-4d88-b737-63063e3a1f86}
       Writer Instance Id: {5971db7f-8508-438c-8f62-736f1b07750f}
       State: [1] Stable
       Last error: No error

  • [Solved] Trouble Viewing Samba Shares

    I'm using KDE 4.6 on a x64 Arch system with all of the latest updates. I am trying to access Windows 7 shared media. If I navigate to the address in dolphin the shares are there and accessible. I'm using smb4k in an effort to mount the shares transparently for use with Banshee and other non KIO apps. The odd thing is is that smb4k sees the machine, but cannot list the shares. I'm using a default Samba config file and setup smbnetfs via instructions in the wiki. Fuse is listed in the modules array of rc.conf and smbnetfs is listed in DAEMONS. Output of smbtree:
    dryce@myhost ~]$ smbtree
    Enter dryce's password:
    WORKGROUP
    \\WINDOWSMACHINE1
    cli_start_connection: failed to connect to WINDOWSMACHINE1<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
    Output of smbclient -L 192.168xxx
    [dryce@myhost ~]$ smbclient -L 192.168.xxx
    Enter dryce's password:
    Domain=[WINDOWSMACHINE1] OS=[Windows 7 Home Premium 7601 Service Pack 1] Server=[Windows 7 Home Premium 6.1]
    Sharename Type Comment
    ADMIN$ Disk Remote Admin
    C$ Disk Default share
    E$ Disk Default share
    HP Officejet 6300 series Printer HP Officejet 6300 series
    IPC$ IPC Remote IPC
    iTunes Music Disk
    Movies Disk
    Music Disk
    print$ Disk Printer Drivers
    Tivo Programs Disk
    Users Disk
    session request to 192.168.1.102 failed (Called name not present)
    session request to 192 failed (Called name not present)
    session request to *SMBSERVER failed (Called name not present)
    NetBIOS over TCP disabled -- no workgroup available
    This configuration works fine in gnome, so I don't think there is a problem with the Windows 7 machine, but something incorrectly configured within KDE. NetBios is enabled despite what it says there. I'm sure I've left something out, please feel free to let me know. Any ideas here would be appreciated. Thanks
    Last edited by dryce (2011-03-29 20:19:21)

    After fighting with this for awhile, I finally got it working. The smbtree error was apparently being caused by OpenDNS and their typo correction section. I disabled this entirely. The error message went away and printed network shares normally. The second error:
    session request to 192.168.xxx failed (Called name not present)
    session request to 192 failed (Called name not present)
    session request to *SMBSERVER failed (Called name not present)
    NetBIOS over TCP disabled -- no workgroup available
    still happens and I have no idea why. I was able to get the shares to appear and become accessible in smb4k by enabling kdewallet first. Then going into configure smb4k and selecting "Master Browser requires authentication to return the browse list" in Network and in Super User selecting "Use super user privileges to mount and unmount shares". The shares don't appear under samba shares in KDE's Network location so maybe that's where the above error comes in.

  • Yosemite 10.10.1: Finder/CIFS mount problem: wrong folder count/folders not shown @samba shares

    Hello to all,
    we have several MacBook Pro (15" MBP Retina 2012/13"MBP Retina 2014) running. After upgrading to Yosemite 10.10.1 we had one nightmare after the other.
    Most problems could be solved with 3rd party software upgrades but there are several problems with the operating system itselve which can not really  be called a professional productive system at the moment...
    Ok., one thing after the other...here is one of our biggest problems:
    After upgrading from Mavericks or Mountain Lion to Yosemite 10.10.1 the CIFS/SMB mounts to our samba 3.x servers, running on Ubuntu Linux LTS 12.04 makes trouble. We could mount the server shares but after browsing with the Finder the beach ball occures and the Finder hangs forever. Sometimes we could not refresh the Finder, killing the process ended in a complete hang-up of the system which ended in a switch off death blow. This is not amusing because we have 30Tb of customer data there, which has to be worked out.
    We heard about the SMB3 protocol which will be used per default in Yosemite and so we decided after some testings to upgrate our Ubuntu servers to the latest LSF 14.04. release with samba 4.1.6 installed. There was no message from Apple for this SMB protocol release upgrade, never heard something related to Yosemite (Why?).
    Ok, after these server upgrades and disabling most of the Spotlight functions the performance to the CIFS shares was a little bit better as before but now we have another problem with the Finder...if you browse to the shares there are folders missing which have lots of files in it. For example there is a folder with 60 subfolders and 3562 files on the first level in it, the Finder shows 220 files and 15 folders. The Terminal shows a different count with "find . -maxdepth 1 -type d | wc -l" or "find . -maxdepth 1 -type f | wc -l" but there is also a difference to the original file and folder count. It doesn`t matter if the clients are connected via WiFi or Gigabit Ethernet. We have no access problems. We have the same behavior if we set the files and folders to 0777 permissions on the servers. The deletion of the preferences files of the users on the MacBooks does not solve the problem. If we use the "Go To Folder" option and type the path to a folder which is not shown in the Finder you get an result or not. But it is also possible that the result is not correct and there are also still files or subfolders missing.
    In my opinion this is a timeout problem and a "special SMB3 protocol interpretation" which is buggy. We have one hint found in /var/log/system.log:
    "Jan 23 14:35:49 wsosx33.clients.getcom.de KernelEventAgent[69]: tid 54485244 type 'smbfs', mounted on '/Volumes/customersdata2015', from '//x144067:@srvlxp013.servers.getcom.de/customersdata2015', not responding"
    We had no problems with Mavericks at all, we still have no problems with Windows 7 Pro/Ultimate, Windows 2008R2 (native or virtual) or Linux Mint 17/17.1 clients, neither with samba 3.x nor with our actual environment and different newer samba releases.
    We believe that this is a big bug in Yosemite, but we cannot go back to Mavericks because of incompatible TimeCapsule backups. Our workarround at the moment is that we have installed Linux Mint on our MacBooks to get 80% of our daily jobs done, rest has to be done with Windows 7 installed over virtualbox @Linux.
    We have no clue at the moment how to solve this problem, the samba logs do not give any hint. The access from other operating systems is perfect and very fast, but not with Yosemite. We checked different tips found in the internet but nothing helped.
    Does anybody has another idea to get Yosemite working or should we keep Linux Mint until Apple will provide a CIFS/SMB patch and going on with our workaround solution, which is productive at the moment ??? Our staff is not amused and wants one solution and not this workaround with two operating system. We have to decide wether we wait until Apple will get this fixed or we have to switch to Microsoft Windows (which is a No Go for me, but I will not be asked...).
    Thanks in advance
    C.

    Hi William,
    thank you for your response.
    As you can read in my post I talked about CIFS/SMB.
    It makes no difference if we mount the share over CIFS or SMB.
    Folders with lots of files will not be shown even if we use SMB3 or an older protocol.
    As mentioned I believe this is a timeout problem.
    Does anybody know how the CIFS/SMB timeout setting in Yosemite could be changed?
    Kind regards
    C.

  • Finder lock ups due to samba shares being invalidated by changing network

    I often leave my macbook online for a long time unattended, for simplicity I tend to plug it into its power lead, and also connect it up to my gigabit network. I know i've set the priority in my connections to prefer the wired connection over wireless but just to keep things simple i disable airport so i can be sure that i will be connected via gigabit.
    I'll then go in and map a network drive from one of my PCs on the lan, this is mounted and available.
    Sometime in the future i'll go mobile again, like i just did today. Disconnecting power and gigabit ethernet, i re-enable airport. After a short while its all good to go.. I then start using the internet connection. All is fine.
    Then finally i spot that my samba drive is still mapped, i've had trouble selecting this drive to use it, but sadly also you get real trouble by just trying to eject the mount. Doing so and nothing happens.. after 10-20 seconds everything is frozen, including the animated dock, and top toolbar, and you are presented with the spinning wheel of activity.
    applealtesc does NOT bring up the force close dialog, and eventually i was forced to force a shutdown.. apple power button isn't it? I had the power button held down for a long time.
    Generally i find the mounting samba drives a bit of a pain in the finder but i can put up with it. Samba shares on windows are a nightmare but they rarely bring down the whole system when a connection has been broken.. i'd love it if mac OS would time out the samba share and just give up, rather than hanging in the way it does do.
    Obviously i'm accessing my LAN through a different interface and IP address than i was when i set up the connection. I am not sure if you have a similar problem as described if you just disconnect from the network and have no net connection at all.. not sure what it would do with a share in this way.
    Is this worth logging as an actual bug? anyone got any suggestions to fix it?

    Ok, no luck yet. Maybe I can ask another question directly related to this issue. I am trying to find the cause of this and I am wondering if there is a brief dropout in the connection to the NAS. By brief, I mean really brief. The NAS is connected via a Homeplug network connection (network via the homes power points) and maybe for a very brief period interferrence on the lines dropped the AFP connection.
    Is it normal that it is then impossible for AFP to reconnect, even when the NAS is clearly back on the network?
    Any drop will have to be very brief as I can always stream music without issues, and no drop or slow down has caused buffering issues.
    But, I don't recall getting this issue when directly connected to the iMac via a short ethernet cable for the initial Time Machine backups that take over a day.
    What I don't understand though, is if the connection did briefly drop and loose the AFP link, why can AFP no longer connect back? Why do I need to sleep the iMac and then wake it again.
    HTTP connections to the NAS never seem to drop, and when I can't recconnect via AFP, I can always connect via HTTP? Is this expected of the AFP protocol? Or is it an unexpected issue?

  • How do I add myself to the "staff" group for a samba share?

    Hi all,
    I've been struggling with this for a few hours now. I searched but could not find the answer (neither here nor google).
    I am trying to set up a samba share on my raspberry pi and have it accessible by all other computer on my local network (just a home network). I want it set up so that when I access the share via my linux desktop I have read/write privileges, but when other users (my family, variety of linux and windows machines) access it they have read-only access and do not have to enter a password. I am not sharing any printers. The raspberry pi and my desktop are both running arch.
    I am currently able to mount the share, but I only have read-only access. In the smb.conf file it has a pre-configured section for A publicly accessible directory, but read only, except for people in the "staff" group, which is the section I have tried to use. My user name on my desktop is 'gav', and I have created a user with the same name on the pi. On both the pi and the desktop I have added 'gav' to the staff group (using groupadd and usermod -aG).
    On Windows machines: a Windows 7 desktop found the share and prompted for a password, I entered my password (as 'gav') and could access files, but read-only. A windows 8 laptop couldn't see it at all.
    Here are some outputs of some things:
    testparm (on the pi)
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    params.c:Parameter() - Ignoring badly formed line in configuration file: i
    Processing section "[sharedfiles]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    [global]
    workgroup = PISERVER
    server string = Shared Media
    log file = /var/log/samba/%m.log
    max log size = 50
    dns proxy = No
    idmap config * : backend = tdb
    [sharedfiles]
    comment = Proper share
    path = /mnt/sambashare
    write list = @staff
    guest ok = Yes
    I'm not sure which is the 'badly formed line', any idea how I find out?
    smbtree (on desktop)
    WORKGROUP
    PISERVER
    \\PI Shared Media
    \\PI\sharedfiles Proper share
    \\PI\IPC$ IPC Service (Shared Media)
    ASUSROUTER
    smbclient -L PI -U% (on desktop)
    Domain=[PISERVER] OS=[Unix] Server=[Samba 4.1.0]
    Sharename Type Comment
    IPC$ IPC IPC Service (Shared Media)
    sharedfiles Disk Proper share
    Domain=[PISERVER] OS=[Unix] Server=[Samba 4.1.0]
    Server Comment
    PI Shared Media
    Workgroup Master
    ASUSROUTER DSL-N55U
    PISERVER PI
    WORKGROUP SHODAN
    command I entered to mount share (as root)
    mount -t cifs //PI/sharedfiles /media/pi -o user=gav,password=pass,workgroup=PISERVER,ip=192.168.1.199
    Any help would be appreciated, please let me know if there are any more outputs I can provide.
    Thank you for reading
    Last edited by gav989 (2013-11-10 13:34:46)

    Consider using sshfs to mount your Pi from your Linux boxes.  It's much easier to configure and manage than samba.  It sounds like you already have your Windows machines mounting your Pi so Samba is doing its job in that respect.
    More info on sshfs in the Wiki: https://wiki.archlinux.org/index.php/Sshfs
    To help get you off the dime, here's a modified line from my fstab that I use to mount my Pi with:
    gav@PI:/mnt/backup /mnt/rpi/backup fuse.sshfs rw,relatime,user_id=0,group_id=0,allow_other 0 0
    Subsitute my mount points with yours.
    For a password-less mount:
         ssh-copy-id gav@PI
    after you've set up ssh and generated some keys on your client box.
    Here are some relevant lines from the smb.conf file on my Pi that I use for my one Windows box in the house that might help you with your write permissions:
       security = user
      hosts allow = 192.168.1.0/255.255.255.0
      guest account = gav
    ; And my share setup:
    [rpi]
       comment = Public Stuff
       path = /mnt
       writable = yes
    ;   printable = no
    ;   write list = @krb
    [torrent_dl]
       path = /mnt/video/torrent_dl
       writable = yes
       create mask = 0770
       directory mask = 0770
       guest ok = Yes
       case sensitive = No
       read only = No
    Hope this helps.

  • Samba shares no longer visible after migration to systemd

    EDIT: Note the file server is CLI only.
    I upgraded my file server to systemd about a week ago and have yet to get the Samba share visible from other devices within my network.  Eveything worked fine under initscripts and other than system upgrades the only thing that has changed about the system is the migration to systemd and addition of the netcfg package.  I can connect manually by typing "smb://<IP>" in a file manager address field but when trying to access the Share via browsing on two different WD media players, a Xoom tablet, typing "smb://" in the address bar of a basic file manager like Thunar or PCManFM or using browsing the Network or Samba Shares links in the Network place from Dolphin the share just doesn't show up.
    The fact that I can access the Share directly, it's just not visible when browsing, makes me think samba is working properly but I'm not sure how to further diagnose the issue and I'd really like to solve the problem and learn something rather than just load up a previous image of the PC before the systemd migration.
    Commands from client
    my /etc/hosts...
    cat /etc/hosts
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost dads-pc
    192.168.10.131 dads-pc.HOMESERVER dads-pc
    192.168.10.100 Serverbox.HOMESERVER Serverbox
    Master Browser search, this does look odd, I don't use it on any machine so where the heck did the .255 at the end of the IP address come from? 
    $ nmblookup -M HOMESERVER
    querying HOMESERVER on 192.168.10.255
    name_query failed to find name HOMESERVER#1d
    I can sign in fine...
    $ smbclient -L Serverbox
    Enter dad's password:
    Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
    Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Sharename Type Comment
    IPC$ IPC IPC Service (Samba Server)
    Server Disk The Family Network Share Files
    ParentalMovies Disk Movie folders for Mom and Dad
    Movies Disk Family Movie folders
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Server Comment
    SERVERBOX Samba Server
    Workgroup Master
    HOMESERVER SERVERBOX
    I can sign in as one of the media players fine...
    $ smbclient -L Serverbox -U lr_mediaplayer
    Enter lr_mediaplayer's password:
    Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
    Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Sharename Type Comment
    IPC$ IPC IPC Service (Samba Server)
    Server Disk The Family Network Share Files
    ParentalMovies Disk Movie folders for Mom and Dad
    Movies Disk Family Movie folders
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Server Comment
    SERVERBOX Samba Server
    Workgroup Master
    HOMESERVER SERVERBOX
    Commands from Server
    Both smbd and nmbd services appear functional...
    $ systemctl status smbd nmbd
    smbd.service - Samba SMB/CIFS server
    Loaded: loaded (/etc/systemd/system/smbd.service; enabled)
    Active: active (running) since Mon, 2012-11-19 17:48:07 CST; 2h 9min ago
    Main PID: 534 (smbd)
    CGroup: name=systemd:/system/smbd.service
    ├ 534 /usr/sbin/smbd -F
    ├ 551 /usr/sbin/smbd -F
    └ 559 /usr/sbin/smbd -F
    nmbd.service - Samba NetBIOS name server
    Loaded: loaded (/etc/systemd/system/nmbd.service; enabled)
    Active: active (running) since Mon, 2012-11-19 17:48:07 CST; 2h 9min ago
    Main PID: 536 (nmbd)
    CGroup: name=systemd:/system/nmbd.service
    └ 536 /usr/sbin/nmbd -F
    The global portion of my /etc/samba/smb.conf file...
    [global]
    workgroup = HOMESERVER
    server string = Samba Server
    log file = /var/log/samba/%m.log
    max log size = 50
    dns proxy = No
    valid users = dad, lisa, administrator,lr_mediaplayer, xoom, br_mediaplayer
    read list = dad, lisa, administrator, lr_mediaplayer, xoom, br_mediaplayer
    write list = dad, lisa, administrator
    load printers = no
    write cache size = 262144
    large readwrite = yes
    # These next lines have been added after systemd conversion based on web research, none of which has helped.
    log level = 10
    name resolve order = host bcast lmhosts wins
    interfaces = eth0 192.168.10.100/19
    preferred master = yes
    Testing of the /etc/samba/smb.conf file, no errors ...
    $ testparm smb.conf
    Load smb config files from smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[Movies]"
    Processing section "[ParentalMovies]"
    Processing section "[Server]"
    Loaded services file OK.
    WARNING: You have some share names that are longer than 12 characters.
    These may not be accessible to some older clients.
    (Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
    Server role: ROLE_STANDALONE
    My network config file for [email protected]...
    $ cat /etc/network.d/eth0
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='eth0'
    IP='static'
    ADDR='192.168.10.100'
    #ROUTES=('192.168.0.0/24 via 192.168.1.2')
    GATEWAY='192.168.10.1'
    DNS=('76.85.229.110' '76.85.229.111')
    Master Browser search and again with the rogue .255 ending for the IP address being broadcast.
    $ nmblookup -M HOMESERVER
    INFO: Current debug levels:
    all: 10
    tdb: 10
    printdrivers: 10
    lanman: 10
    smb: 10
    rpc_parse: 10
    rpc_srv: 10
    rpc_cli: 10
    passdb: 10
    sam: 10
    auth: 10
    winbind: 10
    vfs: 10
    idmap: 10
    quota: 10
    acls: 10
    locking: 10
    msdfs: 10
    dmapi: 10
    registry: 10
    doing parameter name resolve order = host bcast lmhosts wins
    doing parameter log file = /var/log/samba/%m.log
    doing parameter max log size = 50
    doing parameter dns proxy = No
    doing parameter valid users = dad, lisa, administrator,lr_mediaplayer, xoom, br_mediaplayer
    doing parameter read list = dad, lisa, administrator, lr_mediaplayer, xoom, br_mediaplayer
    doing parameter write list = dad, lisa, administrator
    doing parameter load printers = no
    doing parameter write cache size = 262144
    doing parameter large readwrite = yes
    doing parameter preferred master = yes
    pm_process() returned Yes
    lp_servicenumber: couldn't find homes
    set_server_role: role = ROLE_STANDALONE
    Substituting charset 'UTF-8' for LOCALE
    added interface eth0 ip=fe80::3285:a9ff:fe8e:90f7%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
    added interface eth0 ip=192.168.10.100 bcast=192.168.10.255 netmask=255.255.255.0
    bind succeeded on port 0
    Socket options:
    SO_KEEPALIVE = 0
    SO_REUSEADDR = 1
    SO_BROADCAST = 1
    Could not test socket option TCP_NODELAY.
    Could not test socket option TCP_KEEPCNT.
    Could not test socket option TCP_KEEPIDLE.
    Could not test socket option TCP_KEEPINTVL.
    IPTOS_LOWDELAY = 0
    IPTOS_THROUGHPUT = 0
    SO_SNDBUF = 212992
    SO_RCVBUF = 212992
    SO_SNDLOWAT = 1
    SO_RCVLOWAT = 1
    SO_SNDTIMEO = 0
    SO_RCVTIMEO = 0
    Could not test socket option TCP_QUICKACK.
    Socket opened.
    lang_tdb_init: /usr/lib/samba/en_US.UTF-8.msg: No such file or directory
    querying HOMESERVER on 192.168.10.255
    bind succeeded on port 0
    Socket options:
    SO_KEEPALIVE = 0
    SO_REUSEADDR = 1
    SO_BROADCAST = 1
    Could not test socket option TCP_NODELAY.
    Could not test socket option TCP_KEEPCNT.
    Could not test socket option TCP_KEEPIDLE.
    Could not test socket option TCP_KEEPINTVL.
    IPTOS_LOWDELAY = 0
    IPTOS_THROUGHPUT = 0
    SO_SNDBUF = 212992
    SO_RCVBUF = 212992
    SO_SNDLOWAT = 1
    SO_RCVLOWAT = 1
    SO_SNDTIMEO = 0
    SO_RCVTIMEO = 0
    Could not test socket option TCP_QUICKACK.
    parse_nmb: packet id = 9235
    nmb packet from 192.168.10.100(35072) header: id=9235 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=HOMESERVER<1d> rr_type=32 rr_class=1 ttl=259200
    answers 0 char .....d hex 0000C0A80A64
    Got a positive name query response from 192.168.10.100 ( 192.168.10.100 )
    192.168.10.100 HOMESERVER<1d>
    Thank you.
    Last edited by imatechguy (2012-11-20 03:16:39)

    ChojinDSL wrote:Do you have a firewall running on that server?
    Are your clients also using systemd?
    Yes I do have a firewall, iptables, and it's the same configuration from before the migration to systemd.  Also note that I can access the shares when explicitly defining the path whether that's in a File Manager, cli or other so access isn't being blocked.  For lack of a better explanation the whole thing gives the appearance that although the Share is active it's just not broadcasting it's existence like it should be.
    I have two PC's, both Arch, one with Openbox and one running KDE that I have migrated to systemd.  Both can access the Share when the path is explicitly defined but don't see it when trying to just browse for the the Share.  I have a Xoom tablet, running Android Jelly Bean, that exhibits the same behavior.  I also have two media players, one an older WD LiveTV Plus model the other a newer WD LiveTV model, neither of which can see the share and browsing is the only option for those devices.  So I've got a pretty good assortment of devices and operating systems that could see the share when browsing previously but can not see the same share by browsing since the migration to systemd on the file server.
    Thank you.

  • Incremental Backup possible with iPhoto '08?

    Hi - I've always run a couple backup schemes for my iMac, and with iPhoto '08 it has become a lot more time intensive as the backup programs are now always replacing the entire iPhoto library in an incremental backup as opposed to incremental backup within the iPhoto folder (which was the case in iPhoto '06). Doesn't seem to be a problem for TimeMachine. But is a major issue for other programs I use (including Mozy, which has to upload 40GB everytime I add a photo to iPhoto, which is crazy!!; as well as syncing the library to an external drive and my MacBook).
    Anyone have any ideas on how to solve this?
    Thanks!!

    Synk Standard does look inside the iPhoto Library package and backs up only those files that are new or have been changed. Most of my libraries can be incrementally backed up in less than 1 minute. My 29,000 file library takes 2.5 minutes, only 16 seconds if I've not rebooted since the last backup and using it's ZeroScan feature.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Incremental backup time query?

    Database size = 270GB
    Time taken for full level 0 backup = 50 minutes (Day 1)
    Time taken for cumulative level 1 backup = 70 minutes (Day 2)
    Time taken for differental level 1 backup = 55 minutes (Day 3)
    My question is how come the incremental backup is taking more time than the full backup time?
    Please advice.
    Sami Malik
    [email protected]

    Sami Malik wrote:
    Yes incremental backup is taken on the same time when there is heavy load on the system. For sure is this the reason? No, not for sure. We haven't seen enough info to say for sure, but given what we have been shown, it is a reasonable first guess. To know for sure, you need to do some actual performance analysis during both full and incremental backups and compare the two. STATSPACK is always a good place to start.
    I will try the incremental backup at night when there is nobody connected.
    Even though online backups <i>can</i> be taken anytime, it's always a good idea to schedule them during low-usage times.
    But one more question when in case if there is a 24/7 system, then its no use of taking incremental backup right?Why would you think that? If your system is 24/7, that's even <i><b>more</b></i> reason to be taking incrementals. If you do have to perform a recovery, having incrementals will shorten your recovery time, vs. haveing to apply all archived redo back to the last full backup.
    Also, you should be taking regular full backups as well. Most people take a full backup weekly, and an incremental on the other 6 days of the week.
    As an additional thought .... while it is a curiosity that that your incremental took longer than the full and much could be learned by chasing it down, you always have to ask "is this a problem that needs to be solved?" If you schedule all backups (full and incremental) during low-use times, and the users do not notice any impact, do you really care if the incremental took longer than the full? On the other hand, it may <i>not</i> be a problem that "needs" to be solved, but running it down may reveal other problems that are impacting or have real potential to impact the business, and <i>should</i> be solved.

  • 9i to 10g Incremental Backup

    I have an Oracle 9i database which I need to do incremental backup into my 10g database in the different server. What is the best way to do this?
    any help would be greatly appreciated

    I'm not sure I understand what you're after.
    "Backup" generally means a physical backup-- RMAN or user managed backups. But that doesn't sound like what you're after. You don't restore physical backups into another database and the restored backup will always be the same Oracle version as the source database.
    "Backup" might also refer to a logical backup taken via export (classic or DataPump). But you cannot (functionally and practically) generate an incremental export. You could import an export generated from a 9i database into a 10g database.
    Perhaps you mean "replication" rather than "backup". If that is the case, can you explain the business problem you're trying to solve? There are a variety of ways to replicate data from one database to another-- Streams, materialized views, CDC, DataGuard, etc.-- depending on the problem you're trying to solve.
    Justin

  • Incremental Backup keep skipping saving pst files

    Hi,
    Client company uses MS-outlook 2007 and pst files are saved on windows esssentilas 2012 R2  server(ex: h:\outlook\outlook.pst)  for backup purposes. We use incremental backup on the server. For some reason the initial full backup runs fine, but
    the subsequent backups keep on skipping backing up the pst files as if they were unchanged. The pst files are changed daily and the outlook program is closed before the backup.  I used so far Synctoy and backup assist and both do the same .
    Thanks for your help

    Hi,
    Since it's Incremental Backup, I suggest you make sure the .pst file has actually been "modified".
    What I mean is, Incremental Backup may consider the file as modified based on the modified time. If the .pst file's last modified timestamp hasn't been changed, the Incremental Backup will consider the file has not been changed and will skip the backup.
    By the way, also a reminder, we don't recommend network share hosting of .pst as it always brings unexpected issues.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Mounting samba share starts avahi, ssh and sftp at client

    The problem is at the client. When i mount a samba share (with # mount), avahi is started, which starts ssh and sftp. This is wrong on many levels.
    Not sure how long this has been going on, someone else already asked this on stackexchange on 11.2.15, but didn't get any answers.
    Journal output immediatly after mounting (hostname, ip etc. removed):
    Mär 18 01:35:51 hostname dbus[434]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
    Mär 18 01:35:51 hostname systemd[1]: Cannot add dependency job for unit boot.automount, ignoring: Unit boot.automount is masked.
    Mär 18 01:35:51 hostname systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    Mär 18 01:35:51 hostname systemd[1]: Starting Avahi mDNS/DNS-SD Stack Activation Socket.
    Mär 18 01:35:51 hostname systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully dropped root privileges.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: avahi-daemon 0.6.31 starting up.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
    Mär 18 01:35:51 hostname dbus[434]: [system] Successfully activated service 'org.freedesktop.Avahi'
    Mär 18 01:35:51 hostname systemd[1]: Started Avahi mDNS/DNS-SD Stack.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully called chroot().
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully dropped remaining capabilities.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Loading service file /services/sftp-ssh.service.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Loading service file /services/ssh.service.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Joining mDNS multicast group on interface enp1234.IPv4 with address myip.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: New relevant interface enp1234.IPv4 for mDNS.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Network interface enumeration completed.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Registering new address record for myip on enp1234.IPv4.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Registering HINFO record with values 'X86_64'/'LINUX'.
    Mär 18 01:35:52 hostname avahi-daemon[2583]: Server startup complete. Host name is hostname.local. Local service cookie is 123.
    Mär 18 01:35:53 hostname avahi-daemon[2583]: Service "hostname" (/services/ssh.service) successfully established.
    Mär 18 01:35:53 hostname avahi-daemon[2583]: Service "hostname" (/services/sftp-ssh.service) successfully established.

    Thanks for your answer.
    snakeroot wrote:Are you sure it is actually starting ssh and ssftp or is it just having avahi advertise them as existing?
    I'm not sure if anything is started, the term "Service ssh successfully established" sounds like the ssh serrver is started to me, but it might just be strange wording. What does "advertise as existing" mean?
    From the snippet you quoted, it looks like the latter. Unless you have alread started socket activation for ssh or sftp, whether via systemd *.socket or inetd, I'm not sure it would actually be started.
    I didn't enable anything manually.
    I think you can rm/mv the sftp-ssh.service and ssh.service files /etc/avahi/services/ and prevent those services from being advertised.
    OK thanks for the hint. Nontheless i would rather stop avahi from starting than configuring it.
    Begin rant...
    I'm a bit annoyed that avahi is starting without my permission. Seems like systemd is getting a bit overzealous with starting services. Interestingly this was one of the big problems with upstart, and was supposed to be solved with systemd. I still like systemd.

Maybe you are looking for

  • Xml editor code

    hi all,, i am doing a project of devolping an xml editor.could anyone provide me the code for it. very urgent plzzz....

  • Oracle 10g query rows to column transpose

    In oracle 10g I have table called LoginUser Select * from LoginUser where Day = '01-Dec-2012' will give me the below result Day, Name, Country 1-Dec-12 , John, UK 1-Dec12 , Cate, US 1-Dec-12 , Prakash, India 1-Dec-12 ,Juli, Pak But I want result as b

  • Computer freezes if I don't remove CD immediately after burning playlist

    Hi - I suspect my iTunes application is corrupted somehow. If I don't remove a CD immediately after I burn it, my whole computer freezes. Also, CDs that I burn show up with a mislabeled name after they're burned. How do I go about uninstalling iTunes

  • OCA Certification Inquiry

    Hi, I am preparing to give OCA certification. And this may sound to be a stupid question but I have a doubt. OCA certification as a whole consists of two parts right 1Z0-051 - SQL Fundamentals I 1Z0-052 - Oracle DBA Fundamentals I Are the above two s

  • Implement Transaction on EJB

    Hi! I have a situation - i have more than 2 separate method that will insert and update to different tables in our database. The problem is, all the tables should be successfully commit or rollback. Is it possible to commit all the transaction in dif