Growing the Root Partition at End of Disk
last updated on Sept. 16, 2022
The way to grow the root partition on your Access Anywhere depends on what version of Access Anywhere was originally installed. To determine whether these instructions apply to your Access Anywhere, please consult this page carefully.
To begin, grow the disk space by expanding storage via the hypervisor or cloud platform to the first disk. Generally, the appliance will pick up the new disk space, but a reboot is recommended to ensure that the instance recognizes the increase.
After the reboot, log into the instance as smeconfiguser and become the root user:
su -
Check the current size of the root partition.
df -h
Sample Output:
Filesystem Size Used Avail Use% Mounted on /dev/vda3 28G 3.3G 25G 12% / devtmpfs 2.0G 0 2.0G 0% /dev tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 2.0G 8.8M 2.0G 1% /run tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/vdb1 40G 80M 38G 1% /var/lib/mysql /dev/vda1 509M 73M 436M 15% /boot tmpfs 396M 0 396M 0% /run/user/5000 tmpfs 396M 0 396M 0% /run/user/5003 tmpfs 396M 0 396M 0% /run/user/0 tmpfs 396M 0 396M 0% /run/user/5001
In the example above the root partition has 25GB free and is mounted on /dev/vda3. Your system might have a different mount point such as /dev/sda3 or /dev/xvda3
Ensure the partition manager tools are installed:
yum install cloud-utils-growpart parted -y
Grow the root partition (partition #3):
growpart /dev/vda 3
Sample Output:
CHANGED: partition=3 start=17827840 old: size=57669632 end=75497472 new: size=183498719 end=201326559
Expand the root filesystem:
xfs_growfs /
Sample Output:
meta-data=/dev/vda3 isize=512 agcount=4, agsize=1802176 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=0 spinodes=0 data = bsize=4096 blocks=7208704, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal bsize=4096 blocks=3519, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 data blocks changed from 7208704 to 22937339
Check the amount of available space on / partition to confirm success:
df -h
Sample Output:
Filesystem Size Used Avail Use% Mounted on /dev/vda3 88G 3.3G 85G 4% / devtmpfs 2.0G 0 2.0G 0% /dev tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 2.0G 8.8M 2.0G 1% /run tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/vdb1 40G 80M 38G 1% /var/lib/mysql /dev/vda1 509M 73M 436M 15% /boot tmpfs 396M 0 396M 0% /run/user/5000 tmpfs 396M 0 396M 0% /run/user/5003 tmpfs 396M 0 396M 0% /run/user/0 tmpfs 396M 0 396M 0% /run/user/5001