Pre-calcola gli hash BranchCache sui percorsi SMB ONTAP specificati
È possibile configurare il servizio BranchCache per pre-calcolare gli hash per un singolo file, per una directory o per tutti i file di una struttura di directory. Questo può essere utile se si desidera calcolare gli hash sui dati in una condivisione abilitata per BranchCache durante le ore non di punta.
Se si desidera raccogliere un campione di dati prima di visualizzare le statistiche hash, è necessario utilizzare statistics start e opzionale statistics stop comandi.
-
È necessario specificare la SVM (Storage Virtual Machine) e il percorso su cui si desidera pre-calcolare gli hash.
-
È inoltre necessario specificare se si desidera che gli hash vengano calcolati in modo ricorsivo.
-
Se si desidera che gli hash vengano calcolati in modo ricorrente, il servizio BranchCache attraversa l'intero albero di directory nel percorso specificato e calcola gli hash per ciascun oggetto idoneo.
Scopri di più su
statistics startEstatistics stopnel "Riferimento al comando ONTAP" .
-
Pre-calcolare gli hash come desiderato:
Se si desidera pre-calcolare gli hash su… Immettere il comando… Un singolo file o directory
vserver cifs branchcache hash-create -vserver vserver_name -path path -recurse falseIn modo ricorrente su tutti i file di una struttura di directory
vserver cifs branchcache hash-create -vserver vserver_name -path absolute_path -recurse true -
Verificare che gli hash vengano calcolati utilizzando
statisticscomando:-
Visualizzare le statistiche per
hashdOggetto sull'istanza SVM desiderata:statistics show -object hashd -instance vserver_name -
Verificare che il numero di hash creati aumenti ripetendo il comando.
Ulteriori informazioni su
statistics shownella "Riferimento al comando ONTAP". -
Nell'esempio seguente vengono creati gli hash sul percorso /data E su tutti i file e sottodirectory contenuti su SVM vs1:
cluster1::> vserver cifs branchcache hash-create -vserver vs1 -path /data -recurse true
cluster1::> statistics show -object hashd -instance vs1
Object: hashd
Instance: vs1
Start-time: 9/6/2012 19:09:54
End-time: 9/6/2012 19:11:15
Cluster: cluster1
Counter Value
-------------------------------- --------------------------------
branchcache_hash_created 85
branchcache_hash_files_replaced 0
branchcache_hash_rejected 0
branchcache_hash_store_bytes 0
branchcache_hash_store_size 0
instance_name vs1
node_name node1
node_uuid
11111111-1111-1111-1111-111111111111
process_name -
cluster1::> statistics show -object hashd -instance vs1
Object: hashd
Instance: vs1
Start-time: 9/6/2012 19:09:54
End-time: 9/6/2012 19:11:15
Cluster: cluster1
Counter Value
-------------------------------- --------------------------------
branchcache_hash_created 92
branchcache_hash_files_replaced 0
branchcache_hash_rejected 0
branchcache_hash_store_bytes 0
branchcache_hash_store_size 0
instance_name vs1
node_name node1
node_uuid
11111111-1111-1111-1111-111111111111
process_name -