Koozali.org: home of the SME Server

ShadowCopy not working?

Offline bcalder01

  • ***
  • 47
  • +0/-0
ShadowCopy not working?
« on: March 03, 2009, 02:34:27 PM »
Hi all,

I have had shadow copy working on my 7.4 server for months, much to my joy (users taking care of themselves!). Recently, my boss asked me to reconfigure the shares. I migrated the old folder contents over to their new ibays - Exec, Management and Personnel (without the @GMT symlinks), then renamed the old folders so that users wouldn't inadvertantly access them. It seems that shadow copy is not working on the new ibays. Thinking that it wasn't enabled, I explicitly enabled SC for them, following the procedure on http://wiki.contribs.org/ShadowCopy. However, looking in the logs & at /home/e-smith/files/.shadow/ (as well as in the ibays themselves), I am not seeing any SC action. Here is the output of /var/log/messages:

================================================================
Mar  3 13:54:31 en-fs01 /sbin/e-smith/db[26502]: /home/e-smith/db/accounts: OLD exec=ibay|CgiBin|disabled|Gid|5064|Group|executive|Name|executive share|PasswordSet|no|PublicAccess|none|Uid|5064|UserAccess|wr-group-rd-group
Mar  3 13:54:31 en-fs01 /sbin/e-smith/db[26502]: /home/e-smith/db/accounts: NEW exec=ibay|CgiBin|disabled|Gid|5064|Group|executive|Name|executive share|PasswordSet|no|PublicAccess|none|ShadowCopy|disabled|Uid|5064|UserAccess|wr-group-rd-group
Mar  3 13:54:39 en-fs01 /sbin/e-smith/db[26504]: /home/e-smith/db/accounts: OLD management=ibay|CgiBin|disabled|Gid|5013|Group|dept_heads|Name|Share for dept heads|PasswordSet|no|PublicAccess|none|Uid|5013|UserAccess|wr-group-rd-group
Mar  3 13:54:39 en-fs01 /sbin/e-smith/db[26504]: /home/e-smith/db/accounts: NEW management=ibay|CgiBin|disabled|Gid|5013|Group|dept_heads|Name|Share for dept heads|PasswordSet|no|PublicAccess|none|ShadowCopy|disabled|Uid|5013|UserAccess|wr-group-rd-group
Mar  3 13:54:50 en-fs01 /sbin/e-smith/db[26505]: /home/e-smith/db/accounts: OLD personnel=ibay|CgiBin|disabled|Gid|5019|Group|all|Name|company-wide share|PasswordSet|no|PublicAccess|none|Uid|5019|UserAccess|wr-group-rd-group
Mar  3 13:54:50 en-fs01 /sbin/e-smith/db[26505]: /home/e-smith/db/accounts: NEW personnel=ibay|CgiBin|disabled|Gid|5019|Group|all|Name|company-wide share|PasswordSet|no|PublicAccess|none|ShadowCopy|disabled|Uid|5019|UserAccess|wr-group-rd-group
Mar  3 13:55:00 en-fs01 upsd[3845]: Connection from 127.0.0.1
Mar  3 13:55:01 en-fs01 upsd[3845]: Client on 127.0.0.1 logged out
Mar  3 13:55:17 en-fs01 /sbin/e-smith/db[26663]: /home/e-smith/db/accounts: OLD personnel=ibay|CgiBin|disabled|Gid|5019|Group|all|Name|company-wide share|PasswordSet|no|PublicAccess|none|ShadowCopy|disabled|Uid|5019|UserAccess|wr-group-rd-group
Mar  3 13:55:17 en-fs01 /sbin/e-smith/db[26663]: /home/e-smith/db/accounts: NEW personnel=ibay|CgiBin|disabled|Gid|5019|Group|all|Name|company-wide share|PasswordSet|no|PublicAccess|none|Uid|5019|UserAccess|wr-group-rd-group
Mar  3 13:55:25 en-fs01 /sbin/e-smith/db[26665]: /home/e-smith/db/accounts: OLD management=ibay|CgiBin|disabled|Gid|5013|Group|dept_heads|Name|Share for dept heads|PasswordSet|no|PublicAccess|none|ShadowCopy|disabled|Uid|5013|UserAccess|wr-group-rd-group
Mar  3 13:55:25 en-fs01 /sbin/e-smith/db[26665]: /home/e-smith/db/accounts: NEW management=ibay|CgiBin|disabled|Gid|5013|Group|dept_heads|Name|Share for dept heads|PasswordSet|no|PublicAccess|none|Uid|5013|UserAccess|wr-group-rd-group
Mar  3 13:55:33 en-fs01 /sbin/e-smith/db[26666]: /home/e-smith/db/accounts: OLD exec=ibay|CgiBin|disabled|Gid|5064|Group|executive|Name|executive share|PasswordSet|no|PublicAccess|none|ShadowCopy|disabled|Uid|5064|UserAccess|wr-group-rd-group
Mar  3 13:55:33 en-fs01 /sbin/e-smith/db[26666]: /home/e-smith/db/accounts: NEW exec=ibay|CgiBin|disabled|Gid|5064|Group|executive|Name|executive share|PasswordSet|no|PublicAccess|none|Uid|5064|UserAccess|wr-group-rd-group
Mar  3 13:55:56 en-fs01 esmith::event[26669]: Processing event: ibay-modify Primary
Mar  3 13:55:56 en-fs01 esmith::event[26669]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/services 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/hosts.deny 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/shells 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/securetty 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/proftpd.conf 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/hosts.allow 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/atalk/AppleVolumes.default 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/httpd/conf/httpd.conf 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/samba/smbusers 
Mar  3 13:55:56 en-fs01 esmith::event[26669]: expanding /etc/samba/smb.conf 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: generic_template_expand=action|Event|ibay-modify|Action|generic_template_expand|Start|1236084956 72264|End|1236084957 541248|Elapsed|1.468984
Mar  3 13:55:57 en-fs01 esmith::event[26669]: Running event handler: /etc/e-smith/events/ibay-modify/S15ibay-modify
Mar  3 13:55:57 en-fs01 esmith::event[26669]: usermod: user Primary does not exist 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: Failed to modify account Primary. 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: S15ibay-modify=action|Event|ibay-modify|Action|S15ibay-modify|Start|1236084957 541472|End|1236084957 652332|Elapsed|0.11086|Status|1536
Mar  3 13:55:57 en-fs01 esmith::event[26669]: Running event handler: /etc/e-smith/events/actions/adjust-services
Mar  3 13:55:57 en-fs01 esmith::event[26669]: adjusting supervised smbd (sighup) 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: adjusting supervised smbd (up) 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: adjusting supervised httpd-e-smith (sigusr1) 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: adjusting supervised httpd-e-smith (up) 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: adjust-services=action|Event|ibay-modify|Action|adjust-services|Start|1236084957 652518|End|1236084957 755301|Elapsed|0.102783
Mar  3 13:55:57 en-fs01 esmith::event[26669]: Running event handler: /etc/e-smith/events/ibay-modify/S90atalk-reload
Mar  3 13:55:57 en-fs01 afpd[4756]: re-reading configuration file
Mar  3 13:55:57 en-fs01 afpd[4756]: Loading ConfigFile
Mar  3 13:55:57 en-fs01 esmith::event[26669]: S90atalk-reload=action|Event|ibay-modify|Action|S90atalk-reload|Start|1236084957 755430|End|1236084957 843041|Elapsed|0.087611

