Restarting the Samba homedir server

Jurjen Bokma

April 2010

    1. See what machines have users logged on, and decide whether there are enough to justify using the mailing list. If so, use it.

    2. At cusp - 10 minutes or so, notify the last logged-in users via wall (see )

  1. user@server:~$ sudo smbcontrol smbd close-share apps
    user@server:~$ sudo smbcontrol smbd close-share homes

  2. user@server:~$ sudo /etc/init.d/samba stop

    This will not kill all smbd processes.

  3. user@server:~$ sudo apt-get update
    user@server:~$ sudo apt-get dist-upgrade

  4. Log in on the console, and reboot:

    user@server:~$ sudo reboot

  5. Clients reclaim their shares on the rebooted server. I don't know whether any data loss occurs in running processes. It looks like some clients reclaim their shares, but as some hadn't got them any more. We may have to remount them. Write a Landscape script that says:

      mount -a

    I didn't though. The users had better reboot.