Solved / is mounted as read-only when boot up

Hi all,
I have just upgrade my freebsd server from 9.3 to 10.3 and then 10.3 to 11.0-RELEASE
I am facing issue when system is boot up. / is mounted as read-only
Here are my part of dmesge.boot log
Code:
si: Assigning MSI-X IRQ 274 to local APIC 6 vector 52
msi: Assigning MSI-X IRQ 275 to local APIC 7 vector 49
msi: Assigning MSI-X IRQ 276 to local APIC 2 vector 53
SMP: passed TSC synchronization test
TSC timecounter discards lower 1 bit(s)
Timecounter "TSC-low" frequency 1700047282 Hz quality 1000
Trying to mount root from ufs:/dev/aacd0p2 [rw]...
start_init: trying /sbin/init
lagg0: bpf attached
lagg1: bpf attached
lagg0: link state changed to DOWN
ums0: <Winbond Electronics Corp Hermon USB hidmouse Device, class 0/0, rev 1.10/0.01, addr 3> on usbus0
ums0: 3 buttons and [Z] coordinates ID=0
random: harvesting attach, 8 bytes (4 bits) from ums0
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to deny, logging disabled
em0: Link is up 1000 Mbps Full Duplex
em0: link state changed to UP
lagg0: link state changed to UP
Can some one help to show me how to fix it?
I can run #mount -a after server is up, and then / will be mounted with read-write
 
another partitions are mounted correctly
Code:
/dev/aacd0p2 on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/aacd0p4 on /tmp (ufs, local, soft-updates)
/dev/aacd0p5 on /var (ufs, local, soft-updates)
/dev/aacd0p6 on /usr (ufs, local, soft-updates)
fdescfs on /dev/fd (fdescfs)
procfs on /proc (procfs, local)
Code:
# cat /etc/fstab
/dev/aacd0p3    none       swap sw 0 0
/dev/aacd0p4    /tmp        ufs rw 2 2
/dev/aacd0p5    /var        ufs rw 2 2
/dev/aacd0p6    /usr        ufs rw 2 2
/dev/aacd0p2    /           ufs rw 0 0

fdesc   /dev/fd         fdescfs         rw      0       0
proc    /proc           procfs          rw      0       0
I also ran fsck to check file system, all is clean
 
There seems to be an order issue in your fstab. You're mounting /tmp, /var, etc. before /. Move / to the top and see if that helps. Also 0 0 isn't correct. That would mean it's never fsck(8)'ed. Use 1 1.
 
It was at the top and then i moved it down. It also was 1 1 to check file system. Let me change it back and reboot server again. But it was like you mentioned and / still mounted as read-only.
One thing is i has just upgrade OS from 9.3 to 10.3 and then 10.3 to 11.0
I read some where it could be miss-spelling with rc.conf or files in /etc/rc.d/. I tried to copy rc.d from another server to it, however after boot up, / still is mounted as read-only
 
No different
Code:
$ mount
/dev/aacd0p2 on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/aacd0p4 on /tmp (ufs, local, soft-updates)
/dev/aacd0p5 on /var (ufs, local, soft-updates)
/dev/aacd0p6 on /usr (ufs, local, soft-updates)
fdescfs on /dev/fd (fdescfs)
procfs on /proc (procfs, local)
 
I found
There is missing one option in /etc/defaults/rc.conf file
Code:
firstboot_sentinel="/firstboot" # Scripts with "firstboot" keyword are run if
                        # this file exists.  Should be on a R/W filesystem so
                        # the file can be deleted after the boot completes.
 
Back
Top