Description

This kb explains how to add extra disk resources to Junos Space VM such as /var and /var/log

Symptoms

after assigning extra disk resources on VMWare, it is unknown where to manually assign the extra storage

Solution

login to your Junos Space  VM

Junos Space Settings Menu

1> Change Password
2> Change Network Settings
3> Change Time Options
4> Retrieve Logs
5> Security
6> Expand VM Drive Size
7> (Debug) run shell

A> Apply Settings 
Q> Quit
R> Redraw Menu

Choice [1-7,QR]:

Select Option 6

6> Expand VM Drive Size

Then

Enter the admin password.

The following caution appears:

---------Caution--------
Expanding Disk drives would stop Jboss and MySQL processes and reboot the node, all the GUI users would be logged out automatically
Note: This will cause Space Fabric to failover to other node.

 

Type Y" to continue expanding the drive size or type n to return to the Junos Space Settings Menu.

 

Do you want to continue? [y/n]
y

 

If you type y, you are prompted to specify the partition that you want to expand.

 

Then enter the number present against the partition that you want to expand; for example, type 1 to expand the / partition or 5 to quit expanding disks and return to the Junos Space Settings Menu.

 

Begin to stop Jboss and MySQL...
Service Jboss and MySQL stopped

Which partition do you want to expand?  (this asks which partition we want to assignt the resources to) 

1) /
2) /var
3) /var/log
4) /tmp
5) Quit

Select a partition: 1 

-Then the free space that can be allocated is displayed and you are prompted to enter the space that you want to allocate to the partition.

 

Current disk partition size of / is 22G
Total 4.97G free disk space can be allocated

-Enter the additional disk space that you want to allocate.

-You can enter the disk space in megabytes (M), gigabytes (G), or terabytes (T). Do not add a space between the number and the unit; for example, enter 50M and not 50 M, 10G and not 10 G, and so on.

 

How much additional disk space is to be added(Acceptable suffixes: M|G|T): 1M

You are prompted whether you want to expand more drives.

 

Increasing size of LV /dev/jmpvgnocf/lvroot
  Extending logical volume lvroot to 22.59 GB
  Logical volume lvroot successfully resized
Resizing / onto new space, this will take a few minutes
resize4fs 1.41.12 (17-May-2010)
Filesystem at /dev/jmpvgnocf/lvroot is mounted on /; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 2
Performing an on-line resize of /dev/jmpvgnocf/lvroot to 5922816 (4k) blocks.
The filesystem on /dev/jmpvgnocf/lvroot is now 5922816 blocks long.

4.94G free disk space available
Do you want to expand more disks? [y/N]

Type y if you want to continue adding disk space or n to return to the Junos Space Settings Menu.

 

**When you type n, the node is rebooted and the JBoss and MySQL processes that were stopped are resumed. If the VM drive size was expanded on a primary node, the node becomes secondary when it comes up.**

Type Q and press Enter to exit the Junos Space Settings Menu.

 

The configuration of the Junos Space Virtual Appliance is now complete. It takes approximately 20 to 30 minutes after the configuration for the Junos Space Network Management Platform GUI to be up.

Modification History

2024-03-21 : Article Created

Related Information

Steps described on https://www.juniper.net/documentation/us/en/software/junos-space22.2/junos-space-virtual-appliance-pwp/topics/task/junos-space-virtual-appliance-configuring.html

step 13