ZFS dataset question (simple)

Discussion in 'Proxmox VE: Installation and configuration' started by HenryTheTech, May 19, 2019.

  1. HenryTheTech

    HenryTheTech Member

    Joined:
    May 20, 2018
    Messages:
    44
    Likes Received:
    0
    I am stuck with this one and I know it should be a simple answer, so sorry in advance...


    Code:
    zvol/henry/CQFsync                             3.10G  4.90G    96K  /zvol/henry/CQFsync
    zvol/henry/CQFsync/subvol-100-disk-0           3.10G  1.90G  3.10G  /zvol/henry/CQFsync/subvol-100-disk-0
    This seems obviously correct to me as the child container is 3.10GB and therefore the remainder 1.90GB is correct.

    But then in my torrent dataset, it looks like this:


    Code:
    zvol/henry/torrent                              241G   159G    96K  /zvol/henry/torrent
    zvol/henry/torrent/subvol-100-disk-0            241G  8.60G   241G  /zvol/henry/torrent/subvol-100-disk-0
    The quota on henry/torrent = 400G so that is correct (241 + 159 = 400)


    I cannot for the life of me figure out why there is only 8.6G remaining when there should be 159G remaining in the subvol system

    there are no snapshots or anything also
     
  2. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,694
    Likes Received:
    329
    You created the LX(C) container with a default size of your disk. Therefore the disk has a limit that is lower than the disk limit. You can query this by:

    Code:
    zfs get refquota zvol/henry/torrent/subvol-100-disk-0
     
  3. HenryTheTech

    HenryTheTech Member

    Joined:
    May 20, 2018
    Messages:
    44
    Likes Received:
    0
    You are correct sir:

    Code:
    zfs get refquota zvol/henry/torrent/subvol-100-disk-0
    
    zvol/henry/torrent/subvol-100-disk-0  refquota  250G      local
    Might I ask how to increase this? The following is having no effect:

    Code:
    zfs set quota=400G zvol/henry/torrent/subvol-100-disk-0
     
  4. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,694
    Likes Received:
    329
    Use refquota:

    Code:
    zfs set refquota=400G zvol/henry/torrent/subvol-100-disk-0
    You also have to change the disk size in PVE itself, so it would be best to just increase the size of the disk in PVE directly. Internally, the quota command will be issued by PVE.
     
    HenryTheTech likes this.
  5. HenryTheTech

    HenryTheTech Member

    Joined:
    May 20, 2018
    Messages:
    44
    Likes Received:
    0
    You sir are the best in the world.

    I had no idea there was a difference between quota and refquota. From this link:

    For anyone else wondering where this is accomplished its in the container or vm menu under /rescources ---> resize disk.
     
  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