Configure vCenter to enable LVM snapshots
search cancel

Configure vCenter to enable LVM snapshots

book

Article ID: 313481

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Simplify on-boarding of artic customers by enabling LVM support as it is pre-requisite for artic.

Symptoms:
Root is not LVM enabled or snapshot volume is not present.

Environment

VMware vCenter Server 7.0.3
VMware vCenter Server 7.0.x
VMware vCenter Server 6.0.x

Resolution

The issue has been resolved in VC 8.0.

Workaround:

To workaround the issue, please follow the below mentioned steps:

  1. SSH to vCenter appliance using root user.

  2. Copy the prepare_vc_for_lvm_snapshot.sh script attached to this article to any directory except /tmp.

  3. Make the script executable by running:

chmod +x prepare_vc_for_lvm_snapshot.sh

  1. Execute the script with option --precheck to know if LVM is enabled on root and snapshot disk is configured:

If LVM is not enabled on root:
Precheck
root@vcsa_name [ ~ ]# ./prepare_vc_for_lvm_snapshot.sh --precheck
INFO Check if LVM is enabled on root and snapshot disk is configured.
INFO Root is not on LVM
Run /prepare_vc_for_lvm_snapshot.sh to prepare VC for LVM snapshot.

If LVM is enabled on root and snapshot disk is not configured:
Precheck
root@vcsa_name [ ~ ]# ./prepare_vc_for_lvm_snapshot.sh --precheck
INFO Check if LVM is enabled on root and snapshot disk is configured.
INFO Root is on LVM
INFO Snapshot volume is not configured
Run /root/prepare_vc_for_lvm_snapshot.sh to prepare VC for LVM snapshot.

  1. If LVM is not enabled on root or snapshot disk is not configured, take Virtual Machine level snapshot and execute the script. Provide SSO user name and password when prompted by script.

If LVM is not enabled on root:
root@vcsa_name [ ~ ]# ./prepare_vc_for_lvm_snapshot.sh
Enter SSO user name : sso_user_name
Enter SSO password :
Enter SDK port ( default : 443 ) :
INFO Root is not on LVM
Configuring VC takes more than 10 minutes.
Please follow this document:  https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-9720B104-9875-4C2C-A878-F1C351A4F3D8.html
to take a VM level snapshot, to revert the appliance in case of any issues.
Do you want to proceed? (y/n) Y
********************* Enabling LVM ***********************

If LVM is enabled on root and snapshot disk is not configured:
root@vcsa_name [ ~ ]# ./prepare_vc_for_lvm_snapshot.sh
Enter SSO user name : sso_user_name
Enter SSO password :
Enter SDK port ( default : 443 ) :
INFO Root is on LVM
INFO Snapshot volume is not configured
.
.
.
 Successfully configured snapshot volume.

  1. To verify if script execution is completed, execute the script with option --precheck

root@vcsa_name [ ~ ]# ./prepare_vc_for_lvm_snapshot.sh --precheck
INFO Check if LVM is enabled on root and snapshot disk is configured.
INFO Root is on LVM
INFO Snapshot volume is already configured
VC is prepared for LVM snapshot.


 


Attachments

prepare_vc_for_lvm_snapshot get_app