Network and Storage Protocols

CIFS Share Create Error

JPick
3,195 Views

I am getting an odd error when attempting to create a CIFS share (ONTAP 9.8P3) on a RO DP volume.  Here is the command/error message:

 

xxx-clst-01::> cifs share create -vserver xxx-prod-nas01 -share-name VARONIS_jobs$ -path /tg/jobs

Error: command failed: The specified path "/tg/jobs" cannot be used. Reason: This is not a valid file-type for CIFS share.

 

When looking at the path properties I see this:

 

xxx-clst-01::> vserver security file-directory show -path /tg/jobs -vserver xxx-prod-nas01

 

                Vserver: xxx-prod-nas01

              File Path: /tg/jobs

      File Inode Number: 97

         Security Style: unix

        Effective Style: unix

         DOS Attributes: 10

DOS Attributes in Text: ----D---

Expanded Dos Attributes: -

           UNIX User Id: 0

          UNIX Group Id: 0

         UNIX Mode Bits: 755

UNIX Mode Bits in Text: rwxr-xr-x

                   ACLs: -

 

I can create the CIFS share using -path /tg without any issues.

 

Any clues as to why a CIFS share can’t be created at path /tg/jobs?

4 REPLIES 4

pedro_rocha
3,141 Views

Can you create it via System Manager?

JPick
3,134 Views

Yes, System Manager was tried.  Nothing is working.  We will be opening a support ticket.

parisi
3,099 Views

This works fine for me in ONTAP 9.8, provided I use a directory and not a file.

 

# mkdir dir1

 

::*> vserver security file-directory show -vserver DEMO -path /home/dir1

Vserver: DEMO
File Path: /home/dir1
File Inode Number: 31518
Security Style: unix
Effective Style: unix
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
UNIX User Id: 0
UNIX Group Id: 0
UNIX Mode Bits: 755 UNIX Mode Bits in Text: rwxr-xr-x
ACLs: -

::*> cifs share create -vserver DEMO -share-name dir1$ -path /home/dir1

::*> cifs share show -vserver DEMO -share-name dir1$

Vserver: DEMO
Share: dir1$
CIFS Server NetBIOS Name: DEMO
Path: /home/dir1
Share Properties: oplocks
browsable
changenotify
show-previous-versions
Symlink Properties: symlinks
File Mode Creation Mask: -
Directory Mode Creation Mask: -
Share Comment: -
Share ACL: Everyone / Full Control
File Attribute Cache Lifetime: -
Volume Name: home
Offline Files: manual
Vscan File-Operations Profile: standard
Maximum Tree Connections on Share: 4294967295
UNIX Group for File Create: -

 

When I try to do it on a file:

 

::*> cifs share create -vserver DEMO -share-name file$ -path /home/newfile

Error: command failed: The specified path "/home/newfile" cannot be used. Reason: This is not a valid file-type for CIFS share.

 

 

JPick
3,090 Views

Thanks for the response.  We confirmed it is a directory.  Next step is to open a support ticket.

Public