To increase the size of the root partition:
- Log into the VMware vSphere Web Client as an administrative user.
- Right-click the appropriate vRealize Log Insight virtual machine and click Power > Guest Shut Down Guest OS.
- Right-click the appropriate vRealize Log Insight virtual machine and click Edit Settings.
- Increase the Hard Disk 1 size.
Note: You cannot increase the size of any disk if there is a snapshot in place. To increase disk size, remove any snapshots on the VM before continuing.
- Click OK.
- Right-click the appropriate vRealize Log Insight virtual machine and click Snapshots > Take Snapshot.
- Click OK.
- Open a console to the appropriate vRealize Log Insight virtual machine.
- Click Power On.
- When the GRUB boot menu is displayed, press the arrow key to select the line that begins with SUSE Linux Enterprise Server.
Note: If you cannot reach the boot menu before it disappears, enable Force BIOS setup in tn the Virtual Machine's Settings > VM Options > Boot Options and reboot.
- Add init=/bin/sh to the end of the line. Ensure that there is a space between the end of the current line and the additional parameter.
- Press Enter to boot the virtual machine into single user mode.
- After # prompt is presented, type fdisk /dev/sda to begin manipulating the partition table.
Note: The prompt will change to Command (m for help):
- Type d to start the process of deleting the partition table information for the root partition.
- Type 3 to specify the root partition.
- Type n to rebuild the partition table information for the root partition.
- Type p to specify a primary partition.
- Press Enter to accept the default partition number (3).
- Press Enter to accept the default first sector.
- Press Enter to accept the default last sector.
- Type a to start the process of marking the root partition as bootable.
- Type 3 to specify the root partition.
- Type w to write the updated partition table.
Note: You see this warning message, which can be safely ignored:
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8)
- Run this command to reboot the virtual machine:
shutdown -r -n -f now
Note: Let the virtual machine boot normally.
- Log in to the appropriate vRealize Log Insight virtual machine as root via SSH or Console.
- Run this command to extend the root file system:
resize2fs /dev/sda3
- Run this command to verify that the / partition is larger:
df -h /
- Repeat steps 2-27 for any other vRealize Log Insight nodes as required.
Once everything is confirmed to be working, the snapshots taken in step 6 can be deleted.