Thursday, August 26, 2021

Extending ROOT (/) volume in Oracle Linux 6.x

<pre>

[root@rac1 dev]# fdisk /dev/sdg
[root@rac1 dev]# fdisk -l
[root@rac1 dev]# pvcreate /dev/sdg1
[root@rac1 dev]# vgdisplay
[root@rac1 dev]# vgextend vg_rac1 /dev/sdg1
[root@rac1 dev]# vgdisplay
[root@rac1 dev]# df -h
[root@rac1 dev]# pvscan
[root@rac1 dev]# lvdisplay
[root@rac1 dev]# lvextend /dev/vg_rac1/lv_root /dev/sdg1
[root@rac1 dev]# df -h
[root@rac1 dev]# resize2fs /dev/vg_rac1/lv_root
[root@rac1 dev]# df -h
[root@rac1 dev]# init 6

Note: After formatting the disk, execute the above commands. Node by Node (If it is RAC).

</pre>