VMware Cloud Community
kmart_hb
Contributor
Contributor

vCenter 6.5 appliance will not start after restore

I had to restore my appliance from an Avamar backup and now the vmon.service is masked and I cannot unmask it. This is the error I get when trying to start vmware-vpxd service:

service-control --start vmware-vpxd

Perform start operation. vmon_profile=None, svc_names=['vmware-vpxd'], include_coreossvcs=False, include_leafossvcs=False

2017-06-20T20:37:49.518Z   Running command: ['/usr/bin/systemctl', 'set-environment', 'VMON_PROFILE=NONE']

2017-06-20T20:37:49.521Z   Done running command

2017-06-20T20:37:49.524Z   Running command: ['/usr/bin/systemctl', 'daemon-reload']

2017-06-20T20:37:49.614Z   Done running command

2017-06-20T20:37:49.614Z   Running command: ['/usr/bin/systemctl', 'set-property', u'vmware-vmon.service', 'MemoryAccounting=true', 'CPUAccounting=true', 'BlockIOAccounting=true']

2017-06-20T20:37:49.618Z   Done running command

2017-06-20T20:37:49.621Z   RC = 1

Stdout =

Stderr = Failed to execute operation: Unit file is masked

2017-06-20T20:37:49.621Z   {

    "resolution": null,

    "detail": [

        {

            "args": [

                "Stderr: Failed to execute operation: Unit file is masked\n"

            ],

            "id": "install.ciscommon.command.errinvoke",

            "localized": "An error occurred while invoking external command : 'Stderr: Failed to execute operation: Unit file is masked\n'",

            "translatable": "An error occurred while invoking external command : '%(0)s'"

        }

    ],

    "componentKey": null,

    "problemId": null

}

2017-06-20T20:37:49.621Z   Running command: ['/usr/bin/systemctl', 'unset-environment', 'VMON_PROFILE']

2017-06-20T20:37:49.625Z   Done running command

Error executing start on service vpxd. Details {

    "resolution": null,

    "detail": [

        {

            "args": [

                "vmware-vmon"

            ],

            "id": "install.ciscommon.service.failstart",

            "localized": "An error occurred while starting service 'vmware-vmon'",

            "translatable": "An error occurred while starting service '%(0)s'"

        }

    ],

    "componentKey": null,

    "problemId": null

}

Service-control failed. Error {

    "resolution": null,

    "detail": [

        {

            "args": [

                "vmware-vmon"

            ],

            "id": "install.ciscommon.service.failstart",

            "localized": "An error occurred while starting service 'vmware-vmon'",

            "translatable": "An error occurred while starting service '%(0)s'"

        }

    ],

    "componentKey": null,

    "problemId": null

}

Is there anything else I can check or is this a complete rebuild? Logs? The postgres database will not come up on my appliance and I'd really like to avoid rebuilding. We do vmdk-level backups with Avamar. Thanks.

3 Replies
vijayrana968
Virtuoso
Virtuoso

Did you try to unmask service with systemctl unmask vmon.service

Have a look on this : vCenter 6.5 - vcenter appliance stops working out of the blue, AGAIN!!

kmart_hb
Contributor
Contributor

As I stated, I tried to unmask that service to no avail. I also tried everything in that other discussion before posting this one. If this is a known issue with 6.5, I hope it's resolved in a future code release.

Apparently plain vmdk-level backups will not work with Postgres appliances. I was able to manually restore my vCenter through flat.vmdks.

I will read about best practices in backing up these machines. I find it hard to believe that products provided under one roof can't work well with each other.

0 Kudos
andresb39
Contributor
Contributor

Primero liste los servicios que no habían iniciado

service-control --status

revise si estaban como masked

systemctl list-unit-files | grep masked

hice un unmasked de los servicios que no me iniciaban

systemctl unmask todos los servicios que no iniciaron y que estaban como masked

desde la consola de administracion del vCenter reinicie el servidor

cuando inicio verifique que todos los servicio iniciaron correctamente y puede ingresar a la consola del vCenter.

Gracias a todos