Simulated disk full removal troubleshooting

Source: Internet
Author: User


The most basic name for the server
Temporary change of name hostname NFSServer
Vi/etc/sysconfig/network Direct Modification
The name behind the hostname=.
Sed-i "s%localhost%serverfile%g"/etc/sysconfig/network Direct modification
If the boot server is slow, you can
Add the modified computer name to the Vi/etc/hosts

When writing an article, add the operating system version
UNAME-A Show Related information
How to simulate a small disk
DD If=/dev/zero OF=/DEV/SDC bs=8k count=10
Ls-l/dev/sdcmkfs-t EXT4/DEV/SDC
Tune2fs-c -1/DEV/SDC
Mount-o Loop/dev/sdc/var/logs
After the httpd simulation is removed
Rpm-qa |grep httpd to see if the HTTPD service is installed
Not installed
Yum Install Httpd-y
Modifying the httpd.conf configuration file
Cp/etc/httpd/conf/httpd.conf/etc/httpd/conf/httpd.conf.ori
Modify httpd.conf in #customlog logs/access_log common change to customlog/var/logs/access_log common
Meaning remove the previous # and change the path to/var/logs corresponds to our previous virtual small disk
Open/ETC/INIT.D/HTTPD Start
Pass
For n in ' seq 100000 ';d o curl-s 127.0.0.1>/dev/null;done
View Df-h
Delete Rm-f/var/logs/access_log
View Df-f It's not erased at all.
Check lsof |grep del again at this time.
Found deleted files are httpd occupied, not really deleted
/ETC/INIT.D/HTTPD restart

This article is from the "Action Now" blog, so be sure to keep this source http://lijixingdong.blog.51cto.com/633033/1795564

Simulated disk full removal troubleshooting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.