Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Expanding the Size of the VM Disk for Log Collector

    You can increase the disk size of your virtual machine (VM) when the log files created by your application become too large.

    Note: The default shipping configuration of your VM includes 500 GB of disk space.

    Before You Begin

    • Ensure that the VM is powered off.
    • Ensure that the VM has no snapshots.

    Configuring the Disk Capacity

    To expand the disk size using VMware VSphere or VCenter:

    1. Deploy the Log Collector VM on a VMware ESX server.
    2. Using VSphere client (either the desktop client or the Web), right-click the VM settings.
    3. Click Edit Settings.
    4. Set the Hard disk 2 option to 600. The default disk configuration is 12 GB for hard disk 1 and 500 GB for hard disk 2.
    5. Click Save.
    6. Power on the VM.

    Verifying and Applying the Configuration

    1. Log in as a root user from the Log Collector VM.
    2. Check the current file system state by entering the df -h command.

      Filesystem

      Size

      Used

      Available

      Use%

      Mounted On

      /dev/mapper/data1_vg-elasticsearch

      500G

      267M

      500G

      1%

      /var/lib/elasticsearch

    3. Run the /opt/jnpr/bin/resizeFS.sh script.

      You see the following sample output.

      [root@LOG-COLLECTOR ~]# /opt/jnpr/bin/resizeFS.sh
      Physical volume "/dev/sdb" changed 1 physical volume(s) resized / 0 physical volume(s) not resized
      
      Extending logical volume elasticsearch to 600.00 GB
      
      Logical volume elasticsearch successfully resized meta-data=/dev/mapper/data1_vg-elasticsearch isize=256 agcount=4, agsize=32767744 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=131070976, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal bsize=4096 blocks=63999, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 data blocks changed from 131070976 to 157285376
    4. Enter the df -h command again. Verify the expanded disk space, which should now be 600 GB.

      /dev/mapper/data1_vg-elasticsearch

      Filesystem

      Size

      Used

      Available

      Use%

      Mounted On

      /dev/mapper/data1_vg-elasticsearch

      600G

      267M

      600G

      1%

      /var/lib/elasticsearch

    Note: You must restart the VM after editing the disk size and then execute the resizeFS.sh script.

    Modified: 2016-06-14