[SOLVED] Confused by volumes

spixxy

New Member
Oct 21, 2020
4
0
1
24
Hello,

I have installed Proxmox 6.2-4 and I am quite confused with volumes.
I didn't install this by myself, I came to already installed system so I don't know if the installation went without problems.

Proxmox is installed on 1 TB drive and on the left side is only local storage visible - it has only nearly 100 GB.
Then there is almost 1 TB data visible in LVM-Thin.

Code:
lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                CShLkT-EHfA-fQM7-TfPH-mmay-78bZ-dDPd2C
  LV Write Access        read/write
  LV Creation host, time proxmox, 2020-10-04 17:15:39 +0200
  LV Status              available
  # open                 2
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                f5pOkc-aDR1-I4aM-DBzB-CHqQ-23uw-xDGWRi
  LV Write Access        read/write
  LV Creation host, time proxmox, 2020-10-04 17:15:39 +0200
  LV Status              available
  # open                 1
  LV Size                96.00 GiB
  Current LE             24576
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                UZlEN0-HF34-VGut-Vug3-xBrN-LKZV-LYjMU7
  LV Write Access        read/write
  LV Creation host, time proxmox, 2020-10-04 17:15:40 +0200
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                976.81 GiB
  Allocated pool data    0.00%
  Allocated metadata     0.20%
  Current LE             250064
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

Code:
lvs -a
  LV              VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data            pve twi-a-tz-- 976.81g             0.00   0.20
  [data_tdata]    pve Twi-ao---- 976.81g
  [data_tmeta]    pve ewi-ao----  <9.97g
  [lvol0_pmspare] pve ewi-------  <9.97g
  root            pve -wi-ao----  96.00g
  swap            pve -wi-ao----   8.00g

I've tried to search for something but everything I found looked different than this.
What should I do to have more storage for VMs? Can I use data storage or should I resize the root storage? Can I safely shrink the data storage?

Also when I want to make a backup, I cannot select any target storage - that selection is empty. So I assume something is not right here?

Thank you in advance!
 
hi,

can you post the contents of your /etc/pve/storage.cfg ?
 
  • Like
Reactions: spixxy
I cannot find that file

Code:
ls -l /etc/pve/
total 3
    authkey.pub
    authkey.pub.old
    corosync.conf
    firewall
    ha
    local -> nodes/fare-srv1
    lxc -> nodes/fare-srv1/lxc
    nodes
    openvz -> nodes/fare-srv1/openvz
    priv
    pve-root-ca.pem
    pve-www.key
    qemu-server -> nodes/fare-srv1/qemu-server
    replication.cfg
    sdn
    virtual-guest
    vzdump.cron
 
well that's probably why you don't see the storages, but this file should exist by default...

you can try creating it with these contents:
Code:
dir: local
        path /var/lib/vz
        content iso,vztmpl,snippets,backup
        maxfiles 0
        shared 0

lvmthin: local-lvm
        thinpool data
        vgname pve
        content rootdir,images

save it as /etc/pve/storage.cfg

it should belong to root:www-data with permissions 640. this should do it: chown root:www-data /etc/pve/storage.cfg and then chmod 640 /etc/pve/storage.cfg
 
  • Like
Reactions: spixxy
Great, I see it now in web interface - but VM images did not appear in that local-lvm data storage although they disappeared from local storage contents listing. They still take space of local storage.
Is there anything else I have to do? Like move images outside, create that config and move them back? Or reboot the server?

And I have one more question. Is it possible to shrink the data storage and expand the root storage? I have found multiple results, some say it's possible, some say it's not possible and the only way is to create new lv. Could you please help me with this too?
 
Great, I see it now in web interface - but VM images did not appear in that local-lvm data storage although they disappeared from local storage contents listing. They still take space of local storage.
sorry, add images in the content line of local and they should show up. (also can be done in GUI, Datacenter -> Storage -> local -> Edit -> Content)

the images didn't appear in local-lvm because they're just not there. (the lvs output says its used 0.00%)

Is it possible to shrink the data storage and expand the root storage? I have found multiple results, some say it's possible, some say it's not possible and the only way is to create new lv. Could you please help me with this too?
it's possible but in your case probably not needed. you can move the disks to the local-lvm in the GUI (VM -> Hardware -> the disk you want to move -> Move Disk)
 
  • Like
Reactions: spixxy
glad to be of help
 
  • Like
Reactions: spixxy

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!