Got it

The space of drive C of the SVP is less than 1 GB

Latest reply: Jan 20, 2021 13:49:20 333 1 2 0 0

Hi, guys!

Do you know how to solve the space of drive C of the SVP is less than 1GB? Don't worry, the post will share with you.

Symptoms

A storage alarm is generated, indicating that the space of drive C of the SVP is less than 1 GB. When a user logs in to the CLI using PuTTY, the user can log in to the CLI successfully. However, the user exits unexpectedly and cannot use the CLI.

The following figure shows the alarms:

01

Cause

Problem 1: The script file of the upper-layer service uses the CLI commands of the storage device. Each login is recorded in the C:\Huawei\cli\cygwin_sshd\var\log\sshd.txt file. After the system runs for a long time, the file is too large and exhausts the space of drive C.

Problem 2: When a user logs in to the CLI, the user needs to create a login-related file in the C drive. The file fails to be created due to insufficient space. As a result, the CLI cannot be used.

Analysis

1. A storage alarm is generated, indicating that the space of drive C of the SVP is less than 1 GB.

2. Check the size of C:\Huawei\cli\cygwin_sshd\var\log\sshd.txt. The size reaches 36 GB.

02

3. Generally, the free space of the SVP ranges from 30 GB to 50 GB. If the size of the sshd.txt file reaches dozens of GB, the space of drive C is used up.

Solution

Log in to the SVP and manually delete the C:\Huawei\cli\cygwin_sshd\var\log\sshd.txt file.

Step 1: Log in to the SVP remotely.

Step 2: Switch the CLI startup mode.

Go to the C:\Huawei\cli\cygwin_sshd\etc directory.

03

Rename the profile file profile1 and rename the profile-uninstall file profile. After modification:

04

Step 3: Run the script to log in to the CYGWIN system.

Run the Cygwin.bat script in C:\Huawei\cli\cygwin_sshd.

05

Step 4: Run the rm –rf /var/log/sshd.txt command to delete the file.

06

Step 5: Restore the CLI login mode.

Go to the C:\Huawei\cli\cygwin_sshd\etc directory, rename the profile file profile-uninstall, and rename the profile1 file profile. After modification:

07

Step 6: Check whether the CLI is running properly.

Method: Run the start.bat script in C:\Huawei\cli.

08

Start the CLI icon on the desktop, enter the user name and password of the disk array, and check whether the CLI can be logged in and whether the login still exits unexpectedly.

09

This is my solution, how about yours? Go ahead and share it with us!


Good case!
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.