找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1057|回复: 2

[N1盒子] lxc 运行op关闭后无法启动(Read-only file system - Failed to set mode "...

[复制链接]
这个问题大概只有像我瞎折腾debian/armbian中的lxc才会遇见吧(打扰了)
在这里做下记录,省得忘了。
问题是lxc-start -n openwrt -F的时候提示:
  1. lxc-start: op: conf.c: lxc_setup_ttydir_console: 1739 Read-only file system - Failed to set mode "0110" to "/dev/pts/3"
  2.                                        lxc-start: op: conf.c: lxc_setup: 3398 Failed to setup console
  3.                      lxc-start: op: start.c: do_start: 1218 Failed to setup container "op"
  4.           lxc-start: op: sync.c: __sync_wait: 36 An error occurred in another process (expected sequence number 5)
  5.                                   lxc-start: op: start.c: __lxc_start: 1999 Failed to spawn container "op"
  6.                           lxc-start: op: tools/lxc_start.c: main: 308 The container failed to start
  7. lxc-start: op: tools/lxc_start.c: main: 313 Additional information can be obtained by setting the --logfile and --logpriority options
复制代码
google(垃圾百度)了下才找到问题所在:(https://forum.turris.cz/t/devpts-readonly-after-lxc-stop/14151
Just find umount command in rc.d scripts. For example: in openwrt container edit /etc/rc.d/K90umount and remove -r key in /bin/umount -a -d -r → /bin/umount -a -d
恩,就是op关机时执行了/bin/umount -a -d -r  。-r意思是无法卸载时挂载为只读(ro),对应了[Read-only file system - Failed to set mode "0110" to "/dev/pts/3"]
删除-r就行了。


感谢解答原理
回复

使用道具 举报

同样遇到这个问题,困扰了我一周。感谢记录
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-21 06:43

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表