Fresh Install - LVM and directory Storage questions

flotho

New Member
Sep 3, 2012
17
0
1
[SIZE=-1]Hy all of you,

I'm brand new in using proxmox VE2.1 and I really appreciate this tool.
I'm surfing the web to learn and find appropriate resources.
I also try to organise correctly my environment.

One of the first question is whereis my diskspace?
I explain, I had a 500GB RAID disk and here is my command line result :
Code:
      root@proxmox:~#             lvdisplay
            --- Logical volume ---
            LV Path                /dev/pve/swap
            LV Name                swap
            VG Name                pve
            LV UUID                            6hpeUQ-Id7p-8ZHb-t38K-eOP0-uFfC-N7M1wJ
            LV Write Access        read/write
            LV Creation host, time proxmox, 2012-09-03 14:50:26             +0200
            LV Status              available
            # open                 1
            LV Size                7.00 GiB
            Current LE             1792
            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                            bYw2Rk-hgku-UfK5-d54s-5pJm-YfqP-iCIcd1
            LV Write Access        read/write
            LV Creation host, time proxmox, 2012-09-03 14:50:26             +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 Path                /dev/pve/data
            LV Name                data
            VG Name                pve
            LV UUID                            1jWEwv-TFq7-hLjP-p9Wz-eaxB-K60K-r4LJS2
            LV Write Access        read/write
            LV Creation host, time proxmox, 2012-09-03 14:50:26             +0200
            LV Status              available
            # open                 1
            LV Size                345.75 GiB
            Current LE             88512
            Segments               1
            Allocation             inherit
            Read ahead sectors     auto
            - currently set to     256
            Block device           253:2
            
            ========================
            root@proxmox:~# 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               3
              Max PV                0
              Cur PV                1
              Act PV                1
              VG Size               464.75 GiB
              PE Size               4.00 MiB
              Total PE              118975
              Alloc PE / Size       114880 / 448.75 GiB
              Free  PE / Size       4095 / 16.00 GiB
              VG UUID                           sr3gR6-h1mZ-fsxC-i9j2-esTe-P3IH-Y2b1pn
            
            root@proxmox:~# df -H
            Filesystem             Size   Used  Avail Use% Mounted on
            /dev/mapper/pve-root   102G   1.1G    96G   2% /
            tmpfs                  4.2G      0   4.2G   0% /lib/init/rw
            udev                   4.2G   205k   4.2G   1% /dev
            tmpfs                  4.2G    20M   4.2G   1% /dev/shm
            /dev/mapper/pve-data   366G   734M   365G   1% /var/lib/vz
            /dev/sda1              519M    59M   434M  12% /boot
            /dev/fuse               32M    13k    32M   1% /etc/pve[COLOR=#990000][COLOR=#3333ff][CODE]
          [/COLOR]
        [/COLOR]It gives us 448GB used. [/SIZE]
    [SIZE=-1][SIZE=-1]Is it normal that 96 Gb are used for         root? Is it possible/dangerous to change this?[/SIZE]If yes, how       can I do proceed?
      
      Then, when I read the documentation, it is explained that LVM       storage is the best to use, but when I create one, I have almost no space free. [/SIZE][SIZE=-1]Is it normal?
      Some posts on the are explaining that PVE already create one and       it is useless to create one more if the hardware doesn't change.       Is it correct?[/SIZE]
    [SIZE=-1][SIZE=-1]Does a new LVM storage will adapt         its size dynamically so that creating a new one is relevant?[/SIZE]
      
      What I would like to understand now is if it is correct to work       with directory storage only ? Will snapshot still available if no       LVM is used or does all the directory created are already "inside"       the default LVM ?
      Should I create folders under the /var/lib/vz which is the LVM       default?
      
      Thanks in advance for your answers.
      
      Regards,
      
      Florent THOMAS[/SIZE]
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!