Search

Manage Storage on Your VPS

Early Access: Ultra.sh is currently in early access. Features, plans, and documentation may change as we continue to improve the service. If anything here does not match what you see, open a support ticket and let us know.

Manage Storage on Your VPS

This guide explains how to set up root access, check disk usage, delete files, clear caches and logs, and erase your VPS with a reinstall.

Prerequisites

  • An active VPS. See Purchase a VPS for instructions.
  • An SSH key, added when you ordered your VPS or later in the panel, or a root password. To add a key, see Manage SSH Keys. The Set Up Root Access section explains how to create the password.
  • A copy, stored outside the VPS, of any files you want to keep.

Access the Panel

  • Go to the Ultra.sh website and click Sign in to log in to the client area.
  • Open the 1 Services tab.
  • Select the VPS you want to manage. Its service overview opens.
  • Click the 2 Log in to panel button.
image
  • Click Confirm and sign in on the Confirm your account screen.
  • Click your server's card in the Servers list to open it.

Set Up Root Access

Skip this section if you connect with your own SSH client and an SSH key. The xterm.js and noVNC consoles need a root password.

  • Open the Settings tab. A VPS ordered without an SSH key shows the Set up access to your server dialog.
  • Click the Generate root password button to turn on password login over SSH. Your VPS must be running.
  • Click the Copy password button in the Your root password dialog and store the password safely. The panel does not store it and cannot show it again.
  • Click the I have copied my password button.
  • Open Settings > Security instead if your VPS has only an SSH key, or if you lose the password.
  • Click Reset root password. For details, see Reset the Root Password.
  • Click the Copy password button in the New root password dialog and store the password safely. The panel does not store it and cannot show it again.
  • The new password works over SSH only while the Password login over SSH switch on the Security tab is on. The console accepts the password either way.

Check the Disk Size

  • Open the 1 Settings tab.
  • Open the 2 Hardware tab.
  • Find the 3 DISK value. It shows the total size of your VPS disk. The server card in the Servers list also shows the DISK value.
image

Connect to Your VPS

You can run the commands in this guide from your own SSH client or from the xterm.js console in the panel. The steps below use the xterm.js console.

  • Connect with your own SSH client if you prefer. Run ssh root@<ip> on your computer, log in, and continue at Check Disk Usage.
    • Replace <ip> with the ADDRESS in the Network section of the Overview tab. Leave out the prefix at the end, such as /24.
  • Open the 1 Overview tab.
  • Click 2 Open console under xterm.js. xterm.js needs a serial console, so it does not work with every operating system.
  • Click Open console under noVNC instead if xterm.js does not work with your image. noVNC does not support paste, so type your password.
  • Press Enter if the xterm.js console is blank. The login prompt appears after you press Enter.
  • Log in as root with the root password from the Set Up Root Access section. For details, see Access the Console.
image

Check Disk Usage

  • Run df -h / to see the disk space of your VPS. The Size, Used, Avail and Use% columns show the total, used and free space.
  • Run du -xh --max-depth=1 / | sort -h to list the folders on the disk by size. The largest folders are near the bottom. The last line is the total for the folder you checked.
  • Run du -xh --max-depth=1 <folder> | sort -h to look inside a large folder.
    • Replace <folder> with the folder's path, for example /var.

Delete Files

Deleted files cannot be recovered. The rm command does not use a recycle bin. Copy any files you want to keep off the VPS first, and never delete system folders such as /bin, /boot, /etc, /lib or /usr.

  • Run rm <file> to delete a single file.
    • Replace <file> with the file's path, for example /root/backup.zip.
  • Run rm -r <folder> to delete a folder and everything in it.
    • Replace <folder> with the folder's path.
  • Run df -h / again to confirm that the free space increased.
  • If the free space did not increase, a running process may still hold a deleted file open. That file frees its space only after the process restarts.

Clear Package Caches and Logs

Note: Use the apt commands on the Debian and Ubuntu images. Use the dnf commands on the Fedora, AlmaLinux, Rocky Linux and CentOS Stream images.

  • Run apt clean on Debian or Ubuntu to delete the downloaded package files in /var/cache/apt/archives.
  • Run dnf clean all on Fedora, AlmaLinux, Rocky Linux or CentOS Stream to delete the cached package files and metadata.
  • Run apt autoremove or dnf autoremove to remove packages that are no longer needed.
  • Enter Y to confirm the removal.
  • Run journalctl --disk-usage to see how much space the system logs use.
  • Run journalctl --vacuum-size=100M to delete the oldest archived logs until the archived logs use at most 100 MB. The command does not remove the active log files, so the total that journalctl --disk-usage shows can stay above 100 MB.

Reinstall Your VPS

Only use this method if you want to erase every file on your VPS and start again from a fresh image. For details, see Reinstall a VPS.

Reinstalling erases everything on the disk. This cannot be undone. Copy any files you want to keep off the VPS before you continue.

  • Open the 1 Settings tab. It opens on the General tab, which holds the Reinstall server section.
  • Select an image in the 2 Image drop-down. The Reinstall button stays disabled until you select one.
  • Enter the SSH keys that can log in as root on the fresh install in the 3 SSH Keys field, if you want to change them.
  • Leave the SSH Keys field empty to keep the keys that are on your VPS now. The panel adds those keys to the fresh install, and every file on the disk is still erased.
  • A VPS with no keys at all gets a new root password on your next visit to the panel.
  • Select the 4 Start the server when the install finishes checkbox if you want the VPS to start on its own. It is off by default.
  • Click the 5 Reinstall button.
  • Click Confirm in the Reinstall this server? dialog. The reinstall cannot be undone.
  • Wait for the install to finish. The panel says it can take from 1 to 15 minutes.
  • Click Start on the Overview tab if you did not select Start the server when the install finishes.
image

If you require further assistance, you can open a support ticket here.