[CentOS] can't recover LVM volume: Please specify a *single* volume group to restore

Rudi Ahlers

Rudi at SoftDux.com
Wed Aug 3 21:18:11 UTC 2011


Hi everyone,

I'm trying to recover a deleted LVM volume but can't see to get the
syntax right.


Running the following command gives me a list of backed up LVM volumes:

root at usaxen02:[~]$ vgcfgrestore -l fluidVG_125094317679


------- snip ---------

  File:         /etc/lvm/archive/fluidVG_125094317679_00126-1479850541.vg
  VG name:      fluidVG_125094317679
  Description:  Created *before* executing 'lvremove
/dev/fluidVG_125094317679/mars.x.com_root_125152080771'
  Backup Time:  Tue Aug  2 17:40:44 2011


  File:         /etc/lvm/backup/fluidVG_125094317679
  VG name:      fluidVG_125094317679
  Description:  Created *after* executing 'lvremove
/dev/fluidVG_125094317679/mars.x.com_root_125152080771'
  Backup Time:  Tue Aug  2 17:40:44 2011


So I want to recover mars.x.com_root_125152080771 and issue the
following command:


root at usaxen02:[~]$ vgcfgrestore -f fluidVG_125094317679
mars.x.com_root_125152080771
  fluidVG_125094317679: stat failed: No such file or directory
  Couldn't read volume group metadata.
  Restore failed.

root at usaxen02:[~]$ vgcfgrestore -f fluidVG_125094317679
  Please specify a *single* volume group to restore.

root at usaxen02:[~]$ vgcfgrestore -f  mars.x.com_root_125152080771
  Please specify a *single* volume group to restore.


All different attempts, which apparently should work according to some
google search results I've found but doesn't.


Another attempt:


root at usaxen02:[~]$ vgcfgrestore -vvt
/etc/lvm/archive/fluidVG_125094317679_00126-1479850541.vg
fluidVG_125094317679
  Test mode: Metadata will NOT be updated.
      Setting global/locking_type to 1
      global/wait_for_locks not found in config: defaulting to 1
      File-based locking selected.
      Setting global/locking_dir to /var/lock/lvm
  Please specify a *single* volume group to restore.
    Test mode: Wiping internal cache
    Wiping internal VG cache




Does anyone know what the correct syntax should be on CentOS 5.5?


-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532



More information about the CentOS mailing list