Friday, August 30, 2019

resize or extend /u01 on exadata

First find how much space available to extend

[root@xxx-bac02 ~]# vgdisplay -s
  "VGExaDb" 3.27 TiB  [185.00 GiB used / 3.09 TiB free]


Here we have 3.09TB free

First check the existing size of /u01

df -kh |grep u01

/dev/mapper/VGExaDb-LVDbOra1                  99G   27G   67G  29% /u01


Currently it is 100GB

I want to increase to 150GB

So here are the commands

lvresize -L +50G /dev/mapper/VGExaDb-LVDbOra1

resize2fs  /dev/mapper/VGExaDb-LVDbOra1

Now if you recheck the size again

df -kh |grep u01

/dev/mapper/VGExaDb-LVDbOra1                 148G   36G  105G  26% /u01


**********************************************

For XFS file system on new exadata machines

determine if it xfs or ext etc



[root@nasipedwdb-bac02 ~]# df -Th |grep /
Filesystem                                  Type      Size  Used Avail Use% Mounted on

/dev/mapper/VGExaDb-LVDbSys1                xfs        15G   12G  3.3G  79% /


lvresize -L +50G /dev/mapper/VGExaDb-LVDbSys1

xfs_growfs -d /

[root@nasipedwdb-bac02 ~]# df -kh
Filesystem                                   Size  Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1                  65G   12G   54G  19% /


*********************************************

creating swapspace on exadata

[root@n dev]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/dm-4                               partition       16777212        0       -2


Add 110gb swap file

dd if=/dev/zero of=/swapspace bs=1M count=112640

mkswap /swapspace

chmod 600 swapspace

swapon /swapspace

 swapon -s
Filename                                Type            Size    Used    Priority
/dev/dm-4                               partition       16777212        0       -2
/swapspace                              file    115343356       0       -3
[root@ /]# free -g
              total        used        free      shared  buff/cache   available
Mem:           1007         382         341          48         283         555
Swap:           125           0         125


Featured Post

Apply Patch 22191577 latest GI PSU to RAC and DB homes using Opatch auto or manual steps

Patch 22191577: GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.4.160119 (JAN2016) Unzip the patch 22191577 Unzip latest Opatch Version in or...