LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-09-2019, 08:59 AM   #16
Adrianali
LQ Newbie
 
Registered: Dec 2018
Location: Argentina
Distribution: OpenBSD, Gentoo Linux
Posts: 12

Rep: Reputation: Disabled

Has any samba file been broken or do not have the indicated permissions ?. I have no experience with redhat linux, an option would be to save your configuration files:

Quote:
/etc/samba/*
and reinstall samba package.
 
Old 04-09-2019, 09:02 AM   #17
Adrianali
LQ Newbie
 
Registered: Dec 2018
Location: Argentina
Distribution: OpenBSD, Gentoo Linux
Posts: 12

Rep: Reputation: Disabled
Has any samba file been broken or do not have the indicated permissions ?. I have no experience with redhat linux, a suggestion would be to save your configuration files:

Quote:
/etc/samba/*
and reinstall samba package.
 
Old 04-09-2019, 09:06 AM   #18
lekost
LQ Newbie
 
Registered: Apr 2019
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Adrianali View Post
Has any samba file been broken or do not have the indicated permissions ?. I have no experience with redhat linux, a suggestion would be to save your configuration files:



and reinstall samba package.
It was my first attempt, I deleted the folders.
After:
yum remove samba
yum remove samba-common

yum install samba
yum install samba-common (folders / files were only recreated when installing this).

even so, the service does not start.
 
Old 04-09-2019, 08:36 PM   #19
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,172

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Question

Quote:
Originally Posted by Adrianali View Post
Has any samba file been broken or do not have the indicated permissions ?. I have no experience with redhat linux, an option would be to save your configuration files:



and reinstall samba package.
What RedHat version? Do you have active subscription?
Is the system updated with latest patches?
 
Old 11-14-2022, 09:20 AM   #20
twinsen
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
The problem is, that CTDB uses old service handling. This seems not to be updated across the RedHat/CentOS/Fedora.
50.samba script uses "service samba start" or "service samba stop" but it should use now: "systemctl start smb.service" or "systemctl stop smb.service".
I'm now debugging it, however this is probably the reason why 'ctdb event script enable legacy 50.samba' does not work.
Also, the CTDB manual pages on samba.org are outdated and the most recent changes you can see only in the version changelog.
 
Old 11-14-2022, 10:05 AM   #21
twinsen
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
Actually that was it. After changing that line:

service_name="samba"

to:

service_name="smb"

in /usr/share/ctdb/events/legacy/50.samba.script

and restart of CTDB:

systemctl stop ctdb; sleep 1; systemctl start ctdb

all works as expected:

[root@fs01 log]# ctdb scriptstatus
00.ctdb OK 0.004 Mon Nov 14 17:01:24 2022
01.reclock OK 0.004 Mon Nov 14 17:01:24 2022
05.system OK 0.019 Mon Nov 14 17:01:24 2022
10.interface OK 0.034 Mon Nov 14 17:01:24 2022
50.samba OK 0.118 Mon Nov 14 17:01:24 2022
[root@fs01 log]# ps auxw | grep samba
root 1075309 0.0 0.0 221664 2316 pts/0 S+ 17:01 0:00 grep --color=auto samba
[root@fs01 log]# ps auxw | grep smb
root 1075053 0.1 0.0 360212 25844 ? Ss 17:01 0:00 /usr/sbin/smbd --foreground --no-process-group
root 1075055 0.0 0.0 341112 10552 ? S 17:01 0:00 /usr/sbin/smbd --foreground --no-process-group
root 1075056 0.0 0.0 341104 4324 ? S 17:01 0:00 /usr/sbin/smbd --foreground --no-process-group
root 1075371 0.0 0.0 221664 2320 pts/0 S+ 17:01 0:00 grep --color=auto smb

The Samba/CTDB team should simply update their documentation/scripts.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
systemctl status postgresql-tst.service starts the service if service is stopped MarianForums Linux - Newbie 7 11-03-2018 03:02 PM
Systemd service: AUTOSSH.service does not start at boot, how can I fix this? The_Linux_Machine Linux - Newbie 1 07-06-2016 12:00 PM
[SOLVED] I can stop a service, but not start the same service from php? jesse.gibson Linux - Software 3 02-24-2016 01:07 PM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration