Extending root disk of VIO manager
search cancel

Extending root disk of VIO manager

book

Article ID: 321760

calendar_today

Updated On:

Products

VMware VMware Integrated OpenStack

Issue/Introduction

Extending the root disk of VIO manager


Environment

VMware Integrated Openstack 7.x

Resolution

Note:  Before doing any work make sure we have a current backup of VIO.  For more information, see the Backup and Restore section of the VMware Integrated Openstack Administration guide
  1. Resize Hard disk 1 in vCenter
  2. ssh into the VIO manager
  3. Rescan the SCSI bus for disk changes
echo 1 > /sys/class/block/sda/device/rescan
  1. Validate that OS sees the change
root@oms [ ~ ]# fdisk -l
....
GPT PMBR size mismatch (83886079 != 94371839) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be corrected by write.
Disk /dev/sda: 45 GiB, 48318382080 bytes, 94371840 sectors  << New disk size
  1. Install the parted package to resize the disk partition
root@oms [ /etc/yum.repos.d ]#  tdnf install parted
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64)'
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64) Updates'
Refreshing metadata for: 'VMware Photon Extras 3.0 (x86_64)'
photon-extras                              123    100%
Installing:
parted          x86_64     3.2-9.ph3   photon-updates   1.12M 1170933

Total installed size:   1.12M 1170933
Is this ok [y/N]:
y
Downloading:
parted                                  423548    100%
Testing transaction
Running transaction
Installing/Updating: parted-3.2-9.ph3.x86_64


Complete!
root@oms [ /etc/yum.repos.d ]#
 
  1. View the partitions.  Type Fix when prompted
# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print
print
Warning: Not all of the space available to /dev/sda appears to be used, you can
fix the GPT to use all of the space (an extra 10485760 blocks) or continue with
the current setting?

Fix/Ignore? Fix   <<
Fix
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 48.3GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  3146kB  2097kB                        bios_grub
 2      3146kB  137MB   134MB   ext3
 3      137MB   272MB   134MB   linux-swap(v1)
 4      272MB   42.9GB  42.7GB  ext4
  1. Resize partition and quit (root partition on VIO manager is partition 4)
(parted) resizepart 4 yes 100%
resizepart 4 yes 100%
Warning: Partition /dev/sda4 is being used. Are you sure you want to continue?
(parted) quit
  1. Resize filesystem
root@oms [ /etc/yum.repos.d ]# resize2fs /dev/sda4
resize2fs 1.45.5 (07-Jan-2020)
Filesystem at /dev/sda4 is mounted on /; on-line resizing required
old_desc_blocks = 5, new_desc_blocks = 6
The filesystem on /dev/sda4 is now 11730171 (4k) blocks long.
  1. See the updated size
root@oms [ /etc/yum.repos.d ]# df -l /
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda4       45922128 13317084  30295188  31% /

Additional Information

How to increase the size of the logging directory for the VMware Integrated OpenStack 7.x manager

If the manager is in an air gapped network, the parted package will have to be obtained separately and placed on the manager via other means.

Download binary:
https://packages.vmware.com/photon/3.0/photon_release_3.0_x86_64/x86_64/parted-3.2-7.ph3.x86_64.rpm
Install binary:
rpm -ivh parted-3.2-7.ph3.x86_64.rpm