- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: R81 Disk Clean Up
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
R81 Disk Clean Up
Hi All,
We are currently running R81 on management and gateways. In order to upgrade to R81.20 I on existing server I need to clean up the disk space on root and /var/log.
Is there a way on CLI I can filter and purge the database revisions that have mounted up by specific year as from Smartconsole you can only purge database revisions one at a time and its going to take a few days to clear out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can purge from smart console easily. Just right click on any given revision, then purge and it will purge every single one from selected database till the end. Its under settings, sessions.
Best,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi the_rock,
Thank you ! Thats done the trick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mgmt_cli is always your friend:
This keeps the last 30 revisions:
#mgmt_cli purge-published-sessions number-of-sessions-to-preserve "30"
https://sc1.checkpoint.com/
make sense?
a
\m/_(>_<)_\m/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @JayM1
This tiny command helps a lot:
du -h --max-depth=1
Check recursively the size of the directories starting from /var/log/ and deeper in the directory tree
- /CPda can consulme a lot of space
- old logs also
Akos
\m/_(>_<)_\m/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The best way to handle this IMO is to set log maintenance policy that suit your needs:
When you're running a log server for enough time the /var/log partition will be filled. By setting log retention for 10 GB the oldest logs and indexes will be deleted until space is met. By default it's 5 GB but you can increase and then you won't need to delete anything by yourself.
