Jump to content
Welcome to our new Citrix community!
  • Manually adjust NetScaler VPX Disk Space


    Harihara Sudhan
    • Validation Status: Validated
      Summary: Learn about the steps involved in manually resizing the disk space on NetScaler VPX
      Has Video?: No

    Contributed By: Pradeep Kumar M 

    Overview

    The NetScaler VPX  product is a virtual application delivery controller that can be hosted on a wide variety of virtualization and cloud platforms. Several VPX users encounter disk size constraints for various reasons including the VPX instance upgrade, necessitating a minimum of 6GB free space in the /var partition. 

    This guide offers comprehensive steps to resolve this issue by expanding the disk space to meet higher capacity requirements.
    Note: This is not supported for VPXs on SDX.
    For SDX, Please refer : https://docs.netscaler.com/en-us/citrix-adc/current-release/deploying-vpx/deploy-vpx-faq.html#can-we-add-a-new-hard-drive-to-increase-space-on-netscaler-vpx-instance

    Default Behavior 

    Upon VM creation using the Netscaler build package/template, the default disk space allocated to the the VPX is 20GB. Notably, the /var partition size remains fixed at 14GB, as indicated below.

    image.thumb.png.64abaac80d72e9a0aa67a4273bcbae34.png
    Note: Screenshots in this article are taken from the Netscaler VPX running on ESXi Hypervisor.
    Note: Before changing the disk size, it is recommended to take the snapshot of the VM.

    Steps to Increase the Disk space on VPX

    Increase the disk size from Hypervisor or Cloud

    To expand the disk size, begin by shutting down the virtual machine (VM) and then proceed to increase the current disk capacity, elevating it from 20GB to either 30GB or 40GB.  (In the case of Azure, this involves scaling from an existing 32GB to 64GB)

    Jump into the boot prompt

    Power on the VM and boot into the boot prompt. i.e: OK prompt or the boot prompt. This can be achieved by pressing "Ctrl + C" during boot time.

    image.thumb.png.487fcab54589cf219d55bec4436a1a48.png

    Enter single user mode

    Run the following command to log into single user mode.

    boot -s

    image.thumb.png.3f4aeaeb6b4adb643a63d6d831afe7c6.png

    Note: To enable access in the single-user mode for Azure, it's necessary to configure the com console instead of the default console. This can be done by executing the following command at the ok prompt before initiating the 'boot -s' command.

    set console=“comconsole”
     

    Setup the COM port and connect with Putty.

    Verify the disk space

    Check the newly allocated disk space using the following command.

    gpart show
     

    In this instance, the disk space has been expanded to 30GB, resulting in 10GB of available free space as indicated in the output of the "gpart show" command for da0.

    image.thumb.png.266a6c7b958b7035f6c5686eaeb20eb1.png

    Also, note the partition name. For this VM it is da0, but for other hypervisor or in cloud it may have different names (For example - AWS has nv0).

    Resize the disk partition

    The partitions can be resized by running below commands.

    Resize the da0 MBR partition to include the 10GB free space by running below command.

    gpart resize -i 1 da0
     

    Incase a permission denied error is encountered while running the above command, run below mentioned command and rerun the previous resize command.

    sysctl kern.geom.debugflags=16 
     

    The partition looks like below after successfully running the commands.

    image.thumb.png.eaba1a860a37dffb3bfc7474670c1fc1.png

    Currently, it is observable that the da0 partition size has expanded to 30GB, with noticeable available free space on the da0s1 partition.

    Merge the free space to the last partition

    Run below command to merge the free space to the last partition on da0s1. i.e da0s1e

    gpart resize -i 5 da0s1
     

    The partition looks like below after successfully running the above command.

    image.thumb.png.dcd86eda26bae4407f0d2e9f867f116c.png

    Now, the 10GB free space has added to 5th partition under the da0s1 partition. i.e /var

    Run the below command to extend the filesystem to include newly allocated free space.

    growfs /dev/ada0s1e
     

    image.thumb.png.58fdbf91d18e1d010c0cf8203230b439.png

    Now the additionally allocated 10GB is successfully added to /var.

    Verify the increased disk space

    Reboot the instance and verify the new disk space by running the following command in the VPX shell prompt.

    df -h
     

    image.thumb.png.a06cb788dc96873af7e7bbcff6fba444.png
     

     
     
    • Like 1

    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...