[Announce] Samba 4.3.1 Available for Download
Thomas Bork
tombork at web.de
Mon Oct 26 22:12:12 UTC 2015
Am 26.10.2015 um 11:56 schrieb ich:
> No daemon, tdbbackup complains:
> + for tdb in '$lockdir/?*.tdb' '/etc/?*.tdb'
> + '[' -f /var/lock/samba/gencache_notrans.tdb ']'
> + rm -f /var/lock/samba/gencache_notrans.tdb.samba.bak
> + /usr/bin/tdbbackup -s .samba.bak /var/lock/samba/gencache_notrans.tdb
> tdb_mutex_open_ok[/var/lock/samba/gencache_notrans.tdb]: Can use mutexes
> only with MUTEX_LOCKING or NOLOCK
> Failed to open /var/lock/samba/gencache_notrans.tdb
> + /usr/bin/tdbbackup -v /var/lock/samba/gencache_notrans.tdb
> And no I can see, why tdbbackup complains:
> testeis # tdbbackup -h
> Usage: tdbbackup [options] <fname...>
>
> -h this help message
> -s suffix set the backup suffix
> -v verify mode (restore if corrupt)
> -n hashsize set the new hash size for the backup
> -l open without locking to back up mutex dbs
> I have to use '-l' now for such tdbs.
I have to ask the other way around:
Why is gencache_notrans.tdb the only tdb, which has to back up with
tdbbackup with '-l'? Is it the only mutex db?
testeis # /etc/init.d/samba stop
* Stopping Samba ...
Warning: smbd is not running.
[ WARN ]
Warning: nmbd is not running.
[ WARN ]
testeis # for tdb in /run/lock/samba/?*.tdb
> do
> if [ -f $tdb ]
> then
> rm -f $tdb.samba.bak
> tdbbackup -s .samba.bak $tdb
> tdbbackup -v $tdb
> fi
> done
/run/lock/samba/account_policy.tdb : 17 records
/run/lock/samba/brlock.tdb : 0 records
/run/lock/samba/dbwrap_watchers.tdb : 0 records
/run/lock/samba/gencache.tdb : 12 records
tdb_mutex_open_ok[/run/lock/samba/gencache_notrans.tdb]: Can use mutexes
only with MUTEX_LOCKING or NOLOCK
Failed to open /run/lock/samba/gencache_notrans.tdb
/run/lock/samba/gencache_notrans.tdb : 0 records
/run/lock/samba/group_mapping.tdb : 0 records
/run/lock/samba/leases.tdb : 0 records
/run/lock/samba/locking.tdb : 0 records
/run/lock/samba/mutex.tdb : 0 records
/run/lock/samba/names.tdb : 1 records
/run/lock/samba/notify.tdb : 0 records
/run/lock/samba/notify_index.tdb : 0 records
/run/lock/samba/printer_list.tdb : 1 records
/run/lock/samba/registry.tdb : 78 records
/run/lock/samba/serverid.tdb : 1 records
/run/lock/samba/share_info.tdb : 1 records
/run/lock/samba/smbXsrv_open_global.tdb : 0 records
/run/lock/samba/smbXsrv_session_global.tdb : 0 records
/run/lock/samba/smbXsrv_tcon_global.tdb : 0 records
/run/lock/samba/smbXsrv_version_global.tdb : 1 records
--
der tom
More information about the samba-technical
mailing list