To add space, we navigate to HANA cockpit. To access Cockpit, use the URL given during installation, in the form https://<hostname>:<port>
.
Note: Note: If this is the first time you are using cockpit, start by opening the Cockpit Manager located at port 51023.
This will open the HANA Cockpit login page in your browser. For this lesson, you should log with your Cockpit user.
Once you have logged onto HANA Cockpit, scroll through the tiles and navigate to the Dynamic Tiering section of your cockpit.
In this example, we will be working with “Manage Dynamic Tiering Dbspace
s” within the Dynamic Tiering links.
Once you select that option, you will see the existing Dbspace's
. The ES_USER Dbspace
is where the extended table data is stored and where you will need to add storage space as your data set grows. Select the ES_USER Dbspace
and click the Edit button located at the bottom right of the window.
This opens the “Edit Dbspace
” detail panel on the right of the screen. To add a new Dbspace
file, click the +
button located above the Dbspace Files
table.
This will pop up a dialogue where you can add information such as the file name, file path, reserve size, etc.
Replace the <SID>
in the Dbspace
File Path with your <SID>
of your System.
Some options to be noted while filling this dialogue
- “Raw Device” - This specifies a raw partition where the size is automatically set to the maximum raw partition size. This means that the extended store will use the entire raw device. For this tutorial, uncheck the Raw Device option.
- “Reserve Size” - This applies to the File System files only and not raw devices. This still creates a file of full size on the File system but the extended store does not track the logs of additional space until the reserve space is added. the benefit of specifying a Reserve Size is to protect the contiguous storage space on disk, preventing or minimizing file fragmentation.
Once you have filled in the required information, you can click the “Create” button located on the bottom right of the window. The new Dbspace
file should appear as below.
Note: You can also add a file using HANA Studio (through the System DB) by running a SQL command and changing parameters as required:
ALTER EXTENDED STORAGE ALTER DBSPACE ES_USER ADD FILE "ES_USER_FILE1" '<SID>ESDB_usr_1.es' SIZE 100 MB RESERVE 25 MB;