July 25, 2015

Hướng dẫn resize phân vùng /tmp

Trong bài viết này, Hostvn sẽ hướng dẫn các bạn thay đổi dung lượng phần vùng /tmp thông qua scripts của cPanel. Các bạn làm tuần tự theo các bước dưới đây để tránh gặp lỗi trong quá trình resize.
1. Đầu tiên các bạn cần connect tới vpsserver .
2. Các bạn chỉnh dung lượng mà các bạn muốn thay đổi
root@vps [~]# nano /scripts/securetmp
tmp1
Thay đổi giá trị dung lượng ở dòng ” my $tmpdsksize “
tmp2
3.  Stop các service :
root@vps [~]# service mysql stop
root@vps [~]# service httpd stop
4. Kiểm tra và kill các process :
root@vps [~]# pstree -p | grep tailwatchd
|-tailwatchd(22997)
root@vps [~]# kill -9 22997
root@vps [~]# umount /var/tmp
root@vps [~]# fuser -cu /tmp
/tmp:                16944(mysql)
root@vps [~]# kill -9 16944
root@vps [~]# umount /tmp
root@vps [~]# rm -rf /usr/tmpDSK
5. Chạy script resize của cPanel :
root@vps [~]# /scripts/securetmp –auto
6. Start lại các service và kiểm tra xem /tmp đã được resize chưa :
root@vps [~]# service mysql start
root@vps [~]# service httpd start
root@vps [~]# reboot

Related Posts:

  • How to Check Package Is Installed or Not As a System Admin, I’ve to check some Package is installed or not. In this article I’ll show you how to properly check some package is installed on your system or not. Install htop Package [mitesh@Matrix ~]$ apt-get insta… Read More
  • Finding and Processing Files on Linux locate command Locate - Find Files by Name Locate reads one or more databases prepared by updatedb command. Options /----------------------------------------------------------------------------------------------… Read More
  • Browsing the Filesystem on Linux Linux File Hierarchy Concepts Files and Directories are organized into a single rooted inverted tree structure, including distinct physical volumes such as Floppy Disks, CD-ROMs and Multiple Hard Drives. Filesystem begins a… Read More
  • Disable IPv6 on Linux Check IPv6 is Enabled/Disabled [mitesh@Matrix ~]$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6 NOTE! If above command return1 means ipv6 is completely disabled0 means ipv6 is not completely disabled Disable IPv6 Te… Read More
  • How to Fix Webroot Permissions Change Ownership [mitesh@Matrix ~]$ chown -R www-data:www-data /var/www NOTE!: The www-data user is used by nginx and php5-fpm. If you are running php as a different user then change ownership as per that. Rese… Read More

0 comments:

Post a Comment