Samba/Swat in maintenance state
I am trying to share solaries folder for windows.
I am using solaries 10. I have made changes using swat https://127.0.0.1:901.
when I am checking status of samba using command svcs samba;
it is showing me status as maintenance .
how to bring samba online.
please help.
What do you see when you do svcs -x samba?
Similar Messages
-
I have an issue with volfs.
volfs is all the time in maintenance state ( I have had no chance yet to reboot system).
I tried to use "clear" but it didnt help
Hera are some details:
# svcs -a /system/filesystem/volfs
svcs: -a ignored when used with arguments.
STATE STIME FMRI
maintenance 12:45:18 svc:/system/filesystem/volfs:default
# svcs -d /system/filesystem/volfs
STATE STIME FMRI
online kw_22 svc:/network/rpc/bind:default
online kw_22 svc:/network/rpc/smserver:default
online 15:25:05 svc:/system/filesystem/local:default
# svcs -vx /system/filesystem/volfs
svc:/system/filesystem/volfs:default (Volume Management filesystem)
State: maintenance since 7 maja 2010 12:45:18 CEST
Reason: Restarting too quickly.
See: http://sun.com/msg/SMF-8000-L5
See: man -M /usr/man -s 7FS volfs
See: /var/svc/log/system-filesystem-volfs:default.log
Impact: This service is not running.and here is a log:
cat /var/svc/log/system-filesystem-volfs:default.log
[ maj 7 12:45:16 Enabled. ]
[ maj 7 12:45:16 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:16 Method "start" exited with status 0 ]
Fri May 7 12:45:16 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:16 Stopping because all processes in service exited. ]
[ maj 7 12:45:16 Executing stop method (:kill) ]
[ maj 7 12:45:16 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:16 Method "start" exited with status 0 ]
Fri May 7 12:45:16 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:16 Stopping because all processes in service exited. ]
[ maj 7 12:45:16 Executing stop method (:kill) ]
[ maj 7 12:45:16 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:16 Method "start" exited with status 0 ]
Fri May 7 12:45:16 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:17 Stopping because all processes in service exited. ]
[ maj 7 12:45:17 Executing stop method (:kill) ]
[ maj 7 12:45:17 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:17 Method "start" exited with status 0 ]
Fri May 7 12:45:17 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:17 Stopping because all processes in service exited. ]
[ maj 7 12:45:17 Executing stop method (:kill) ]
[ maj 7 12:45:17 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:17 Method "start" exited with status 0 ]
Fri May 7 12:45:17 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:17 Stopping because all processes in service exited. ]
[ maj 7 12:45:17 Executing stop method (:kill) ]
[ maj 7 12:45:17 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:17 Method "start" exited with status 0 ]
Fri May 7 12:45:17 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:17 Stopping because all processes in service exited. ]
[ maj 7 12:45:17 Executing stop method (:kill) ]
[ maj 7 12:45:17 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:17 Method "start" exited with status 0 ]
Fri May 7 12:45:17 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:17 Stopping because all processes in service exited. ]
[ maj 7 12:45:18 Executing stop method (:kill) ]
[ maj 7 12:45:18 Executing start method ("/lib/svc/method/svc-volfs start") ]
[ maj 7 12:45:18 Method "start" exited with status 0 ]
Fri May 7 12:45:18 2010 fatal: vol_init: already a daemon running
[ maj 7 12:45:18 Stopping because all processes in service exited. ]
[ maj 7 12:45:18 Executing stop method (:kill) ]
[ maj 7 12:45:18 Executing start method ("/lib/svc/method/svc-volfs start") ]Does anyone had similar situation ? How can I bring it back to ENABLE state ?Your problem comes from
Fri May 7 12:45:18 2010 fatal: vol_init: already a daemon runningIt is very likely that the daemon was started outside the service control. Try to stop if and the clear the maintenance mode.
# ps -ef|grep -i vold
# kill ....
# svcadm clear volfs
# svcs -l volfsCheers
Andy -
The svc:/network/bootps/udp:default is in maintenance state and each time I use the svcadm clear command to remove this state, it changes to an online state. But when I run the inetadm command again, its back to maintenance state. I ran the svcs -vx command and I get this:
svc:/network/bootps/udp:default (bootps)
State: maintenance since Fri Sep 09 15:27:01 2005
Reason: Restarter svc:/network/inetd:default gave no explanation.
See: http://sun.com/msg/SMF-8000-9C
Impact: This service is not running.
I looked at the following link but it did not help me much at all: http://sun.com/msg/SMF-8000-9C
The /etc/inet/inetd.conf looks like this:
#100235/1 tli rpc/ticotsord wait root /usr/lib/fs/cachefs/cachefsd cachefsd"
#TFTPD - tftp server (primarily used for booting)
tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot
# Sun ToolTalk Database Server
#100083/1 tli rpc/tcp wait root /usr/dt/bin/rpc.ttdbserverd rpc.ttdbserverd
# rpc.cmsd is a data base daemon which manages calendar data backed
# by files in /var/spool/calendar
#100068/2-5 dgram rpc/udp wait root /usr/dt/bin/rpc.cmsd rpc.cmsd
bootps dgram udp wait root /usr/sbin/bootpd bootpd
Is there anything wrong with this? How can I permantly keep the bootp service to online state. Please help. Thanks.Your problem comes from
Fri May 7 12:45:18 2010 fatal: vol_init: already a daemon runningIt is very likely that the daemon was started outside the service control. Try to stop if and the clear the maintenance mode.
# ps -ef|grep -i vold
# kill ....
# svcadm clear volfs
# svcs -l volfsCheers
Andy -
Critical Alarms from LAPs in Maintenance State
Should a critical alarm be triggered when an LAP disassociates from a WLC if it is placed in Maintenance State before it's taken offline?
Should I delete, clear or acknowledge the critical alarm if a LAP was taken offline before it was placed in Maintenance state?
Should I still put LAPs in maintenance state if they were taken offline before I had a chance to?
Using Cisco Prime Infrastructure version 1.2I just upgraded CPI to version 2.2 and the controllers to 7.6.130 and I'm still getting the same result.
I'm getting critical alarms for APs in Maintenance State. -
How to place a WAP into Maintenance State in Cisco WCS
I presently have a WAP offline and WCS continually alerts that the WAP Radio interfaces are down.
I am logged into WCS with Admin priveleges, but if I select the WAP and opt to place the WAP into Maintenance State so as to suppress the alarms, WCS reports back "Permission Denied - You do not have privileges for the requested operation."
The WAP is operating LWAPP
What is causing the denial ? Any suggestions please.
Thanks
DavidHi,
The problem has been identified and is a bug in the latest version of WCS being 7.0.172.0
According the Cisco, the Bug is to be fix in the next version of WCS due for release later this year pending code updates for the controllers making them compatible with the new version of WCS. Details of the Bug can be found here :
http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtq83879
Anyway, to place the WAP in Maintenance State, you will need to change your WCS AAA settings via Administration>>AAA Mode and set to Local. Proceed then via a second IE session to log into WCS using the Root username and Password and place the WAP in Maintenance State. Following placing the WAP in Maintenance State, change your AAA Mode back to TACACS+ or RADIUS with fallback to local.
Regards -
Solaris 10 Samba - swat is in mainenance mode
I am trying to enable swat but can only get it to maintenance mode. Samba and winbind both enable ok. What do I need to do to get swat to go online?
I have:
{color:#000000}*SunOS troy 5.10 Generic_138889-08 i86pc i386 i86pc*{color}
I have added the following 2 lines to */etc/services*
swat 901/tcp
swat 901/udp
I have added the following two lines to */etc/inetd.conf*
netbios-ssn stream tcp nowait root /usr/sfw/sbin/smbd smbd
swat stream tcp nowait root /usr/sfw/sbin/swat swat
and applied the changes:
troy root>inetconv -i /etc/inetd.conf
I have the following smb.conf file:
[global]
workgroup=DOM
realm=DOM.FQN.UK
security=ADS
encrypt passwords = yes
password server = MMM-DC-01
preferred master = no
server string = "Samba on Troy"
log level = 10
log file = /var/adm/samba_log.%m
max log size = 50
winbind use default domain = yes
winbind trusted domains only = yes
idmap uid = 70000-80000
idmap gid = 70000-80000
winbind enum groups = yes
winbind enum users = yes
[vmbackup01samba]
path = /opt/local
valid users = DOM.FQN.UK\dcar
read only = No
and I have restarted inetd, samba, winbind and swat but swat goes into maintenance mode and there is no log file for it in /var/svc/log.Is there an .xml file in /var/svc/manifest/network for it? What do you get with svcs -x and svcs -l?
Edited by: mdinaz on Jul 14, 2009 9:28 AM -
Some services in maintenance state after reboot
Hi,
I installed solaris 10 and everything ran fine for a month. I recently upgraded memory on the server and when I rebooted, some of the services were put in the maintenance mode.
Here is the solaris 10 release info:
bash-3.00# cat /etc/release
Solaris 10 1/06 s10s_u1wos_19a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 December 2005
Here is the error during boot up
irvsun12 console login: Mar 2 11:20:42 inetd[230]: Property 'name' of instance svc:/network/rpc/rstat:default is missing, inconsistent or invalid
Mar 2 11:20:42 inetd[230]: Invalid configuration for instance svc:/network/rpc/rstat:default, placing in maintenance
Mar 2 11:20:42 inetd[230]: Property 'name' of instance svc:/network/rpc/rusers:default is missing, inconsistent or invalid
Mar 2 11:20:42 inetd[230]: Invalid configuration for instance svc:/network/rpc/rusers:default, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'proto' of instance svc:/network/telnet:default is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/network/telnet:default, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'name' of instance svc:/network/nfs/rquota:default is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/network/nfs/rquota:default, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'proto' of instance svc:/network/ftp:default is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/network/ftp:default, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'proto' of instance svc:/network/finger:default is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/network/finger:default, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'proto' of instance svc:/network/login:rlogin is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/network/login:rlogin, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'proto' of instance svc:/network/shell:default is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/network/shell:default, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'proto' of instance svc:/application/x11/xfs:default is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/application/x11/xfs:default, placing in maintenance
Mar 2 11:20:43 inetd[230]: Property 'proto' of instance svc:/application/print/rfc1179:default is missing, inconsistent or invalid
Mar 2 11:20:43 inetd[230]: Invalid configuration for instance svc:/application/print/rfc1179:default, placing in maintenance
Any help on getting this resolved is appreciated.
ThanksI have run into the same problem and cannot figure out how to resolve it.
Here is what I saw during the boot process:
May 11 21:37:59 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/gss:default is invalid
May 11 21:37:59 inetd[202]: Invalid configuration for instance svc:/network/rpc/gss:default, placing in maintenance
May 11 21:38:01 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/mdcomm:default is invalid
May 11 21:38:01 inetd[202]: Invalid configuration for instance svc:/network/rpc/mdcomm:default, placing in maintenance
May 11 21:38:01 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/meta:default is invalid
May 11 21:38:01 inetd[202]: Invalid configuration for instance svc:/network/rpc/meta:default, placing in maintenance
May 11 21:38:02 svc.startd[7]: svc:/system/mdmonitor:default: Method "/lib/svc/method/svc-mdmonitor" failed with exit status 1.
May 11 21:38:02 svc.startd[7]: svc:/system/mdmonitor:default: Method "/lib/svc/method/svc-mdmonitor" failed with exit status 1.
May 11 21:38:02 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/metamed:default is invalid
May 11 21:38:02 svc.startd[7]: svc:/system/mdmonitor:default: Method "/lib/svc/method/svc-mdmonitor" failed with exit status 1.
May 11 21:38:02 inetd[202]: Invalid configuration for instance svc:/network/rpc/metamed:default, placing in maintenance
May 11 21:38:02 svc.startd[7]: system/mdmonitor:default failed
May 11 21:38:03 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/metamh:default is invalid
May 11 21:38:04 inetd[202]: Invalid configuration for instance svc:/network/rpc/metamh:default, placing in maintenance
May 11 21:38:04 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/rstat:default is invalid
May 11 21:38:04 inetd[202]: Invalid configuration for instance svc:/network/rpc/rstat:default, placing in maintenance
May 11 21:38:05 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/rusers:default is invalid
May 11 21:38:05 louise2 inetd[202]: Invalid configuration for instance svc:/network/rpc/rusers:default, placing in maintenance
May 11 21:38:06 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/security/ktkt_warn:default is invalid
May 11 21:38:06 louise2 inetd[202]: Invalid configuration for instance svc:/network/security/ktkt_warn:default, placing in maintenance
May 11 21:38:06 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/telnet:default is invalid
May 11 21:38:06 louise2 inetd[202]: Invalid configuration for instance svc:/network/telnet:default, placing in maintenance
May 11 21:38:07 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/nfs/rquota:default is invalid
May 11 21:38:07 louise2 inetd[202]: Invalid configuration for instance svc:/network/nfs/rquota:default, placing in maintenance
May 11 21:38:08 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/ftp:default is invalid
May 11 21:38:08 louise2 inetd[202]: Invalid configuration for instance svc:/network/ftp:default, placing in maintenance
May 11 21:38:08 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/finger:default is invalid
May 11 21:38:08 louise2 inetd[202]: Invalid configuration for instance svc:/network/finger:default, placing in maintenance
May 11 21:38:09 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/login:rlogin is invalid
May 11 21:38:09 louise2 inetd[202]: Invalid configuration for instance svc:/network/login:rlogin, placing in maintenance
May 11 21:38:09 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/shell:default is invalid
May 11 21:38:09 louise2 inetd[202]: Invalid configuration for instance svc:/network/shell:default, placing in maintenance
May 11 21:38:09 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/application/font/stfsloader:default is invalid
May 11 21:38:09 louise2 inetd[202]: Invalid configuration for instance svc:/application/font/stfsloader:default, placing in maintenance
May 11 21:38:09 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/application/x11/xfs:default is invalid
May 11 21:38:09 louise2 inetd[202]: Invalid configuration for instance svc:/application/x11/xfs:default, placing in maintenance
May 11 21:38:10 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc/smserver:default is invalid
May 11 21:38:10 louise2 inetd[202]: Invalid configuration for instance svc:/network/rpc/smserver:default, placing in maintenance
May 11 21:38:10 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/application/print/rfc1179:default is invalid
May 11 21:38:10 louise2 inetd[202]: Invalid configuration for instance svc:/application/print/rfc1179:default, placing in maintenance
May 11 21:38:10 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc-100235_1/rpc_ticotsord:default is invalid
May 11 21:38:10 louise2 inetd[202]: Invalid configuration for instance svc:/network/rpc-100235_1/rpc_ticotsord:default, placing in maintenance
May 11 21:38:11 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc-100083_1/rpc_tcp:default is invalid
May 11 21:38:11 louise2 inetd[202]: Invalid configuration for instance svc:/network/rpc-100083_1/rpc_tcp:default, placing in maintenance
May 11 21:38:11 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/rpc-100068_2-5/rpc_udp:default is invalid
May 11 21:38:11 louise2 inetd[202]: Invalid configuration for instance svc:/network/rpc-100068_2-5/rpc_udp:default, placing in maintenance
May 11 21:38:11 louise2 inetd[202]: Property exec for method inetd_start of instance svc:/network/tftp/udp6:default is invalid
May 11 21:38:11 louise2 inetd[202]: Invalid configuration for instance svc:/network/tftp/udp6:default, placing in maintenance
And if I run: svcprop rpc/gss:default
general/enabled boolean true
general/entity_stability astring Unstable
general/restarter fmri svc:/network/inetd:default
rpcbind/entities fmri svc:/network/rpc/bind
rpcbind/grouping astring require_all
rpcbind/restart_on astring restart
rpcbind/type astring service
keyserv/entities fmri svc:/network/rpc/keyserv
keyserv/grouping astring optional_all
keyserv/restart_on astring none
keyserv/type astring service
inetd/endpoint_type astring tli
inetd/isrpc boolean true
inetd/name astring 100234
inetd/proto astring ticotsord
inetd/rpc_high_version integer 1
inetd/rpc_low_version integer 1
inetd/stability astring Evolving
inetd/wait boolean true
inetd_start/exec astring /usr/lib/gss/gssd
inetd_start/group astring root
inetd_start/limit_privileges astring :default
inetd_start/privileges astring basic,!file_link_any,!proc_info,!proc_session,net_privaddr,file_chown,file_dac_read,file_dac_write
inetd_start/project astring :default
inetd_start/resource_pool astring :default
inetd_start/supp_groups astring :default
inetd_start/timeout_seconds count 0
inetd_start/type astring method
inetd_start/use_profile boolean false
inetd_start/user astring root
inetd_start/working_directory astring :default
inetd_offline/exec astring :kill_process
inetd_offline/timeout_seconds count 0
inetd_offline/type astring method
inetd_disable/exec astring :kill
inetd_disable/timeout_seconds count 0
inetd_disable/type astring method
tm_common_name/C ustring Generic\ Security\ Service
tm_man_gssd/manpath astring /usr/share/man
tm_man_gssd/section astring 1M
tm_man_gssd/title astring gssd
restarter/auxiliary_state astring none
restarter/next_state astring none
restarter/state astring maintenance
restarter/state_timestamp time 1147397880.430382000
inetd_state/cur_state integer 8
inetd_state/next_state integer 13
# -
Hi guys,
I have 2 Sun SPARCs running Solaris 10 with Apache2 installed. On server1, I can start the apache2 service using svcadm enable apache2. On server2, this doesn't work. I have compared the 2 servers, including the directories for apache2 and they are exactly the same.
root@wrkarea2 # svcs -l apache2
fmri svc:/network/http:apache2
name Apache 2 HTTP server
enabled true
state maintenance
next_state none
state_time Mon Nov 19 16:18:35 2007
logfile /var/svc/log/network-http:apache2.log
restarter svc:/system/svc/restarter:default
contract_id
dependency require_all/error svc:/network/loopback:default (online)
dependency optional_all/error svc:/network/physical:default (online)
root@wrkarea2 # svcs -x apache2
svc:/network/http:apache2 (Apache 2 HTTP server)
State: maintenance since Mon Nov 19 16:18:35 2007
Reason: Start method failed repeatedly, last exited with status 1.
See: http://sun.com/msg/SMF-8000-KS
See: apache2(1M)
See: /var/svc/log/network-http:apache2.log
Impact: This service is not running.
I did a tail on the log file and saw this:
[ Nov 19 15:00:31 Leaving maintenance because clear requested. ]
[ Nov 19 15:00:31 Enabled. ]
[ Nov 19 15:00:31 Executing start method ("/lib/svc/method/http-apache2 start") ]
Syntax error on line 112 of /etc/apache2/ssl.conf:
SSLCertificateFile: file '/etc/apache2/ssl.crt/server.crt' does not exist or is empty
[ Nov 19 15:00:31 Method "start" exited with status 1 ]
When I checked on etc/apache2/, there is no ssl.crt folder in both servers. I can't figure why it works on server1 but not on server2. Wonder if anyone has any ideas.
I had even tried the following:
openssl req -new -x509 -nodes -out server.crt -keyout server.key
and got: openssl not found.Hi,
i assume you have an
include ssl/ssl.conf directive in your http.conf file on one server, an probably not on the other one. If you don't need https, you can simply remove the include. The ssl.conf usualy contains the directive SSLCertificateFile which points th the certificate file you don't have.
Fritz -
Solaris 10 Printer share by Samba SWAT. Then install onto windows client
Hello,
I am having trouble with below.
1) Installing printer on Solaris 10
2) Sharing the printer via SWAT
3) Install the printer on Solaris from Windows client.
Where can I find the basic information for above 3 which I need to achieve?
I have installed the printer locally onto Solaris 10, and was able to print, but I just can't share it to Windows.
And because of that, I am not sure if I am doing the local printer installation in the right way or not..
If anybody can lead me to a good website or good document for printer installation and sharing,
please let me know.
Regards,
TanukiWell, if you don't think the online Documentation helpful, then the better way is reading step-by-step instructions from a book. Get to local bookstore, i.e Barne&Nobles or Border or any big local bookstore, there should be pretty good book for Unix Administrator (Solaris version).
If you have time and think you can memorize then, read on the spot; otherwise, buy the book for future reference.
If that's not what you had in mind, then this link of free online book might help : http://www.oreilly.com/catalog/solaris8/chapter/ch04.html
Normally, oreilly online bookstore offers free books to accredited universities, colleges, and organizations. However, if that option isn't for you, it might even offer free sample chapters that might just suit your needs.
hoep it helps.
-van. -
Stats collection running long in 11g
Oracle11.2.0.1
Sun Solaris.
Stats collection running long for almost 12 hours from 6PM to 6AM daily and stats collection autotask is getting STOPPED after the window duration.
DBA_TABLES.last_analyzed is not getting updated after 2AM in the morning. I believe it is scanning some big tables, but not able to pin point the table/index.
And we've some a bunch of 100GB tables in the DB. Is there a way to find out which table it's gathering stats between 2AM and 6AM and not getting completed?
Thanks for your time!moreajays wrote:
Hi,
I would suggest to find out those tables with huge Table & last_analyzed is Null , these tables would be possible tables responsible for long run.
Only AWR ot other SQL Hist stats tables can help you to get details.
To fix this issue you should run stats gathering manually in day time (not in maintenance window) either with auto stats or with little estimate_percent (10 or 5)
After getting first successful analyze (manually) , maintenance stats will pick up new incremental stats thereafter
Ajay,
I don't think that your statement that after the gathering the statistics manually, it would be next done incrmentally is correct. The incremental statistics are introduced only for partitioned tables AFAIK. Can you post a link from the documentation that your mentioned behavior exists?
Aman.... -
Can't start samba (complaining about how I'm using the 'samba' binary)
I'm unable to start samba:
➜ ~ sudo systemctl start samba.service
➜ ~ sudo systemctl status samba.service
samba.service - Samba AD Daemon
Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled)
Active: failed (Result: exit-code) since Tue 2013-07-16 13:44:46 PDT; 2s ago
Process: 22130 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 22131 (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/samba.service
Jul 16 13:44:46 mitchelh-linux systemd[1]: Starting Samba AD Daemon...
Jul 16 13:44:46 mitchelh-linux systemd[1]: Started Samba AD Daemon.
Jul 16 13:44:46 mitchelh-linux systemd[1]: samba.service: main process exited, code=exited, status=1/FAILURE
Jul 16 13:44:46 mitchelh-linux systemd[1]: Unit samba.service entered failed state.
Here is the error message I'm getting in the samba log (which is actually named `/var/log/samba/%m.log', which is quite fishy):
[2013/07/16 13:44:46, 0] ../source4/smbd/server.c:369(binary_smbd_main)
samba version 4.0.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2012
[2013/07/16 13:44:46, 0] ../source4/smbd/server.c:461(binary_smbd_main)
At this time the 'samba' binary should only be used for either:
'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
I'm using the default configuration, i simply cp'd smb.conf.default to smb.conf. Prior to attempting to start samba I have already started nmbd, smbd, and winbindd for good measure:
➜ ~ sudo systemctl status nmbd.service
nmbd.service - Samba NetBIOS name server
Loaded: loaded (/usr/lib/systemd/system/nmbd.service; enabled)
Active: active (running) since Tue 2013-07-16 13:33:35 PDT; 15min ago
Main PID: 21856 (nmbd)
CGroup: name=systemd:/system/nmbd.service
└─21856 /usr/bin/nmbd -D
Jul 16 13:33:35 mitchelh-linux systemd[1]: Started Samba NetBIOS name server.
➜ ~ sudo systemctl status smbd.service
smbd.service - Samba SMB/CIFS server
Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
Active: active (running) since Tue 2013-07-16 13:33:38 PDT; 15min ago
Main PID: 21864 (smbd)
CGroup: name=systemd:/system/smbd.service
├─21864 /usr/bin/smbd -D
└─21868 /usr/bin/smbd -D
Jul 16 13:33:38 mitchelh-linux systemd[1]: Started Samba SMB/CIFS server.
➜ ~ sudo systemctl status winbindd.service
winbindd.service - Samba Winbind daemon
Loaded: loaded (/usr/lib/systemd/system/winbindd.service; enabled)
Active: active (running) since Tue 2013-07-16 13:36:23 PDT; 12min ago
Main PID: 21990 (winbindd)
CGroup: name=systemd:/system/winbindd.service
├─21990 /usr/bin/winbindd -D
└─21993 /usr/bin/winbindd -D
Jul 16 13:36:23 mitchelh-linux winbindd[21990]: [2013/07/16 13:36:23.484545, 0] ../source3/winbindd/winbindd_cache.c:3179(initialize_winbindd_cache)
Jul 16 13:36:23 mitchelh-linux winbindd[21990]: initialize_winbindd_cache: clearing cache and re-creating with version number 2
Jul 16 13:36:23 mitchelh-linux systemd[1]: Started Samba Winbind daemon.
and testparm seems to check out:
➜ ~ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MYGROUP
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
printcap name = /etc/printcap
dns proxy = No
idmap config * : backend = tdb
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No
Any ideas as to what's going on? The only references to that error message that I could find on the Internet were instances of mismatched samba/config versions. Is the smb.conf that ships with samba really broken??
I've also tried commenting out the `homes' and `printers' shares.Did you ever get any further on this? I am hitting a wall here as well. My digging shows that samba 4 dropped security = share mode and I get they are snapping into the Microsoft Domain model for permissions/security. I am able to start nmbd and winbindd (systemctl status shows them both active) but samba always complains with:
[root@localhost ~]# systemctl status samba
samba.service - Samba AD Daemon
Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled)
Active: failed (Result: exit-code) since Thu 2013-10-10 10:45:35 JST; 2min 36s ago
Process: 2482 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 2483 (code=exited, status=1/FAILURE)
Oct 10 10:45:35 localhost samba[2482]: samba version 4.0.10 started.
Oct 10 10:45:35 localhost samba[2482]: Copyright Andrew Tridgell and the Samba Team 1992-2012
Oct 10 10:45:35 localhost systemd[1]: PID file /var/run/samba.pid not readable (yet?) after start.
Oct 10 10:45:35 localhost systemd[1]: Started Samba AD Daemon.
Oct 10 10:45:35 localhost samba[2483]: [2013/10/10 10:45:35.509158, 0] ../source4/smbd/server.c:475(binary_smbd_main)
Oct 10 10:45:35 localhost samba[2483]: At this time the 'samba' binary should only be used for either:
Oct 10 10:45:35 localhost samba[2483]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dce...ers = remote'
Oct 10 10:45:35 localhost samba[2483]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Oct 10 10:45:35 localhost systemd[1]: samba.service: main process exited, code=exited, status=1/FAILURE
Oct 10 10:45:35 localhost systemd[1]: Unit samba.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]#
My smb.conf is pretty basic and I am following this reference: http://obihoernchen.net/wordpress/877/s … rch-linux/
SMB.CONF:
[root@localhost ~]# cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = TEST
netbios name = TEST
# hosts allow = 192.168.1.
printcap name = /dev/null
load printers = no
disable spoolss = yes
printing = bsd
log file = /var/log/samba/log.%m
max log size = 50
security = user
dns proxy = no
# For public share without login
map to guest = Bad User
# Android bugix for reading files (samba4 bug see: https://bugzilla.samba.org/show_bug.cgi?id=9706)
unix extensions = false
# Fix for file batch copy issues (see: http://archlinuxarm.org/forum/viewtopic … 18&t=4864)
oplocks = no
level2 oplocks = no
# Some Tuning (See Optimize Performance)
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
write cache size = 2097152
getwd cache = yes
min receivefile size = 16384
# Global security
public = yes
#============================ Share Definitions ==============================
# Public, read only
#[Videos]
# comment = Videos for all
# read only = yes
# # use this only for read only shares!
# fake oplocks = yes
# path = /media/zincobi/Videos
# Public, writeable
#[Abrechnungen]
# comment = Abrechnungen
# read only = no
# writeable = yes
# path = /media/zincobi/Abrechnungen
# whole HDD, only for fabian
#[zincobi]
# comment = Fabians share
# public = no
# valid users = fabian
# read only = no
# writeable = yes
# path = /media/zincobi
[Stuff]
comment = test stuff
read only = no
writeable = yes
path = /home/test
[root@localhost ~]#
testparm results:
[root@localhost ~]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Website]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
netbios name = TEST
server string = TEST
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
min receivefile size = 16384
unix extensions = No
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
load printers = No
printcap name = /dev/null
disable spoolss = Yes
dns proxy = No
idmap config * : backend = tdb
guest ok = Yes
write cache size = 2097152
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j
oplocks = No
level2 oplocks = No
[Stuff]
comment = test stuff
path = /home/test
read only = No -
Samba 4.1.12 asking for workgroup password.
Hello
I searched from different sources, but I couldn't get a clear explanation. As of last version of samba everything was working. Now I'm facing a strange behavior which is asking a password to access the workgroup.
My samba installation is 4.1.12-
I seen in the systemctl status :
● samba.service - Samba AD Daemon
Loaded: loaded (/usr/lib/systemd/system/samba.service; disabled)
Active: failed (Result: exit-code) since lun 2014-09-22 15:16:27 CEST; 22min ago
Process: 5777 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 5778 (code=exited, status=1/FAILURE)
set 22 15:16:26 AsusG75 samba[5777]: samba version 4.1.12 started.
set 22 15:16:26 AsusG75 samba[5777]: Copyright Andrew Tridgell and the Samba Team 1992-2013
set 22 15:16:27 AsusG75 samba[5778]: [2014/09/22 15:16:27.079814, 0] ../source4/smbd/server.c:475(binary_smbd_main)
set 22 15:16:27 AsusG75 samba[5778]: At this time the 'samba' binary should only be used for either:
set 22 15:16:27 AsusG75 samba[5778]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
set 22 15:16:27 AsusG75 samba[5778]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
set 22 15:16:27 AsusG75 samba[5778]: [2014/09/22 15:16:27.080096, 0] ../lib/util/become_daemon.c:124(exit_daemon)
set 22 15:16:27 AsusG75 samba[5778]: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
set 22 15:16:27 AsusG75 systemd[1]: samba.service: main process exited, code=exited, status=1/FAILURE
set 22 15:16:27 AsusG75 systemd[1]: Unit samba.service entered failed state.
I suppose I should change the role in my smb.conf, but I don't know what is the right key to be added.
My test without password
$ smbclient -L 192.168.1.7
Enter user's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]
Sharename Type Comment
IPC$ IPC IPC Service (Aspire-5733 server (Samba, Ubuntu))
print$ Disk Printer Drivers
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]
Server Comment
Aspire-5733 server (Samba, Ubuntu)
ASUSG75 Asus G75 server
Workgroup Master
WORKGROUP ASPIRE-5733
Any clue ?
EDIT
I found some way to use it again, but I'm not that sure it is the right way.
Commented the line securitu in /etc/samba/smb.conf
Started the service as systemctl start {smbd,nmbd,winbindd}
I'll test some more before render it as solved
Last edited by TheSaint (2014-09-23 22:29:58)A search didn't return any meaningful results, but as usual, writing a question and posting it offers valuable answers in the "more like this" panel. Problem solved, thanks Apple Communities.
Settings > Store > Log out, then log back in. So far, no prompts. Feels great. -
Find: stat() error /proc/26354: No such file or directory
Dear everyone,
I am using Solaris 10u8 on 02 Sun Fire X4240 servers. I also installed Sun Cluster 3.2u3 and Oracle RAC 10gR2 for these 2 servers.
When I tried to execute the find command, I receive the result I need. However, in the end of the output, I saw additional lines:
+# find / -name * log -print | grep samba+
+/var/svc/log/network-samba:default.log+
+/var/samba/log+
+/etc/svc/volatile/network-samba:default.log+
+{color:#ff0000}find: stat() error /proc/26354: No such file or directory{color}+
I also tried with less complex syntax but got the same result, for example:
+# find / -name samba+
+/var/spool/samba+
+/var/samba+
+/usr/sfw/lib/webmin/caldera/samba+
+/usr/sfw/lib/webmin/mscstyle3/samba+
+/usr/sfw/lib/webmin/samba+
+/etc/init.d/samba+
+/etc/webmin/samba+
+/opt/SUNWscsmb/samba+
+{color:#ff0000}find: stat() error /proc/24252: No such file or directory+
+find: stat() error /proc/24345: No such file or directory{color}+
I don't know why these unormal outputs appeared. Does anyone know what the problem is here ?
Any advice from you is appreciated. Thanks for your help and please help me in this case.
Thanks.
HuyNQ./proc is a virtual filesystem reperesenting running processes.
By doing a a find from / your allowing find to pass though /proc.
Those errors indicate processes that exited while the find was running. So the files suddenly disappeared.
The errors are harmless. But if possible, try not to allow find to scan /proc. -
Samba 4.1.6 winbind failing to start
I created a clean install of Arch on the 17th Feb with Samba 4.1.4 as an "active directory domain controller" and provisioned my domain. It was working as expected providing kerberos tickets, shares, DNS, and a few GPOs. I upgraded Samba to 4.1.5 on 4th March and it was still fine. On the 19th March I upgraded Samba to 4.1.6.
About the same time Samba began failing on startup. Unfortunately my earliest journalctl entry is 20th March so I can't quite be sure that it was the upgrade which caused the failure; I've also been playing about with pam_mount. My problem is that I can't find any information on this particular error and I'm not sure where else to look. I've pasted the error message below. It seems winbind won't start but I can't figure out why.
samba[285]: samba version 4.1.6 started.
systemd[1]: Started Samba AD Daemon.
samba[286]: [2014/03/20 21:54:19.100234, 0] ../source4/smbd/server.c:492(binary_smbd_main)
samba[286]: samba: using 'standard' process model
samba[286]: [2014/03/20 21:54:19.116899, 0] ../source4/smbd/service.c:98(server_service_startup)
samba[286]: Failed to start service 'winbind' - NT_STATUS_INVALID_SYSTEM_SERVICE
samba[286]: [2014/03/20 21:54:19.117134, 0] ../source4/smbd/server.c:497(binary_smbd_main)
samba[286]: Starting Services failed - NT_STATUS_INVALID_SYSTEM_SERVICE
systemd[1]: samba.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Unit samba.service entered failed state.
And this is the output of testparm.
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[netlogon]"
Processing section "[sysvol]"
Processing section "[private]"
Processing section "[public]"
Processing section "[media]"
Loaded services file OK.
Server role: ROLE_ACTIVE_DIRECTORY_DC
Press enter to see a dump of your service definitions
[global]
workgroup = XXX
realm = XXX.EXAMPLE.COM
server role = active directory domain controller
passdb backend = samba_dsdb
kerberos method = secrets and keytab
template shell = /bin/bash
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
winbind refresh tickets = Yes
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate
rpc_server:tcpip = no
rpc_daemon:spoolssd = embedded
rpc_server:spoolss = embedded
rpc_server:winreg = embedded
rpc_server:ntsvcs = embedded
rpc_server:eventlog = embedded
rpc_server:srvsvc = embedded
rpc_server:svcctl = embedded
rpc_server:default = external
idmap_ldb:use rfc2307 = yes
idmap config * : backend = tdb
acl group control = Yes
inherit acls = Yes
map acl inherit = Yes
map archive = No
map readonly = no
store dos attributes = Yes
vfs objects = dfs_samba4, acl_xattr
[netlogon]
path = /var/lib/samba/sysvol/xxx.example.com/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
[private]
path = /export/home/%D/%U
[public]
path = /export/public
[media]
path = /export/media
Does anyone have any suggestions on debugging steps? Preferably without losing the contents of the AD.I had exactly the same issue after rebooting my samba DC yetserday. I checked pacman.log for what had changed since last sucessfull startup and correlated my issue to this upgrade:
/var/log/pacman.log wrote:[2014-03-21 18:40] [PACMAN] upgraded talloc (2.0.8-2 -> 2.1.0-1)
[2014-03-21 18:40] [PACMAN] upgraded tevent (0.9.19-1 -> 0.9.21-2)
I've found two workarounds for this issue:
downgrading these two packages back to their old version
BUG #39557: adding /usr/lib/tevent to a newly created /etc/ld.so.conf.d/tevent.conf file and running ldconfig.
Last edited by lianse (2014-03-22 10:05:41) -
[SOLVED]samba.service can not be started
I just run pacman -Syu today, and found the samba servcie is broken.
[root@myserver /]# systemctl status samba
samba.service - Samba AD Daemon
Loaded: loaded (/usr/lib/systemd/system/samba.service; disabled)
Active: failed (Result: exit-code) since Thu 2013-06-13 19:54:04 CST; 2h 2min ago
Process: 1293 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 1294 (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/samba.service
Jun 13 19:54:03 myserver systemd[1]: PID file /var/run/samba.pid not readable (yet?) after start.
Jun 13 19:54:03 myserver systemd[1]: Started Samba AD Daemon.
Jun 13 19:54:03 myserver samba[1294]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_ad...lied
Jun 13 19:54:03 myserver samba[1294]: _sasl_plugin_load failed on sasl_canonuser_init for plug...apdb
Jun 13 19:54:04 myserver systemd[1]: samba.service: main process exited, code=exited, status=1...LURE
Jun 13 19:54:04 myserver systemd[1]: Unit samba.service entered failed state.
my software version is
[root@myserver /]# pacman -Qi samba
Name : samba
Version : 4.0.6-1
Description : SMB Fileserver and AD Domain server
Architecture : i686
URL : http://www.samba.org
Licenses : GPL3
Groups : None
Provides : None
Depends On : db>=4.7 popt libcups libcap>=2.16 gamin gnutls>=2.4.1 talloc ldb libbsd
python2 tdb smbclient>=4.0.6
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 30411.00 KiB
Packager : Tobias Powalowski <[email protected]>
Build Date : Fri 24 May 2013 05:25:56 PM CST
Install Date : Thu 06 Jun 2013 01:04:20 PM CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
[root@myserver /]# pacman -Qi libsasl
Name : libsasl
Version : 2.1.26-4
Description : Cyrus Simple Authentication Service Layer (SASL) Library
Architecture : i686
URL : http://cyrusimap.web.cmu.edu/
Licenses : custom
Groups : None
Provides : None
Depends On : openssl
Optional Deps : None
Required By : cyrus-sasl-gssapi cyrus-sasl-ldap cyrus-sasl-sql libldap libpurple libvirt
mutt qemu
Optional For : None
Conflicts With : cyrus-sasl-plugins
Replaces : None
Installed Size : 517.00 KiB
Packager : Eric Belanger <[email protected]>
Build Date : Fri 31 May 2013 04:13:53 AM CST
Install Date : Thu 13 Jun 2013 01:43:47 PM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
thanks in advance!
Last edited by netawater (2013-06-14 01:18:38)WonderWoofy wrote:
Are you trying to use samba, or are you trying to use smbd? That is are you trying to create a simple file serving setup, or are you trying to use the whole M$ Active Directory stuff and whatnot? The Active Directory stuff was just implemented in v4.* so I am kind of thinking that you are trying to start the wrong service. If you want things like they were in version <=3.*, then you need to reconfigure smbd with the new config file/example, then re-add all users (pdbedit I think?), then start smbd and nmbd.
If you are indeed trying to be the Domain Controller and use Active Directory... you're gonna have to start doing some research.
thanks very much! smbd service is enough for me, and it works!
Maybe you are looking for
-
Accounting Enteries corresponding to a line item of PO
HI Gurus, My requirement is to pull out Tax amount from the ACcounting Documnmet generated after Invoice posting. Challenge is: PO Line items are connected to INvoice Line Items. But Invoice Line Items are not releated to ACcounting DOc Line Items. A
-
What is default user and password for Single Sign On
When I try to run a test.rdf report (that comes for demonstration purpose). A page appears which asks form SSO user and password.<br> I tried all user IDs and password that I have used so for during installation. But none works. Please give me hint a
-
Redo log content in NOARCHIVELOG mode
I have several servers running Oracle 9i databases in NOARCHIVELOG mode. I know this means that the online redo logs are not archived. I have been tracing the Oracle log writer with truss, and only see I/O going to the Oracle control files. I see no
-
JAVA API :: Information needed
Hi. I tought BI Publisher Java API would give me access to the server repository. And then, just execute something like: Report r = Report.newReport("MyReportName"); r.Generate() But as far as I see, It only gives me the possibility yo LOCALLY consum
-
Error when executing MSS report PWPC_RPT_START_REPORT_TEST in Se38
HI Experts, when am executing the program we have following problem. Error when excuting function z_perf_eed_profmat. values in selection screen: Scenario : zall(custom) and fcode z_perf_eed_profmat (custom). Please help me on this. Advance thanks, s