================================================================

These lines concern me:
Running event handler: /etc/e-smith/events/ibay-modify/S15ibay-modify
Mar  3 13:55:57 en-fs01 esmith::event[26669]: usermod: user Primary does not exist 
Mar  3 13:55:57 en-fs01 esmith::event[26669]: Failed to modify account Primary.

I must be doing something boneheaded, but I just can't figure it out. Any help, as always, greatly appreciated.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: ShadowCopy not working?
« Reply #1 on: March 03, 2009, 03:58:51 PM »
Please report bugs and potential bugs in the bug tracker. Thanks.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: ShadowCopy not working?
« Reply #2 on: March 03, 2009, 04:02:11 PM »
I filed it here as I thought it was a misconfiguration - it was working flawlessly before my configuration change.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: ShadowCopy not working?
« Reply #3 on: March 03, 2009, 05:42:18 PM »
I filed it here as I thought it was a misconfiguration - it was working flawlessly before my configuration change.

then it's a bug, isn't it? :-)

It should work also if you change your config..

please file a bug and report here the id reference, thank you

ciao
Stefano

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: ShadowCopy not working?
« Reply #4 on: March 03, 2009, 05:46:58 PM »
Yea, guess it is. Appunto. ;-)

Suddenly, after 3 hours, I am seeing the shadowcopy symlinks in my ibays! So I guess that's the REAL bug. Weird one.

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: ShadowCopy not working?[RESOLVED]
« Reply #5 on: March 03, 2009, 06:08:20 PM »
Resolved.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: ShadowCopy not working?
« Reply #6 on: March 04, 2009, 01:35:18 AM »
How? Did it fix itself or did you do something?

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: ShadowCopy not working?
« Reply #7 on: March 04, 2009, 09:32:18 AM »
Hi David, it was "resolved" by the appearance of the SC symlinks in the ibays 3 hours after activating SC for them, but I see the bug team has reopened my ticket, as this isn't expected behavior. I will post the resolution to this forum once I receive an answer.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: ShadowCopy not working?
« Reply #8 on: March 04, 2009, 12:32:09 PM »
bcalder01

Would it be because of this note in the wiki ?
Note that a new snapshot is only taken if files have changed.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: ShadowCopy not working?
« Reply #9 on: March 04, 2009, 12:35:31 PM »
Hi Mary, I'm not sure what your question is.

I am aware that SCs aren't created unless changes are made, I forgot to include in my original message that I was modifying files every 20 minutes - 1/2 hour, and the ibays are busy ones anyway.