Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [solved] pfSense KVM guest - additional disk / grow disk

    Scheduled Pinned Locked Moved Virtualization
    4 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • junicastJ
      junicast
      last edited by

      Hi,

      I'm running a pfSense 2.4.1 under KVM and it's just smooth, thank you.
      I added another virtio block (raw) device to the guest in order to set it up as squid hdd cache.

      Now I'm having real trouble getting the disk to work.
      geom disk list shows the disk but I cannot create GPT partition table with gpart, neither does gpart show the disk.
      What's wrong here?

      geom disk list
      Geom name: vtbd1
      Providers:
      1\. Name: vtbd1
         Mediasize: 21474836480 (20G)
         Sectorsize: 512
         Mode: r1w1e1
         descr: (null)
         ident: (null)
         rotationrate: unknown
         fwsectors: 63
         fwheads: 16
      
      gpart list vtbd1
      gpart: No such geom: vtbd1.
      
      gpart create -s GPT vtbd1
      gpart: geom 'vtbd1': Operation not permitted
      

      OK, well, maybe I'm just too dump, but my other option would be to extend my main disk an just put the disk cache there…
      I'm running ZFS btw. There's not much to find about how to expand that, only for UFS.

      Thank you so much.  ;D

      1 Reply Last reply Reply Quote 0
      • junicastJ
        junicast
        last edited by

        Did I make an error in my question or why is nobody answering?

        1 Reply Last reply Reply Quote 0
        • werterW
          werter
          last edited by

          Hi.
          Try to use Proxmox VE. It's a best KVM hypervisor with Web GUI and ZFS, clustering, autobackup, OVS etc. and all of that out-of-box!

          1 Reply Last reply Reply Quote 0
          • junicastJ
            junicast
            last edited by

            You are suggesting to migrate to another virtualization platform just in order to get some disk space?
            There must be an easier solution, right?

            Edit:
            Of course there is. Removed the disk in KVM guest, removed the underlying lvm logical volume and started over from scratch.
            Works now very well. Used this howto:
            https://www.freebsd.org/doc/handbook/disks-adding.html

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.