gen:disk-100
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gen:disk-100 [2025/06/23 23:51] – kirtisingh | gen:disk-100 [2025/06/24 01:16] (current) – kirtisingh | ||
---|---|---|---|
Line 9: | Line 9: | ||
* Genuine website and database usage | * Genuine website and database usage | ||
* Large log files, typically PHP error logs. This from our experience is a very common factor | * Large log files, typically PHP error logs. This from our experience is a very common factor | ||
+ | * Incremental backups - these are onsite backups (i.e. on the VPS itself) which are enabled by default for every VHost/ | ||
* N99panel usage - the disk usage to make the N99panel run the way it has to run | * N99panel usage - the disk usage to make the N99panel run the way it has to run | ||
* Operating system disk usage | * Operating system disk usage | ||
Line 14: | Line 15: | ||
The system disk may not be technically 100% full, but at a certain threshold, the underlying file-system starts reporting 100% usage in order to keep the system running. | The system disk may not be technically 100% full, but at a certain threshold, the underlying file-system starts reporting 100% usage in order to keep the system running. | ||
- | In order to find the cause of 100% usage, from within N99panel, you can typically refer to the 'Stats & More...' | + | In order to find the cause of 100% usage, from within N99panel, you can typically refer to the 'Stats & More...' |
- | **Step 1 :** You have to log into N99panel VPS via SSH, using the following parameters | + | **You have to log into N99panel VPS via SSH, using the following parameters**\\ |
- | - Port number 2222 | + | - Port number 2222\\ |
- | - Username - Your N99panel username | + | - Username - Your N99panel username\\ |
- Password - Your N99panel password | - Password - Your N99panel password | ||
- | Once you have successfully logged in, you can run various commands as detailed below | + | Once you have successfully logged in, you can run various commands as detailed below. First time after logging in when you run these commands, you will be prompted to enter your password |
+ | |||
+ | **Command : wp-cl-spacemgr-disk-usage** - It shows the current/ | ||
+ | < | ||
+ | wp-cl-spacemgr-disk-usage disk-used | ||
+ | </ | ||
+ | |||
+ | **Command : wp-cl-spacemgr-usage-breakup** - It shows the output similar to N99panel' | ||
+ | < | ||
+ | wp-cl-spacemgr-usage-breakup usage-breakup | ||
+ | </ | ||
+ | |||
+ | **Command : wp-cl-spacemgr-usage-genstats** - It lets you generate stats. After running the below command, the output presented by the above mentioned command, would be more accurate. Same would also reflect in N99panel' | ||
+ | < | ||
+ | wp-cl-spacemgr-usage-genstats genstats | ||
+ | </ | ||
+ | |||
+ | **Command : wp-cl-spacemgr-list-files** - It shows the list of large files. This command has various options | ||
+ | < | ||
+ | wp-cl-spacemgr-list-files list-files | ||
+ | </ | ||
+ | The above command shows list of files which are above 100 MB (default value) | ||
+ | |||
+ | < | ||
+ | wp-cl-spacemgr-list-files -s 150 list-files | ||
+ | </ | ||
+ | The above command shows list of files which are above 150 MB | ||
+ | |||
+ | < | ||
+ | wp-cl-spacemgr-list-files -u user1 list-files | ||
+ | </ | ||
+ | The above command shows list of files user the user directory /home/user1 and which are above 100 MB | ||
+ | |||
+ | < | ||
+ | wp-cl-spacemgr-list-files -extns " | ||
+ | </ | ||
+ | The above command shows a list of files having extension log and zip | ||
+ | |||
+ | Well, we can combine all the above switches to locate files very specifically. Like for example if I need to look for files greater than 50 MB, under /home/user1 and having extension log or zip, the relevant command would be | ||
+ | < | ||
+ | wp-cl-spacemgr-list-files -u user1 -s 50 -extns " | ||
+ | </ | ||
+ | |||
+ | **Command : wp-cl-spacemgr-remove-file** - It lets you remove a specific file from the system. | ||
+ | < | ||
+ | wp-cl-spacemgr-remove-file -f / | ||
+ | </ | ||
+ | |||
+ | **Command : wp-cl-spacemgr-list-ibkps** - This command shows the disk used for incremental backups for the respective VHost/ | ||
+ | < | ||
+ | wp-cl-spacemgr-list-ibkps list | ||
+ | </ | ||
+ | |||
+ | **Command : wp-cl-spacemgr-remove-ibkp** - This command allows you to purge/ | ||
+ | < | ||
+ | wp-cl-spacemgr-remove-ibkp -v test-cl0099-cl0001.pwh-r1.com purge | ||
+ | </ | ||
+ | |||
+ | **Command : wp-cl-spacemgr-clear-journal** - This command allows you to purge/ | ||
+ | < | ||
+ | wp-cl-spacemgr-clear-journal clear | ||
+ | </ | ||
+ | |||
+ | After running any of the above removal command(s), please re-check the system disk usage by using the command **wp-cl-spacemgr-usage-breakup usage-breakup** | ||
+ | |||
+ | //Please use proper due diligence and care when running above commands. N99panel team or its staff is not responsible for these commands usage and their effect(s) // | ||
+ | |||
gen/disk-100.1750722716.txt.gz · Last modified: 2025/06/23 23:51 by kirtisingh