BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: weerawuth ที่ ตุลาคม 14, 2010, 10:27:43 AM
-
[root@big-hosxp ~]# service mysql status
MySQL is running but PID file could not be found [FAILED]
[root@big-hosxp ~]#
-
101014 10:05:34 InnoDB Plugin 1.0.4-7 started; log sequence number 1277745437
101014 10:05:34 [ERROR] /usr/sbin/mysqld: Error writing file '/var/lib/mysql/big-hosxp.pid' (Errcode: 28)
101014 10:05:34 [ERROR] Can't start server: can't create PID file: No space left on device
101014 10:05:35 mysqld_safe Number of processes running now: 0
101014 10:05:35 mysqld_safe mysqld restarted
101014 10:05:35 [Note] Plugin 'FEDERATED' is disabled.
-
#My_8GB
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
#key_buffer = 40-50 % of RAM
key_buffer = 2400M
max_allowed_packet = 1024M
max_heap_table_size = 2048M
max_connections=2000
table_cache = 1500
table_open_cache = 1500
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
#myisam_sort_buffer_size = 10-20 % of RAM
myisam_sort_buffer_size = 1024M
myisam_max_sort_file_size = 2048M
myisam_max_extra_sort_file_size = 2048M
myisam_repair_threads = 1
myisam_recover
thread_cache_size = 8
query_cache_type=1
#query_cache_size= 10 % of RAM
query_cache_size= 720M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
skip-character-set-client-handshake
skip-locking
init_connect = 'SET NAMES tis620'
big-tables
default-storage-engine = INNODB
join_buffer_size = 4M
concurrent_insert = 2
join_buffer_size = 2M
concurrent_insert = 2
log_bin_trust_function_creators = 1
innodb_file_per_table
innodb_data_home_dir = /var/lib/mysql/
innodb_log_group_home_dir = /var/lib/mysql/
#interactive_timeout = 600
#wait_timeout = 1200
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
############################# mysql 5.1.X
#innodb_log_arch_dir = /var/lib/mysql/
#############################
#innodb_buffer_pool_size = 40-60 % of RAM
innodb_buffer_pool_size = 4200M
innodb_additional_mem_pool_size = 24M
innodb_log_file_size = 512M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 0
#ulimit -n 30000
innodb_support_xa=0
innodb_open_files = 2000
innodb_locks_unsafe_for_binlog=1
innodb_flush_method=O_DIRECT
innodb_doublewrite=0
innodb_adaptive_checkpoint = 1
innodb_io_capacity = 10000
innodb_write_io_threads = 16
innodb_read_io_threads = 16
[mysqldump]
quick
max_allowed_packet = 1024M
allow-keywords
[mysql]
no-auto-rehash
default-character-set=tis620
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
-
;D ;D ;D ใช้ mysql server ประเภทไหนครับ mysql ที่โหลดจาก http://www.mysql.com
หรือ Xtradb จาก http://www.percona.com มันมีต่างกันอยู่นะครับเรื่อง คอนฟิก my.cnf
-
ตระกูล redhat หรือเปล่า ลองคำสั่งนี้ดู
#service mysqld status
บอก คุณสุทธิพงษ์ เทียทอง ด้วยว่า
ผมคิดถึง
-
101014 10:05:34 InnoDB Plugin 1.0.4-7 started; log sequence number 1277745437
101014 10:05:34 [ERROR] /usr/sbin/mysqld: Error writing file '/var/lib/mysql/big-hosxp.pid' (Errcode: 28)
101014 10:05:34 [ERROR] Can't start server: can't create PID file: No space left on device
101014 10:05:35 mysqld_safe Number of processes running now: 0
101014 10:05:35 mysqld_safe mysqld restarted
101014 10:05:35 [Note] Plugin 'FEDERATED' is disabled.
พื้นที่ใน HD เต็มหรือป่าวครับ
ลองตรวจสอบดู
df -h /var/lib
อีกอย่าง มีไฟล์ประเภท log file (mysql-bin.xxxxxx) เยอะหรือป่าวครับ
-
101014 10:05:34 InnoDB Plugin 1.0.4-7 started; log sequence number 1277745437
101014 10:05:34 [ERROR] /usr/sbin/mysqld: Error writing file '/var/lib/mysql/big-hosxp.pid' (Errcode: 28)
101014 10:05:34 [ERROR] Can't start server: can't create PID file: No space left on device
101014 10:05:35 mysqld_safe Number of processes running now: 0
101014 10:05:35 mysqld_safe mysqld restarted
101014 10:05:35 [Note] Plugin 'FEDERATED' is disabled.
พื้นที่ใน HD เต็มหรือป่าวครับ
ลองตรวจสอบดู
df -h /var/lib
อีกอย่าง มีไฟล์ประเภท log file (mysql-bin.xxxxxx) เยอะหรือป่าวครับ
จริงด้วยคับ
[root@big-hosxp ~]# df -h /var/lib
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 3.9G 3.8G 0 100% /var
สงสัยตอนลงจะแบ่งผิด
คงต้องลองลงใหม่อีกที (ตั้งใจจะทำเป็น server สำรอง)
ขอบคุณทุกท่านมากเลยนะคับ
-
ถ้าเป็นที่พื้นที่เก็บ database ก็ควรแบ่ง /var ให้มากนะครับ หรือไม่ก็ แบ่ง partition แบบ auto ไปเลย
-
;D ;D ;D กำ อิิอิ
101014 10:05:34 InnoDB Plugin 1.0.4-7 started; log sequence number 1277745437
101014 10:05:34 [ERROR] /usr/sbin/mysqld: Error writing file '/var/lib/mysql/big-hosxp.pid' (Errcode: 28)
101014 10:05:34 [ERROR] Can't start server: can't create PID file: No space left on device
101014 10:05:35 mysqld_safe Number of processes running now: 0
101014 10:05:35 mysqld_safe mysqld restarted
101014 10:05:35 [Note] Plugin 'FEDERATED' is disabled.
พื้นที่ใน HD เต็มหรือป่าวครับ
ลองตรวจสอบดู
df -h /var/lib
อีกอย่าง มีไฟล์ประเภท log file (mysql-bin.xxxxxx) เยอะหรือป่าวครับ
จริงด้วยคับ
[root@big-hosxp ~]# df -h /var/lib
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 3.9G 3.8G 0 100% /var
สงสัยตอนลงจะแบ่งผิด
คงต้องลองลงใหม่อีกที (ตั้งใจจะทำเป็น server สำรอง)
ขอบคุณทุกท่านมากเลยนะคับ
-
server ตัวแรกผมก็แบ่งเองเหมือนกัน ต้องมีผู้รู้คอยดูให้จะไปเร็วคับ อิอิ