Blogs Sap Com 2020 09 11 How To Reclaim Fragmented Space at Os Level From Hana D
Blogs Sap Com 2020 09 11 How To Reclaim Fragmented Space at Os Level From Hana D
Community!
Not yet a member on the new home? Join today and start participating in the discussions!
Technical Articles
Rajarajeswari Kaliyaperumal
September 11, 2020 | 2 minute read
2 8 25,627
In this blog we can learn about how to run a de-fragmentation data volume to claim unused space from data
volumes.
In HANA if we have run a mass cleanup, though the relevant tables entries that were deleted will be removed
and the size reduction will get re ected in M_TABLE_PERSISTENCE_STATISTICS for all the involved tables,
it takes time to get re ected at OS level.
No.This is an ONLINE operation and does not need a downtime. However , it is recommended to perform
this when we have a reduced load in the HANA DB.
This
How tosite uses cookies
determine andHANA
if our relatedDB
technologies,
is su eringas described
from huge in our privacy
unused statement, fordate
fragmented purposes thatvolume?
in data may include site
operation, analytics, enhanced user experience, or advertising. You may choose to consent to our use of these
technologies, or manage your own preferences.
To determine the amount of space that is fragmented , we can use below SQL.
ALTER SYSTEM RECLAIM DATAVOLUME 120 DEFRAGMENT;=>Our nal data volume size will be payload +
20% fragmented space =>Can be used normally
If we want to run defragment only on speci c node the we can use the below command:
ALTER SYSTEM RECLAIM DATAVOLUME ‘<node server name>:3<nn>03’ 120 DEFRAGMENT; =>Our nal
data volume size will be payload + 20% fragmented space =>Can be used normally
NOTE:
If the fragmentation percentage is really huge, it will take a lot of time and performance issue if we try to
defragment our data volume to 120% . In this case , it is recommended to run the same command in pieces
like below . It is better to ensure that we are reclaiming only 250GB per defragment command.
Below is the sample output for disk defragmentation which was run from HANACLeaner:
https://blogs.sap.com/2020/09/16/how-to-implement-hanacleaner/
Assigned Tags
Basis Technology
SAP HANA
cleanup
DataVolume
fragmentation
View more...
Collected information about reclaim / shrink / defragmentation topic in context of SAP HANA persistence
(with example)
By Laszlo Thoma Jan 17, 2023
Related Questions
EC2 and VM - File systems creation from AWS and Azure portal directly
By Daniel basis Jul 14, 2023
SAP HANA, express edition + Apps, with Docker - XSA - xs create space
By Alexandr Poslovskiy Oct 23, 2020
2 Comments
Shrikant Pakhale
December 22, 2022 at 3:28 am
after reclaim datavolume, size of data backup was reduced ... How athese are related ?
Like 1 | Share
Bimila W J
October 9, 2023 at 4:34 am
After performing data volume reclaim (2 times) also fragmentation is not reducing . Hana version is
"2.00.059.04.1655794895" kindly suggest . db is replicated
Like 0 | Share
Find us on
Newsletter Support