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

    Increasing "actual size" from the VM to increase space for pfsense

    Scheduled Pinned Locked Moved Virtualization
    17 Posts 5 Posters 12.8k 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.
    • O
      onlineph
      last edited by

      @johnpoz:

      Can't he just add another Virtual disk to the VM and partition and mount and tell his cache to be there?  Why does he have to do anything with resizing anything pfsense OS disks?

      Hi there. Thanks for taking time to look into my very concern. Yeah you're right, my very problem is the VB dynamic disk that never grows, just like now. One of my pf box already hit 100% disk space yet I have a 100G virtual disk. It never grow really.

      I like the idea of just creating another virtual dis to the VM and mount it and tell pfsense to store the cache there. I love that idea but to iplement it, I'm in a limbp unless you'll have to guide me really. I'm not a programmer or a techie guy, I just learned some stuff from this forum and still learning from you experts so, please do help e on this.

      Of first, I'll create another VM disk. Anyway, i'm using the oracle virtualbox. so please let's get started.

      1 Reply Last reply Reply Quote 0
      • S
        Supermule Banned
        last edited by

        Try this:

        Vsphere client -> log into the Esxi -> Mark the pfsense VM -> right click on datastore -> Browse datastore for Pfsense VM -> Rightclick Pfsense VM -> click on inflate -> Wait until finish -> reboot pfsense VM

        Test if working

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          ^ he is using virtualbox ;)

          So you don't know how to add a disk to a vm in virtual disk?  Or you don't know how to work with another disk in freebsd/pfsense?

          Here is help with freebsd
          http://www5.us.freebsd.org/doc/handbook/disks-adding.html

          sure you can google how to add another disk to a vm in virtualbox.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • O
            onlineph
            last edited by

            I thought I don't know how to add a new disk. I just did created another disk in the VM. I'll try to check with the link hopefully its not that techie so I may understand it.

            1 Reply Last reply Reply Quote 0
            • O
              onlineph
              last edited by

              Gosh! I'm totally lost!

              I'm so sorry I can't follow those instructions. Can somebody guide me in lay man's terms?

              I not have a IDE primary master and  IDE Secondary Master. So please just simplify a guide on how will I tell pfsense to store the cache in the IDE secondary master (virtual disk).

              1 Reply Last reply Reply Quote 0
              • S
                Supermule Banned
                last edited by

                Just note the name of the second drive. IDE secondary is old fashioned and physical disks…

                You just need the name of the virtual disk

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  Ok – so you added this disk in virtualbox

                  Can you please reboot pfsense, and then do a couple of commands so we can see that the disk is there

                  example you say your disks are IDE?  this should work then

                  [2.1-RELEASE][root@pfsense.local.lan]/root(2): atacontrol list
                  ATA channel 0:
                      Master:      no device present
                      Slave:      no device present
                  ATA channel 1:
                      Master: acd0 <vmware virtual="" ide="" cdrom="" drive="" 00000001="">ATA/ATAPI revision 4
                      Slave:      no device present

                  I don't have any disks connected via IDE in my virtual setup.. another command would be

                  [2.1-RELEASE][root@pfsense.local.lan]/root(3): sysctl kern.disks
                  kern.disks: da0

                  There is my disk da0, in your output we should see your 2 now?

                  another command you could do is
                  [2.1-RELEASE][root@pfsense.local.lan]/root(6): camcontrol devlist
                  <vmware virtual="" disk="" 1.0="">          at scbus0 target 0 lun 0 (da0,pass0)
                  [2.1-RELEASE][root@pfsense.local.lan]/root(7):

                  See there is my scsi disk at da0 again.. This would also show you usb, etc.

                  Once we see the disk we can walk you through creating a file system on it that fills the disk and mounting it so you can use it as your cache.</vmware></vmware>

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    I'm really suprised you still have not just created a disk that isn't the dynamic / inflating type and reinstalled.

                    1 Reply Last reply Reply Quote 0
                    • B
                      basitkhan
                      last edited by

                      hi..

                      I was facing the same issue, but today i fixed it by using very useful tutorial and follow the steps as mentioned in the following link

                      http://www.unibia.com/unibianet/freebsd/resize-your-existing-freebsd-root-partitionslice-safely-without-re-installing

                      Great work!

                      1 Reply Last reply Reply Quote 0
                      • O
                        onlineph
                        last edited by

                        @kijianshi – Yeah I did already actually I am trying the fresh installation from 203 and/or 2.1 but am having a "cp downt suport long mode" error. Dont know what to do. I have created a new thread for the error.

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