A friend company's Linux server ext3 filesystem becomes read only
[
2010/03/08 11:12 | by askwan ]
2010/03/08 11:12 | by askwan ]
System has been restarted everything seemed normal, the application starts normally! View the system boot log, there is no exception, the specific reasons for this situation also unknown now! It seems need to continue to observe.
However, open system, found that swap partition 0
Is it did not installed the system swap partition?
output Nothing, there is no swap partition indeed !
this System has 4G mem, so additional 8G swap space manually
[root@youke2 log]# mkswap /tmp/swapfree
Setting up swapspace version 1, size = 8589930 kB
Re-examine swap partition:
[root@youke2 log]# cat /proc/swaps
Filename Type Size Used Priority
/tmp/swapfree file 8388600 0 -1
USE top TO CHECK
OK! write this to fstab file,so it can valid at system start time !
However, open system, found that swap partition 0
Swap: 0k total, 0k used, 0k free, 300496k cached
Is it did not installed the system swap partition?
[root@youke2 log]# cat /proc/swaps
output Nothing, there is no swap partition indeed !
this System has 4G mem, so additional 8G swap space manually
[root@youke2 log]# dd if=/dev/zero of=/tmp/swapfree bs=1024K count=8192
8192+0 records in 8192+0 records out 8589934592 bytes (8.6 GB) copied, 111.247 seconds, 77.2 MB/s
8192+0 records in 8192+0 records out 8589934592 bytes (8.6 GB) copied, 111.247 seconds, 77.2 MB/s
[root@youke2 log]# mkswap /tmp/swapfree
Setting up swapspace version 1, size = 8589930 kB
[root@youke2 log]# swapon /tmp/swapfree
Re-examine swap partition:
[root@youke2 log]# cat /proc/swaps
Filename Type Size Used Priority
/tmp/swapfree file 8388600 0 -1
USE top TO CHECK
Tasks: 145 total, 1 running, 144 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1%us, 0.2%sy, 0.0%ni, 94.4%id, 5.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4138172k total, 3834908k used, 303264k free, 28220k buffers
Swap: 8388600k total, 0k used, 8388600k free, 3605544k cached
Cpu(s): 0.1%us, 0.2%sy, 0.0%ni, 94.4%id, 5.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4138172k total, 3834908k used, 303264k free, 28220k buffers
Swap: 8388600k total, 0k used, 8388600k free, 3605544k cached
OK! write this to fstab file,so it can valid at system start time !
/tmp/swapfree swap swap defaults 0 0
作者:askwan@『AskWan』
地址:http://www.askwan.com/Linux_server_ext3_filesystem_readonly/
可以转载,转载时请以链接形式注明作者和原始出处及本声明!
compile net-snmp on debian lenny
"500 ERROR: User 'root' cannot be used as an NX user"












