Help Center User GuideGetting StartedFAQRelease Notes
 
X
User Guide
Getting Started
FAQs
Release Notes
Contents  

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


Configuring the Disk Capacity

Procedure

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

Procedure

  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.

Related Documentation

Ask questions in TechWiki

Check documentation in TechLibrary

Rating by you:      
X

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:
Email:

Need product assistance? Contact Juniper Support

Submit