首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Centos 5.5 [只读文件系统]重新启动后发出

Centos 5.5 [只读文件系统]重新启动后发出
EN

Server Fault用户
提问于 2014-08-23 13:57:21
回答 1查看 7.8K关注 0票数 -2

我在centos5.5下有一个虚拟服务器(由一家名为樱花的日本公司托管)

从昨天起,通过ssh无法建立连接。我已经联系了支持中心,他告诉我从控制面板重新启动VS。重新启动后,我收到了下面的消息

代码语言:javascript
复制
Connected to domain wwwxxxxxx.sakura.ne.jp                                     
Escape character is ^]                                                          

[  OK  ]                                                                        
Setting hostname localhost.localdomain:  [  OK  ]                               

Setting up Logical Volume Management:   No volume groups found                  
[  OK  ]                                                                        

Checking filesystems                                                            
Checking all file systems.                                                      

[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/vda3                               
/ contains a file system with errors, check forced.                             

/: Inodes that were part of a corrupted orphan linked list found.               


/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.                                 
        (i.e., without -a or -p options)                                        

@@cat: /proc/self/attr/current: Invalid argument                                
                Welcome to CentOS                                               

Starting udev: @[  OK  ]                                                        
Setting hostname localhost.localdomain:  [  OK  ]                               

Setting up Logical Volume Management:   No volume groups found                  
[  OK  ]                                                                        

Checking filesystems                                                            
Checking all file systems.                                                      

[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/vda3                               
/ contains a file system with errors, check forced.                             

/: Inodes that were part of a corrupted orphan linked list found.               


/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.                                 
        (i.e., without -a or -p options)                                        

[FAILED]                                                                        


*** An error occurred during the file system check.                             
*** Dropping you to a shell; the system will reboot                             

*** when you leave the shell.                                                   
*** Warning -- SELinux is active                                                

*** Disabling security enforcement for system recovery.                         
*** Run 'setenforce 1' to reenable.                                             

/etc/rc.d/rc.sysinit: line 53: /selinux/enforce: Read-only file system          
Give root password for maintenance                                              

(or type Control-D to continue):                                                
bash: cannot set terminal process group (-1): Inappropriate ioctl for device    

bash: no job control in this shell                                              
bash: cannot create temp file for here-document: Read-only file system          

bash: cannot create temp file for here-document: Read-only file system          
bash: cannot create temp file for here-document: Read-only file system          

bash: cannot create temp file for here-document: Read-only file system          
bash: cannot create temp file for here-document: Read-only file system          

bash: cannot create temp file for here-document: Read-only file system          
bash: cannot create temp file for here-document: Read-only file system          

bash: cannot create temp file for here-document: Read-only file system          
bash: cannot create temp file for here-document: Read-only file system          

bash: cannot create temp file for here-document: Read-only file system          
(Repair filesystem) 1 # setenforce 1                                            

setenforce: SELinux is disabled                                                 
(Repair filesystem) 2 # echo 1  
(Repair filesystem) 4 # /etc/init.d/sshd  status

openssh-daemon is stopped
(Repair filesystem) 5 # /etc/init.d/sshd  start
Starting sshd: NET: Registered protocol family 10

lo: Disabled Privacy Extensions
touch: cannot touch `/var/lock/subsys/sshd': Read-only file system


(Repair filesystem) 6 # sudo /etc/init.d/sshd  start
sudo: sorry, you must have a tty to run sudo

(Repair filesystem) 7 #   

我有4个站点在生产中,我需要快速重新启动服务器(SSH + HTTPD,.)。

谢谢您抽时间见我。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2014-08-23 14:04:26

您在文件系统维护屏幕中。此时,您只需按提示指示执行即可。

运行手动文件系统检查:

代码语言:javascript
复制
fsck -y /

一旦完成,您可以键入exit,系统将重新启动。

票数 4
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/623547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档