VMware Cloud Community
RBannikov
Contributor
Contributor
Jump to solution

VSAN Performance Service is not starting up

Hello,

After updating VCenter Server 6.0 to Update 3d (Windows based) VSAN Performance Service is turned off.

If I try to enable VSAN Performance Service, there is a message “Cannot complete the operation because the file or folder 8b6cf… already exists”. “Failed to create directory .vsan.stats”

In VSAN Health there is a Warning “Stats DB Object”

There are folders .vsan.stats and 8b6cf.. in the vsan datastore.

But i cannot delete these folders and files inside. They are locked.

Does anybody know how to delete these folders or another way how to solve the issue with vsan performance service?

0 Kudos
1 Solution

Accepted Solutions
RBannikov
Contributor
Contributor
Jump to solution

Hello Community,

The problem was solved using command as below:

/localhost/datacentername/computers/clustername> vsan.perf.stats_object_setpolicy -o /localhost/datacentername/storage/vmprofiles/storagepolicyname /computers/clustername/

datacentername, clustername, storagepolicyname must be used as per actual name in your System. If storagepolicyname contains  space character " ", the error occurres that file is not found.

View solution in original post

0 Kudos
3 Replies
TheBobkin
Champion
Champion
Jump to solution

Hello RBannikov

Welcome to Communities.

Not positive if they were present in 6.0 or introduced in 6.5 but there are commands in RVC to manually remove and recreate the vSAN Performance stats DB Object/folder - it then should just be a case of re-enabling the Performance service to recreate a new healthy stats DB Object.

Check the Health/attributes of this Object (can be seemingly healthy Object but broken in other ways though from experience though):

> vsan.perf.stats_object_info ~cluster

https://www.virten.net/2017/07/vsan-6-6-rvc-guide-part-5-performance-service/#vsan-perf-stats_object...

Delete the stats DB Object (Note that any historical performance data will be lost):

> vsan.perf.stats_object_delete ~cluster

https://www.virten.net/2017/07/vsan-6-6-rvc-guide-part-5-performance-service/#vsan-perf-stats_object...

Enable the Performance service or recreate the stats DB Object:

> vsan.perf.stats_object_create -o <SPBM policy> ~cluster

https://www.virten.net/2017/07/vsan-6-6-rvc-guide-part-5-performance-service/#vsan-perf-stats_object...

Bob

0 Kudos
RBannikov
Contributor
Contributor
Jump to solution

Hello Bob,

Thank you for your response.

I have tried RVC but error occurred on 30% completion (the same as in web client). Please see attached RVC.jpg

Deleting stats object also not possible because it is not shown any objects after vsan.perf.stats_object_info ~cluster

But phisically there is a vsan.stats folder in vsan datastore

I have attached report for this error after trying to enable performancd service from web client. Please see attached PerfService.xps

Is it another option how to delete vsan.stats folder from vsan datastore?

Thanks in advance.

0 Kudos
RBannikov
Contributor
Contributor
Jump to solution

Hello Community,

The problem was solved using command as below:

/localhost/datacentername/computers/clustername> vsan.perf.stats_object_setpolicy -o /localhost/datacentername/storage/vmprofiles/storagepolicyname /computers/clustername/

datacentername, clustername, storagepolicyname must be used as per actual name in your System. If storagepolicyname contains  space character " ", the error occurres that file is not found.

0 Kudos