I need to restore some files from some vmdk that were mounted on a VM with some logical volumes.

Is it possible to use a new VM booted from a CentOS iso and mount these vmdk in order to obtain the files?


Yes it's possible in the following steps:

  • add/attach your vmdk file as new Hard Drive (chose Use an existing virtual disk) to your CentOS VM.
  • load CentOS VM.
  • type pvs -ay to scan your physical LVM devices: the -ay option activates it.
  • type vgchange -ay to activate all LVM groups and volumes on it.
  • type lvs to show LVM volumes and therefore mount them by absolute path (/dev/<volume_group>/<volume_name>).
  • an edit and an upvote! :-) – Fabby May 17 at 21:30
  • @Fabby Thank's! ;) I've made simply grammar mistakes. I'ill be more carefully in the future. – Yurij Goncharuk May 17 at 21:33
  • Нет проблем. Я делаю кучу ошибок на русском языке... – Fabby May 17 at 21:35
  • Hi @Yurij Goncharuk. I have an error during the activation of the vgroup: Refusing activation of partial LV lv_root. Use --activationmode partial to override. What can I do? – intore May 20 at 6:56
  • Hi @intore, please append to your question output of these commands: lsblk, pvs, vgs, lvs. – Yurij Goncharuk May 20 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.