Skip to main content

Stopping or starting the CIFS server

The CIFS server on an SVM can be stopped, which can be useful when performing tasks while users are not accessing data over SMB shares. SMB access can be restarted by starting the CIFS server. By stopping the CIFS server, you can also modify the protocols allowed on the storage virtual machine (SVM).

About this task

Note
If you stop the CIFS server, established SMB sessions are terminated and their open files are closed. Workstations with cached data will not be able to save those changes, which could result in data loss.
  1. Perform one of the following actions:
    If you want to...Enter the command...
    Stop the CIFS servervserver cifs stop -vserver vserver_name [-foreground {true|false}]
    Start the CIFS servervserver cifs start -vserver vserver_name [-foreground {true|false}]

    -foreground specifies whether the command should execute in the foreground or background. If you do not enter this parameter, it is set to true , and the command is executed in the foreground.

  2. Verify that the CIFS server administrative status is correct by using the vserver cifs show command.

Example

The following commands start the CIFS server on SVM vs1:

cluster1::> vserver start -vserver vs1

cluster1::> vserver cifs show -vserver vs1

Vserver: vs1
CIFS Server NetBIOS Name: VS1
NetBIOS Domain/Workgroup Name: DOMAIN
Fully Qualified Domain Name: DOMAIN.LOCAL
Default Site Used by LIFs Without Site Membership:
Authentication Style: domain
CIFS Server Administrative Status: up