nfs mounted root filesystem in read-only mode

General support questions
Post Reply
xunilsotnec
Posts: 2
Joined: 2018/06/22 04:59:16

nfs mounted root filesystem in read-only mode

Post by xunilsotnec » 2019/08/16 18:30:48

I've been trying to get this working in centos 7 (works great in centos 6). Basically we pxe boot a cent6 kernel/initrd which then nfs mounts its root filesystem readonly from our management server. We use /etc/sysconfig/readonly-root and /etc/rwtab to control which files/directories will be remounted as read-write so the OS still functions properly.

Everything i've tried has failed. The issue seems to be around what contents i have in /etc/fstab. With no / entry the rhel-readonly service does nothing. If i put in the nfs mount entry that was used during pxe boot the systemd-remount-fs service fails.. then the rhel-readonly service runs for awhile before the system hangs.

Has anyone successfully used readonly root on cent7 with an nfs mounted root filesystem?

Thanks

Post Reply