100% found this document useful (1 vote)
124 views2 pages

Boot Pratition Increase

The document provides instructions for increasing the size of a custom boot volume in Oracle Cloud Infrastructure. It describes an initial disk created with 150GB that had only allocated 39GB to the /dev/sda3 partition. The steps shown grow the partition to use the remaining unallocated space, including installing growpart, using growpart to extend the partition, resizing the XFS filesystem with xfs_growfs, and verifying the new larger size.

Uploaded by

k.leela.k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
124 views2 pages

Boot Pratition Increase

The document provides instructions for increasing the size of a custom boot volume in Oracle Cloud Infrastructure. It describes an initial disk created with 150GB that had only allocated 39GB to the /dev/sda3 partition. The steps shown grow the partition to use the remaining unallocated space, including installing growpart, using growpart to extend the partition, resizing the XFS filesystem with xfs_growfs, and verifying the new larger size.

Uploaded by

k.leela.k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Kesavulu Leela Krishna

From: Bogapurapu laxmi krishna Rao


Sent: Friday, August 10, 2018 12:38 PM
To: subasu_org_ww; paananth_org_ww
Subject: Increasing the Boot volume size

Follow Up Flag: Follow up


Flag Status: Flagged

Hi Team,

Just wanted to share the below information if in case you ever come across. Please Ignore if you already know 

When you create a Custom Boot volume and want to have more space allocated to you under boot.
You would end up with only 39GB on /dev/sda3, even though you still have unallocated space on the disk.

In order to reclaim the unallocated space on the disk and add it to your required boot space, perform below.

 Initial Disk created with 150 GB size


 Lsblk shows total space 150GB and still the space allocated to /dev/sda3 is 39GB

o [opc@blkrtest ~]$ lsblk


o NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
o sda 8:0 0 150G 0 disk
o +-sda1 8:1 0 200M 0 part /boot/efi
o +-sda2 8:2 0 8G 0 part [SWAP]
o L-sda3 8:3 0 38.4G 0 part /

[opc@blkrtest ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 6.7G 0 6.7G 0% /dev
tmpfs 6.8G 0 6.8G 0% /dev/shm
tmpfs 6.8G 8.6M 6.8G 1% /run
tmpfs 6.8G 0 6.8G 0% /sys/fs/cgroup
/dev/sda3 39G 1.8G 37G 5% /
/dev/sda1 200M 9.8M 191M 5% /boot/efi
tmpfs 1.4G 0 1.4G 0% /run/user/1000
[opc@blkrtest ~]$

 In order to increase the /dev/sda3 space and have unallocated 100GB assigned to it, perform as below
o Install growpart if not present
 [root@blkrtest ~]# which growpart
/usr/bin/which: no growpart in
(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/ro
ot/bin)
 [root@blkrtest ~]#
o yum install cloud-util*
o [root@blkrtest ~]# which growpart
/bin/growpart
o [root@blkrtest ~]# growpart /dev/sda 3

1
CHANGED: disk=/dev/sda partition=3: start=17188864 old:
size=80486399,end=97675263 new: size=297383902,end=314572766

o Resize xfs type boot


 [root@blkrtest ~]# which xfs_growfs
 /sbin/xfs_growfs
 [root@blkrtest ~]# xfs_growfs /dev/sda3
 meta-data=/dev/sda3 isize=256 agcount=4,
agsize=2515200 blks
 = sectsz=4096 attr=2,
projid32bit=1
 = crc=0 finobt=0 spinodes=0
 data = bsize=4096 blocks=10060800,
imaxpct=25
 = sunit=0 swidth=0 blks
 naming =version 2 bsize=4096 ascii-ci=0 ftype=1
 log =internal bsize=4096 blocks=4912,
version=2
 = sectsz=4096 sunit=1 blks, lazy-
count=1
 realtime =none extsz=4096 blocks=0,
rtextents=0
 data blocks changed from 10060800 to 37172987
 [root@blkrtest ~]#

o Recheck the Size


 [root@blkrtest ~]# lsblk
 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
 sda 8:0 0 150G 0 disk
 +-sda1 8:1 0 200M 0 part /boot/efi
 +-sda2 8:2 0 8G 0 part [SWAP]
 L-sda3 8:3 0 141.8G 0 part /
 [root@blkrtest ~]#

Thanks & Regards,


B L KRISHNA RAO
Sr. Solution Engineer – Infrastructure as a Service
Phone: +91 8067864290| Mobile: +91 9972888511
Oracle North America Sales Innovation and Shared Services, Prestige Technology Park III Velocity, Bangalore, Karnataka IN 560103

You might also like