• Decrease size of the ZFS file system after installation

    How do I resize my partition zfs? I just installed Antergos on my machine, I used the option to erase the disk completely, but would like to decrease the size of the partition and use the space for other things. Research lead me to solutions for freebsd or solar systems. In several comments say it would be possible through the gpart command. already tested, but the options are not the same, not even in the manual there is a reference to the zfs.

  • The available space was limited internally, externally size remained the same. Decreases from 500GB to 170GB, but fdisk also tells me that I do not have free space to create another partition.

    $ sudo zfs set quota=170g antergos_vu1o/home

    $ sudo zfs list
    antergos_vu1o 8.42G 441G 6.36G /mnt
    antergos_vu1o/home 140K 170G 140K /mnt/home
    antergos_vu1o/swap 2.06G 443G 72K -

    $ sudo zfs set quota=170g antergos_vu1o

    $ sudo zfs list
    antergos_vu1o 8.42G 162G 6.36G /mnt
    antergos_vu1o/home 140K 162G 140K /mnt/home
    antergos_vu1o/swap 2.06G 164G 72K -

    $ sudo fdisk -l /dev/sda
    Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: 8AF24488-E19F-4669-9720-375B84D3B2CB

    Device Start End Sectors Size Type
    /dev/sda1 2048 6143 4096 2M BIOS boot
    /dev/sda2 6144 1054719 1048576 512M Linux filesystem
    /dev/sda3 1054720 976773134 975718415 465.3G Solaris root

    $ sudo parted /dev/sda print
    Model: ATA TOSHIBA MQ01ABD0 (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 3146kB 2097kB BIOS_BOOT bios_grub
    2 3146kB 540MB 537MB ext4 ANTERGOS_BOOT
    3 540MB 500GB 500GB ANTERGOS_ZFS

installation314 system136 zfs45 resize1 Posts 3Views 2051
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.