Extending File System Storage
If Oracle DBSecCentral requires more space than was originally allocated, you can extend the storage for the file system.
About Extending Storage
You can allocate space in the volume group to extend the storage for a file system. You can add physical storage to extend the storage for the volume group.
You have the following options for extending storage:
-
If an Oracle Oracle Database Security Central folder runs out of space, you can allocate more space to the logical volume that holds the file system.
Oracle Oracle Database Security Central reserves a small amount of space in the volume group so that you can allocate it to any file system that needs more space. The space requirements depend on the workload, so you can evaluate needs and allocate the extra space when and where it’s needed.
-
If the volume group itself needs more space, you can add more physical storage, like adding an solid state drive (SSD) or allocating space from a storage area network (SAN) repository.
Increasing the Logical Volume Capacity for a File System
If an Oracle Oracle Database Security Central file system runs out of space, you can allocate more space to the logical volume that holds the file system.
Use the lvextend command to increase the logical volume capacity. The vg_root volume group normally has unallocated space for this purpose.
-
Log in to the appliance through SSH and switch to the
rootuser.See Logging In to Oracle DBSecCentral Appliances Through SSH.
-
Run
vgsto check the volume group free space. For example:/usr/sbin/vgs VG #PV #LV #SN Attr VSize VFree vg_root 1 13 0 wz--n- 149.84G 10.72GFor more detailed volume group information, run
vgdisplay. -
Increase the logical volume capacity.
For example, the following command adds 2 GB to the
/tmpfolder from theVG_ROOTvolume group:/usr/sbin/lvextend -r -L+2G /dev/mapper/vg_root-lv_tmp
Related Topics
Adding a Disk to a Volume Group
If the vg_root volume group needs more space for patching, upgrading, or another purpose, you can add a disk and extend the volume group to the new disk.
Caution: Each additional physical device that is added to the volume group adds an additional single point of failure, unless the physical devices are hosted on the same back-end storage such as on a SAN or virtual environment. This document does not cover how to make the volume group resilient. To find more information about how to make the volume group resilient through RAID, see Configure RAID Logical Volumes on Oracle Linux
-
Log in to the appliance through SSH and switch to the
rootuser.See Logging In to Oracle DBSecCentral Appliances Through SSH.
-
Run
vgsto check the volume group free space. For example:/usr/sbin/vgs VG #PV #LV #SN Attr VSize VFree vg_root 1 13 0 wz--n- 149.84G 10.72G -
Run
lsblkto view a list of all the available hard disks. For example:lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 256G 0 disk sda1 8:1 0 200M 0 part sda2 8:2 0 1G 0 part sda3 8:3 0 160.2G 0 part vg_root-lv_ol8root 252:0 0 6.6G 0 lvm / vg_root-lv_swap 252:1 0 15.3G 0 lvm [SWAP] vg_root-lv_images 252:2 0 488M 0 lvm vg_root-lv_var_dbfw 252:3 0 2.9G 0 lvm /var/dbfw vg_root-lv_oracle 252:4 0 58.6G 0 lvm /var/lib/oracle vg_root-lv_tmp 252:5 0 1.9G 0 lvm /tmp vg_root-lv_var_log 252:6 0 5.7G 0 lvm /var/log vg_root-lv_home 252:7 0 976M 0 lvm /home vg_root-lv_opt 252:8 0 976M 0 lvm /opt vg_root-lv_var_tmp 252:9 0 5.7G 0 lvm /var/tmp vg_root-lv_local_dbfw_tmp 252:10 0 6.6G 0 lvm /usr/local/dbfw/tmp vg_root-lv_local_dbfw 252:11 0 976M 0 lvm /usr/local/dbfw sda4 8:4 0 31.6G 0 part sda5 8:5 0 31.6G 0 part sda6 8:6 0 31.6G 0 part sdb 8:16 0 2T 0 disk sr0 11:0 1 1024M 0 rom sr1 11:1 1 1024M 0 rom -
From the list, locate a disk with no partitions defined and with the same size that you need.
-
Use the
partedcommand to create the partition.-
Run
parted /<path of the disk>using the path of the disk that you identified in step 4. For example:/sbin/parted /dev/sdb GNU Parted 3.2 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) -
Run
mklabel gptto set the disk label toGPT. For example:(parted) mklabel gpt (parted) print Model: XXX VBOX HARDDISK (scsi) Disk /dev/sdb: 2199GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags (parted) -
Run the
mkpart primary ext3command to create the partition.When prompted, enter
0GBas the start point and specify another size of the first partition as the end point.For example, to create three partitions and to use
314GBas the end of partition 1, use the following command:(parted) mkpart primary ext3 Start? 0GB End? -1 (parted) -
Set the partition type to
LVM.In this example, the partition number is
1, and you can use theprintcommand to verify the change.(parted) set 1 lvm on (parted) print Model: XXX VBOX HARDDISK (scsi) Disk /dev/sdb: 2199GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 2199GB 2199GB ext3 primary lvm (parted) -
Run
quitto exitparted. The changes are automatically saved.
-
-
Run
pvcreateto create the physical volume using the added disk. For example:/usr/sbin/pvcreate /dev/sdb1 Writing physical volume data to disk "/dev/sdb1" Physical volume "/dev/sdb1" successfully created -
Verify the creation with
pvdisplay.You should now have two physical volumes:
vg_rootand the one you just created. For example:/usr/sbin/pvdisplay --- Physical volume --- PV Name /dev/sda3 VG Name vg_root PV Size <160.16 GiB / not usable 4.00 MiB Allocatable yes PE Size 4.00 MiB Total PE 40999 Free PE 13724 Allocated PE 27275 PV UUID 4Fup6c-ruea-0B20-s9Sn-66on-4sVf-fDON2D "/dev/sdb1" is a new physical volume of "<2.00 TiB" --- NEW Physical volume --- PV Name /dev/sdb1 VG Name PV Size <2.00 TiB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID uDgKdm-LawO-4cXB-Bjog-pZ48-gNHD-fQE1IE -
Run
vgextendto extend thevg_rootvolume group to the added disk. For example:/usr/sbin/vgextend vg_root /dev/sdb1 Volume group "vg_root" successfully extended -
Run
vgsagain and compare it to the output from step 2.You should see more free space available for the
vg_rootvolume group. For example:/usr/sbin/vgs VG #PV #LV #SN Attr VSize VFree vg_root 2 13 0 wz--n- 199.81G 60.69GIn the examples throughout this procedure, you can see that the
VSizehas increased from 149.84 G to 199.81 G.
Related Topics