LVM Issues

ProxmoxUser

New Member
Oct 29, 2008
8
0
1
We are seeing the following error at boot and appear to have lost some partitions....

erm.JPG


vpshost9:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/pve/root 95G 20G 71G 22% /
tmpfs 12G 0 12G 0% /lib/init/rw
udev 10M 64K 10M 1% /dev
tmpfs 12G 0 12G 0% /dev/shm
/dev/sda1 504M 33M 446M 7% /boot

vpshost9:~# vgdisplay
--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 1.82 TB
PE Size 4.00 MB
Total PE 476703
Alloc PE / Size 475680 / 1.81 TB
Free PE / Size 1023 / 4.00 GB
VG UUID 2zVPC7-6Cmb-OaCL-na0q-3GVB-9ARL-uBVtAz


Any suggestions as to a fix or how we can obtain our data back would be greatly appreciated! :)
 
vpshost9:/home# fdisk -l

Disk /dev/sda: 1999.9 GB, 1999978364928 bytes
255 heads, 63 sectors/track, 243150 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 243150 1952578055 8e Linux LVM

Disk /dev/dm-0: 24.6 GB, 24696061952 bytes
255 heads, 63 sectors/track, 3002 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 103.0 GB, 103079215104 bytes
255 heads, 63 sectors/track, 12532 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 1867.3 GB, 1867371249664 bytes
255 heads, 63 sectors/track, 227028 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table
 
Whats the output of

# lvs

Please can you post your /etc/fstab file? /dev/pve/data should be mounted on /var/lib/vz
 
vpshost9:/home# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
data pve -wi-ao 1.70T
root pve -wi-ao 96.00G
swap pve -wi-ao 23.00G

Mounted /dev/pve/data manually and it appears to be working ok..

/etc/fstab is:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
/dev/sda1 /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
 

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!