Koozali.org: home of the SME Server

upgrading Samba to 3.X

dwater

upgrading Samba to 3.X
« on: January 12, 2005, 10:02:05 AM »
Can someone advise me on how best to get help and advice on upgrading samba to version 3?

Thanks.

Max.

Offline mdo

  • *
  • 355
  • +0/-0
upgrading Samba to 3.X
« Reply #1 on: January 12, 2005, 10:51:19 AM »
Hi Max

I would use those from the Contribs/download area:
gzartman/Beta/Samba3

Very nice work. Thanks to the author. It's beta and we are using it only on our own server yet but it seems to be very stable.

Michael
...

dwater

upgrading Samba to 3.X
« Reply #2 on: January 12, 2005, 02:25:54 PM »
Quote from: "mdo"
Hi Max

I would use those from the Contribs/download area:
gzartman/Beta/Samba3

Very nice work. Thanks to the author. It's beta and we are using it only on our own server yet but it seems to be very stable.

Michael


The instructions are :

Quote
Install/Upgrade Instructions:

1. Download all rpms to local machine.
2. RPM -Uvh *.rpm
3. perl /etc/e-smith/events/actions/initialize-default-databases
4. /sbin/e-smith/signal-event ibay-modify
5.  perl /etc/e-smith/events/actions/group-modify-samba all


Was it really that simple?
Does it convert all the current ibays and profiles?
What about the panels on the server manager - I have the advanced workgroup contrib - will that work?

Just want to know what I'm getting into before I start - if I have to allow a long time to sort things out, I'll start on Friday night, giving me Sat and Sun before people need to use it again.

Thanks.

Max.

Offline mdo

  • *
  • 355
  • +0/-0
upgrading Samba to 3.X
« Reply #3 on: January 12, 2005, 07:08:40 PM »
I cannot remember all but yes, it was easy.
Quote
Does it convert all the current ibays and profiles?

Yes
Quote
What about the panels on the server manager - I have the advanced workgroup contrib - will that work?

I uninstalled advanced workgroup panel before and I expected impacts so I do not use it's current version with Samba 3.
Quote
Just want to know what I'm getting into before I start - if I have to allow a long time to sort things out, I'll start on Friday night, giving me Sat and Sun before people need to use it again.

If you do not have a separate test system for this to try out, I myself would use a Friday for such significant changes.

Michael
...

dwater

upgrading Samba to 3.X
« Reply #4 on: January 14, 2005, 11:43:37 AM »
Quote from: "mdo"

If you do not have a separate test system for this to try out, I myself would use a Friday for such significant changes.


OK, I did it.

Quote from: "smbd -V"
Version 3.0.7-1.2sme01


Mostly seems fine, except I lost all my printers. I am using CUPS and they are still OK on the CUPS web page, but SAMBA isn't advertising them.

Quote from: "smb.conf"
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = yes
printable = yes


The 'printers' page of the server-manager says the lists are 'in sycn'.

Also, I get an error message :

Quote from: "/var/log/messages"
Jan 14 18:23:37 truth e-smith[3041]: Skipping unknown event handler: /etc/e-smith/events/printer-sync/S90reload-samba


and, investigating :

Quote from: "tcsh"

[mwaterman@truth printer-create]# ls -l /etc/e-smith/events/printer-sync/S90reload-samba
lrwxrwxrwx    1 root     root           23 Dec 30 09:08 /etc/e-smith/events/printer-sync/S90reload-samba -> ../actions/reload-samba
[mwaterman@truth printer-create]# ls -lL !$
ls -lL /etc/e-smith/events/printer-sync/S90reload-samba
ls: /etc/e-smith/events/printer-sync/S90reload-samba: No such file or directory
[mwaterman@truth printer-create]#


Maybe that is related...

Hrm...I relinked that with ../actions/restart-samba :

Quote from: "tcsh"
[mwaterman@truth printer-sync]# rm S90reload-samba
rm: remove S90reload-samba'? y
[mwaterman@truth printer-sync]# ln -s ../actions/restart-samba !$
ln -s ../actions/restart-samba S90reload-samba


and that seemed to fix the error message. Actually, looking at /var/log/messages, it seemed I got that before upgrading too, so perhaps it is not related.

Can someone help me get my printers back?

Max.

dwater

upgrading Samba to 3.X
« Reply #5 on: January 14, 2005, 12:00:19 PM »
hrm, I also find error messages such as these :

