Proxmox ZFS issue

Discussion in 'Proxmox VE: Installation and configuration' started by SuperMiguel, Sep 15, 2018.

  1. SuperMiguel

    SuperMiguel New Member

    Joined:
    Mar 30, 2010
    Messages:
    21
    Likes Received:
    0
    " Hello all im having an issue with ZFS and proxmox, for some reason it is reporting that im using X amount of data on side but different on another.

    Here is the zfs list -r data

    Code:
    zfs list -r data
    NAME                          USED  AVAIL  REFER  MOUNTPOINT
    data                         2.45T   100G   140K  /data
    data/backup                  5.73G   100G  5.73G  /data/backup
    data/data                    2.45T   100G  45.0M  /data/data
    data/data/subvol-103-disk-1  2.45T   100G   104G  /data/data/subvol-103-disk-1
    data/iso                     2.14G   100G  2.14G  /data/iso
    
    and here is my df -h

    Code:
    df -h
    Filesystem                    Size  Used Avail Use% Mounted on
    udev                          7.8G     0  7.8G   0% /dev
    tmpfs                         1.6G  109M  1.5G   7% /run
    rpool/ROOT/pve-1               85G  1.5G   84G   2% /
    tmpfs                         7.8G   46M  7.8G   1% /dev/shm
    tmpfs                         5.0M     0  5.0M   0% /run/lock
    tmpfs                         7.8G     0  7.8G   0% /sys/fs/cgroup
    data                          100G  256K  100G   1% /data
    data/backup                   106G  5.8G  100G   6% /data/backup
    data/data                     101G   45M  100G   1% /data/data
    data/data/subvol-103-disk-1   205G  105G  100G  52% /data/data/subvol-103-disk-1
    data/iso                      103G  2.2G  100G   3% /data/iso
    rpool                          84G  128K   84G   1% /rpool
    rpool/ROOT                     84G  128K   84G   1% /rpool/ROOT
    rpool/data                     84G  128K   84G   1% /rpool/data
    rpool/data/subvol-100-disk-1   64G  4.5G   60G   7% /rpool/data/subvol-100-disk-1
    rpool/data/subvol-101-disk-1  8.0G  1.1G  7.0G  14% /rpool/data/subvol-101-disk-1
    rpool/data/subvol-102-disk-1   16G  1.6G   15G  10% /rpool/data/subvol-102-disk-1
    rpool/data/subvol-103-disk-1   16G  1.5G   15G  10% /rpool/data/subvol-103-disk-1
    /dev/fuse                      30M   32K   30M   1% /etc/pve
    tmpfs                         1.6G     0  1.6G   0% /run/user/0
    tmpfs                         1.6G     0  1.6G   0% /run/user/1000
    As you can see in zfs list -r data, we see "data/data/subvol-103-disk-1 2.45T 100G 104G /data/data/subvol-103-disk-1" says using 2.45T but when i run df -f it says that data/data/subvol-103-disk-1 its only using 105GB. Also my VM only sees this 205GB mount instead of the 2.45T
     
  2. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    3,759
    Likes Received:
    223
    Hi,

    df use for calculation fixed block size, but zfs has dynamic blocks.
    Also, df do not know dedub, compression, snapshots and all other zfs features.
     
  3. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,513
    Likes Received:
    226
    also maybe do you have snapshots?
    Code:
    zfs list -r data -t all
    
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice