No /dev/mapper/pve-data after VE 5.0 installation

Ralf

New Member
Mar 30, 2014
18
0
1
Germany
Hello,

I decided to upgrade from Proxmox VE 3.4 to 5 using proxmox-ve_5.0-5ab26bc-5.iso
After fresh installation with default values concerning the HDD (ext4, no changes to swapsize, maxroot, ...) I miss the directory /dev/mapper/pve-data

# df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 1.6G 9.0M 1.6G 1% /run
/dev/mapper/pve-root ext4 94G 1.3G 88G 2% /
tmpfs tmpfs 7.9G 25M 7.8G 1% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/fuse fuse 30M 16K 30M 1% /etc/pve
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0


The server has one single HDD with 931GB, no RAID. What could have went wrong? Thank you in advance for your help.
 
Thank you very much for the hints, Udo. In the meantime I installed Proxmox VE 4.3 (proxmox-ve_4.4-eb2d6f1e-2.iso), but with swapsize=16, maxroot=20, minfree=16 and maxvz=879 (hdsize is 931). The installation gave the same result: no /dev/mapper/pve-data. For that installation the outputs are:
Code:
root@server16:~# pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sda3  pve  lvm2 a--  931.26g 16.04g
root@server16:~# vgs
  VG   #PV #LV #SN Attr   VSize   VFree
  pve    1   3   0 wz--n- 931.26g 16.04g
root@server16:~# lvs
  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data pve  twi-a-tz-- 879.00g             0.00   0.42
  root pve  -wi-ao----  20.00g
  swap pve  -wi-ao----  16.00g
root@server16:~# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0

Shouldn't there be a line like "/dev/pve/data /var/lib/vz ext4 defaults 0 1" in fstab?
 
Last edited:
"Shouldn't there be a line like "/dev/pve/data /var/lib/vz ext4 defaults 0 1" in fstab?"

I can confirm on one of my PVE 5 servers with ext4 for system disk, the line above does exist in my fstab output
 
Shouldn't there be a line like "/dev/pve/data /var/lib/vz ext4 defaults 0 1" in fstab?
Hi Ralf,
no - pve/data is used as lvm-thin.

Take a look at the storage.cfg:
Code:
lvmthin: local-lvm
        thinpool data
        vgname pve                                                                                                                                                       
        content images,rootdir
This mean, you vm-disks are real logical volumes, not an file on a mounted filesystem.

Udo
 
Thank you Udo for that explanation. The reason for asking the question above was, that I am not able to use local-lvm, since the Templates button and the Upload button are inactive (grey), as shown in the attached picture.
proxmox local-lvm.JPG
So I better should have asked for a hint how to upload my VM backups to the server and restore them. What are recommended values for maxroot (=size of 'local') and maxvz (=size of local-vm) to be set up during installation for that 1TB HDD?
Thank you. Ralf
 
Last edited:
create volume:
lvcreate -V100G -T pve/data --name XXX
mkfs.ext4 /dev/pve/XXX
mount it ( and add it to fstab ) under dir i.e. /templates
then add it in storage as type directory and select templates,iso and backup
 

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!