linuxea:xen-server重启后报Read-only file system

出现状态:只读文件系统,如下,系统不能正常使用

/usr/bin/xauth:  error in locking authority file /root/.Xauthority
Could not set property: 连接超时
Could not set property: Activation of org.freedesktop.hostname1 timed out
Could not set property: Activation of org.freedesktop.hostname1 timed out
Could not set property: Activation of org.freedesktop.hostname1 timed out
-bash: /tmp/2018-08-10.Linuxea-VM-Node117.cluster.com.root.history-timestamp: 只读文件系统
-bash: /tmp/2018-08-10.Linuxea-VM-Node117.cluster.com.root.history-timestamp: Read-only file system
[root@Linuxea-VM-Node117 ~]#

检查root目录正常
这里也只有一个文件,便不用删他

[root@Linuxea-VM-Node117 /etc/logstash]# ll -a ~/.X*
-rw------- 1 root root 563 8月  11 09:10 /root/.Xauthority

而后挂载/rw解决

[root@Linuxea-VM-Node117 ~]# mount -o remount,rw /

由于fstab中没有挂载
逐一挂载即可

[root@Linuxea-VM-Node117 ~]# df -h
文件系统               容量  已用  可用 已用% 挂载点
devtmpfs               3.9G     0  3.9G    0% /dev
tmpfs                  3.9G     0  3.9G    0% /dev/shm
tmpfs                  3.9G  8.4M  3.9G    1% /run
tmpfs                  3.9G     0  3.9G    0% /sys/fs/cgroup
/dev/mapper/DG-root    13G  4.0G  8.6G   32% /
/dev/mapper/DG-data    50G   49M   50G    1% /data
tmpfs                  799M     0  799M    0% /run/user/0
[root@Linuxea-VM-Node117 ~]# lsblk -f
NAME          FSTYPE      LABEL UUID                                   MOUNTPOINT
xvda                                                                   
├─xvda2       LVM2_member       jIyyxh-6U9R-3ev3-PcOA-pJog-nXuK-PlWkWQ 
│ ├─DTVG-swap swap              f67ab7b3-1aab-4be4-a7e1-34e7606bde0e   [SWAP]
│ └─DTVG-root xfs               0b352b26-63dc-48b3-aa1b-b0296392c932   /
└─xvda1       xfs               b7b1cbe7-b4fb-4fd9-9665-ec0d3d6ba124   
sr0                                                                    
xvdb          LVM2_member       GEXALG-HWG0-cstS-170v-NPNg-B5Bd-wiShE8 
└─DTVG-data   xfs               af1f29ec-6bb1-4c93-8d1e-d20038ced3d5   /data
[root@Linuxea-VM-Node117 ~]# 

挂载后重启即可

[root@Linuxea-VM-Node117 ~]# cat /etc/fstab 
/dev/mapper/DTVG-root / xfs defaults 0 0
UUID=af1f29ec-6bb1-4c93-8d1e-d20038ced3d5 /data xfs  defaults  0 0
/dev/DTVG/swap swap swap defaults 0 0
[root@Linuxea-VM-Node117 ~]# 
0 分享

您可以选择一种方式赞助本站

支付宝扫码赞助

支付宝扫码赞助

日期: 2018-08-21分类: Xen

标签: Server_Books

发表评论