Quote from: "/var/log/samba/nmbd.log"

[2005/01/14 17:45:17, 0] nmbd/nmbd.c:main(665)  Netbios nameserver version 3.0.7-1.2sme01 started.  Copyright Andrew Tridgell and the Samba Team 1994-2004[2005/01/14 17:45:17, 0] lib/pidfile.c:pidfile_create(90)  ERROR: nmbd is already running. File /var/run/nmbd.pid exists and process id 3225 is running.


Quote from: "/var/log/samba/smbd.log"

[2005/01/14 17:59:20, 0] printing/pcap.c:pcap_printer_fn(361)
  Unable to open printcap file lpstat for read!


I'm not sure where printing/pcap.c is.

Any advice anyone?

Max.

Robert

upgrading Samba to 3.X
« Reply #6 on: January 14, 2005, 02:20:38 PM »
The reload-samba action was provided by earlier versions of e-smith-samba. If
the new version no longer provides this action, you could ask the maintainer to
re-include it, perhaps as a symlink to restart-samba. Not providing the
reload-samba action breaks compatibility with stuff that depends on it, as you
have noticed. Meanwhile I, as the maintainer of e-smith-cups, will change the
symlink target from reload-samba to restart-samba. Thanks for spotting this.

Regarding the error in your smbd error log: what does the command 'lpstat -a'
return when you run it from the command prompt?

dwater

upgrading Samba to 3.X
« Reply #7 on: January 14, 2005, 02:55:19 PM »
Quote from: "Robert"
...If
the new version no longer provides this action, you could ask the maintainer to
re-include it...


I would feel a little out of my depth, I think. I cannot figure out how to contact him. How do I find his email address?

Quote from: "Robert"

Regarding the error in your smbd error log: what does the command 'lpstat -a'
return when you run it from the command prompt?


I am no longer near the machine, but I did run an 'lpstat -t' and it looked normal - not that I looked closely. There were certainly several printers listed.

Robert

upgrading Samba to 3.X
« Reply #8 on: January 14, 2005, 03:13:08 PM »
Next time you're near that machine, could you scan your smb.conf file for any printing related lines and post them here?

Robert

upgrading Samba to 3.X
« Reply #9 on: January 14, 2005, 03:33:44 PM »
I'll contact the maintainer of the version of e-smith-samba that you're using. FYI you can get his address with 'rpm -q --changelog e-smith-samba'.

dwater

upgrading Samba to 3.X
« Reply #10 on: January 14, 2005, 04:37:24 PM »
Quote from: "Robert"
Next time you're near that machine, could you scan your smb.conf file for any printing related lines and post them here?


I thought of that one before I left :) I took a copy of it and all the log samba log files...although isn't what I quoted above all the relevant lines?

In any case, here is what I grabbed :

http://reality.sgiweb.org/maxw/tmp/samba-debug/

Log files and the conf file.

Let me know if you spot anything.

Thanks!

Max.

Robert

upgrading Samba to 3.X
« Reply #11 on: January 14, 2005, 05:13:30 PM »
Hmmm... I don't have permission to access the files in that http directory. What you posted before are almost all relevant lines, but it's missing the lines from the global section.

dwater

upgrading Samba to 3.X
« Reply #12 on: January 15, 2005, 02:29:32 AM »
Quote from: "Robert"
Hmmm... I don't have permission...


OK, sorry about that. Please try again.

Also, the reason I upgraded to samba 3 was to fix the problem with using chinese characters in filenames. The behaviour hadn't changed after the upgrade. Could you comment on any lines that are wrong wrt that problem?

Thanks!

Max.

Robert

upgrading Samba to 3.X
« Reply #13 on: January 15, 2005, 11:43:12 AM »
Chinese characters in Samba is already being discussed in another topic on this forum. Let's not discuss that here (although it seems like you need to change the client code page in your smb.conf).

Regarding the printing related directives, I couldn't find anything wrong with the ones you specified in your smb.conf. Now let's have a look at the default values: could you post the output of 'testparm -s' please?

dwater

upgrading Samba to 3.X
« Reply #14 on: January 16, 2005, 07:17:58 AM »
Quote from: "Robert"
... could you post the output of 'testparm -s' please?


OK, I put it here :

http://reality.sgiweb.org/maxw/tmp/samba-debug/testparm.txt

thanks!

Max.