Here's an end to end example of provisioning a new CIFS share, starting with volume creation all thr way through to sharing out the path.
Things to determine first:
Which cluster | cluster01 |
Which controller | cluster01-01 |
SVM name | cifs_vsv01 |
volume name | cifs_vol01 |
volume size | 100GB |
quota size | 90gb |
Share Name | cifs01 |
QOS Limit | 50 IOPS |
Junction Path Mount Point | /cifs_vol01 |
CIFS users & Access | domain01\user01 --> Full Control |
Note: We are assuming the LIF has already been created and the SVM CIFS basic config (e.g. joining a domain) has been completed
Create Volume (cifs_vol01):
cluster1::> volume create -vserver cifs_vsv01 -volume cifs_vol01 -aggregate cluster1_01_t1_aggr01 -size 100g -type RW -percent-snapshot-space 0 -space-guarantee none -snapshot-policy none
cluster1::> volume modify -vserver cvt_vsv01 -volume cifs_vol01 -fractional-reserve 0 -autosize-mode grow -max-autosize 200g
cluster1::> volume snapshot autodelete modify -vserver cifs_vsv01 -volume cifs_vol01 -enabled false
Create qtree & set Security Style
cluster1::> qtree create -vserver cifs_vsv01 -volume cifs_vol01 -qtree cifs01
cluster1::> qtree modify -vserver cifs_vsv01 -volume cifs_vol01 -qtree cifs01 -security-style ntfs
Create & Assign QOS Policy Group
cluster1::> qos policy-group create -policy-group qos_cifs_vol01 -vserver cifs_vsv01 -max-throughput 50IOPS
cluster1::> volume modify -vserver cifs_vsv01 -volume cifs_vol01 -qos-policy-group qos_cifs_vol01
Mount the volume
cluster1::> volume mount -vserver cifs_vsv01 -volume cifs_vol01 -junction-path /cifs_vol01
Create CIFS Share (cvma_mnt33):
cluster1::> vserver cifs share create -vserver cifs_vsv01 -share-name cifs01 –path /cifs_vol01/cifs01 -share-properties browsable,changenotify
Set CIFS Options (e.g. oplocks)
cluster1::> cifs share properties remove -vserver cifs_vsv01 -share-name cifs01 -share-properties oplocks
Provision Access
cluster1::> vserver cifs share access-control create -vserver cifs_vsv01 -share cifs01 -user-or-group DOMAIN01\user01 -permission Full_Control
Check CIFS Share is correctly configured
cluster1::> vserver cifs share show -vserver cifs_vsv01
cluster1::> vserver cifs share show -vserver cifs_vsv01 -share-name cifs01
Set Quota
cluster1::> volume quota policy rule create -vserver cifs_vsv01 -policy-name 8tb_hard_limit -volume cifs_vol01 -type tree -target cifs01 -disk-limit 90G
Verify Quota:
cluster1::> volume quota policy show -vserver cifs_vsv01
cluster1::> volume quota report -vserver cifs_vsv01