# vSAN Reset

1- Upload the attached script to the vCenter via sftp.

2- Access the vCenter via ssh and enable ssh shell:  
\- Log in as an administrative user, such as root.  
\- Type shell.set --enabled true and press Enter.  
\- Type shell and press Enter.

3- Make sure the script is executable:  
\# chmod +x erase\_fileservice\_config.py

4- Run the script:  
\# python ./erase\_fileservice\_config.py -U 'administrator@vsphere.local' -P 'vCenter\_password' -u 'root' -p 'root\_password' -d 'VxRail-Datacenter' -c 'VxRail-Virtual-SAN-Cluster-xxxxxxxxxxxxxxxxxxxxxxxxxx'

The script parameters:  
-U vcUser   
-P vcPassword   
-u esxUser   
-p esxPassword   
-d datacenterName   
-c clusterName

I extracted some of the parameters from the logs. If any of them is wrong please change it.

5- Wait until the script returns "Erase file service config complete" then try to reconfigure the file service again.  
6- If it fails again, please collect new logs from the hosts and their managing vCenter then upload to SR.

python ./erase\_fileservice\_config.py -U 'administrator@vsphere.snowlab.tech' -P 'CHANGEME!' -u 'root' -p 'CHANGEME!' -d 'SnowLab' -c 'CL01'