LVM partition restore

micfrip

Renowned Member
Sep 19, 2013
23
0
66
Hi,

After an failed upgrade, I had to reinstall my Proxmox server.

However, I have stored all my backups on the second drive (a LVM formated drive).

After reinstallation, I am not able to mount the second disk LVM partition anymore.
The usual commands "lvm lvscan" only shows the news partitions on the first drive.

Any help would be really appreciated.

Many thanks,


Michaël
 
Hi,

After an failed upgrade, I had to reinstall my Proxmox server.

However, I have stored all my backups on the second drive (a LVM formated drive).

After reinstallation, I am not able to mount the second disk LVM partition anymore.
The usual commands "lvm lvscan" only shows the news partitions on the first drive.

Any help would be really appreciated.

Many thanks,


Michaël
Hi,
are the second disk part of another VG?
What is the output of following commands?
Code:
pvscan
pvs
vgscan
vgs
lvscan
lvs
blkid
Udo
 
Hi,
are the second disk part of another VG?
What is the output of following commands?
Code:
pvscan
pvs
vgscan
vgs
lvscan
lvs
blkid
Udo

Hi,

pvscan
Code:
File descriptor 3 (/usr/share/bash-completion/completions) leaked on pvscan invocation. Parent PID 2452: -bashFile descriptor 4 (/usr/share/bash-completion/completions) leaked on pvscan invocation. Parent PID 2452: -bash
  PV /dev/sda2   VG vg0   lvm2 [1.82 TiB / 1.60 TiB free]
  Total: 1 [1.82 TiB] / in use: 1 [1.82 TiB] / in no VG: 0 [0   ]

pvs
Code:
File descriptor 3 (/usr/share/bash-completion/completions) leaked on pvs invocation. Parent PID 2452: -bashFile descriptor 4 (/usr/share/bash-completion/completions) leaked on pvs invocation. Parent PID 2452: -bash
  PV         VG   Fmt  Attr PSize PFree
  /dev/sda2  vg0  lvm2 a--  1.82t 1.60t

vgscan
Code:
File descriptor 3 (/usr/share/bash-completion/completions) leaked on vgscan invocation. Parent PID 2452: -bashFile descriptor 4 (/usr/share/bash-completion/completions) leaked on vgscan invocation. Parent PID 2452: -bash
  Reading all physical volumes.  This may take a while...
  Found volume group "vg0" using metadata type lvm2

vgs
Code:
File descriptor 3 (/usr/share/bash-completion/completions) leaked on vgs invocation. Parent PID 2452: -bashFile descriptor 4 (/usr/share/bash-completion/completions) leaked on vgs invocation. Parent PID 2452: -bash
  VG   #PV #LV #SN Attr   VSize VFree
  vg0    1   4   0 wz--n- 1.82t 1.60t

lvscan
Code:
File descriptor 3 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 2452: -bashFile descriptor 4 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 2452: -bash
  ACTIVE            '/dev/vg0/root' [10.00 GiB] inherit
  ACTIVE            '/dev/vg0/swap' [4.00 GiB] inherit
  ACTIVE            '/dev/vg0/tmp' [5.00 GiB] inherit
  ACTIVE            '/dev/vg0/home' [200.00 GiB] inherit

lvs
Code:
File descriptor 3 (/usr/share/bash-completion/completions) leaked on lvs invocation. Parent PID 2452: -bashFile descriptor 4 (/usr/share/bash-completion/completions) leaked on lvs invocation. Parent PID 2452: -bash
  LV   VG   Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert
  home vg0  -wi-ao-- 200.00g
  root vg0  -wi-ao--  10.00g
  swap vg0  -wi-ao--   4.00g
  tmp  vg0  -wi-ao--   5.00g

blkid
Code:
/dev/sda1: UUID="f9cb41e0-f10b-4430-9b54-4f38a1c87549" TYPE="ext2"/dev/sda2: UUID="WlFt9M-2h6a-Coxe-onjP-wuKM-a5Uh-YYcVR0" TYPE="LVM2_member"
/dev/mapper/vg0-root: UUID="5b456f21-a428-4c12-a588-1e6503d76463" TYPE="ext3"
/dev/mapper/vg0-swap: UUID="a0c57c17-25e7-4d9e-a47f-b4d151da419d" TYPE="swap"
/dev/mapper/vg0-tmp: UUID="cd9c5330-bc85-4292-93f7-cf208e04d35a" TYPE="reiserfs"
/dev/mapper/vg0-home: UUID="05273124-83c7-4569-a928-4cf48245fc9f" TYPE="ext4"

Many thanks for your help.


Michaël
 
...
blkid
Code:
/dev/sda1: UUID="f9cb41e0-f10b-4430-9b54-4f38a1c87549" TYPE="ext2"/dev/sda2: UUID="WlFt9M-2h6a-Coxe-onjP-wuKM-a5Uh-YYcVR0" TYPE="LVM2_member"
/dev/mapper/vg0-root: UUID="5b456f21-a428-4c12-a588-1e6503d76463" TYPE="ext3"
/dev/mapper/vg0-swap: UUID="a0c57c17-25e7-4d9e-a47f-b4d151da419d" TYPE="swap"
/dev/mapper/vg0-tmp: UUID="cd9c5330-bc85-4292-93f7-cf208e04d35a" TYPE="reiserfs"
/dev/mapper/vg0-home: UUID="05273124-83c7-4569-a928-4cf48245fc9f" TYPE="ext4"
...
Hi Michaël,
this looks like only one disk... where is the second (sdb) one?
Does "fdisk -l" show another disk?

Are both disk are visible in the bios?

And what's about your installation - because of the bash-completion-error.

Udo
 
Hi Michaël,
this looks like only one disk... where is the second (sdb) one?
Does "fdisk -l" show another disk?

Are both disk are visible in the bios?

And what's about your installation - because of the bash-completion-error.

Udo

Yes, there is a second disk :

Code:
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaa558907


   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  3907029167  1953513560   8e  Linux LVM
 
Yes, there is a second disk :

Code:
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaa558907


   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  3907029167  1953513560   8e  Linux LVM

But why this hdd don't appear with blkid?
 
I think that was because I didn't unmount correctly the LVM partition.

Now the problem is solved : I have used Testdisk to retrieve my files. Everything is ok now.

Thank you !


Michaël
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!