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:

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.

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.

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

Step 3: Run the script to log in to the CYGWIN system.
Run the Cygwin.bat script in C:\Huawei\cli\cygwin_sshd.

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

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:

Step 6: Check whether the CLI is running properly.
Method: Run the start.bat script in C:\Huawei\cli.

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.

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