cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
296
Views
2
Helpful
4
Replies

NCS 540 OBFL Flash access failed : Read-only file system

jm-barreto
Level 1
Level 1

Greetings 

I have a N540-24Z8Q2C-M and start receiving log message from OBFL flash  

0/RP0/ADMIN0:Dec 17 14:12:57.777 AST: mediasvr[2623]: %MEDIASVR-MEDIASVR-4-OBFL_FLASH_ACCESS_FAILED : OBFL flash access failed, error : Read-only file system
0/RP0/ADMIN0:Dec 17 14:12:57.795 AST: mediasvr[2623]: %MEDIASVR-MEDIASVR-4-KERN_OBFL_MSG1 : obfl, kern msg : Kernel UBIFS error message in kernel log, check obfl flash.

0/RP0/ADMIN0:Dec 17 16:17:04.711 AST: obfl_mgr[2626]: %INFRA-OBFL_MGR_COMMON-3-OBFL_DEV_ERROR : OBFL device access error : -904919038 [OBFL no str version for this error ]



I read this article https://community.cisco.com/t5/tkb-サービスプロバイダ-ドキュメント/ncs5500-mediasvr-mediasvr-4-obfl-flash-access-failed/ta-p/4171382 But notice that the steps are for ncs5500. Its there a documentation for the NCS540 to fix this?

I will appreciate any information that you can provide.

Thanks

1 Accepted Solution

Accepted Solutions

jm-barreto
Level 1
Level 1

I manage to follow the fix that I post for the NCS 5500 and it works for the NCS 540. Here are the steps

prior confirmation
sysadmin-vm:0_RP0# run
[sysadmin-vm:0_RP0:~]$mount | grep plug
/dev/ubi3_0 on /mnt/plog type ubifs (ro, relatime) <<<<< Before performing the procedure, reconfirm that the target FS is ro
[sysadmin-vm:0_RP0:~]$ls -l /mnt/plog
---snip---

formatting instructions:
[sysadmin-vm:0_RP0:~]$
[sysadmin-vm:0_RP0:~]$umount /mnt/plog/[sysadmin-vm:0_RP0:~]$mount | grep plug
[sysadmin-vm:0_RP0:~]$arp
---snip---
[sysadmin-vm:0_RP0:~]$ssh 10.0.2.16 <<< Connect to host OS
[host:0_RP0:~]$ ubidetach -m 3
[host:0_RP0:~]$ ubiformat /dev/mtd3 <<< It takes about a few minutes
ubiformat: mtd3 (nor), size 18874368 bytes (18.0 MiB), 144 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 1 bytes

libscan: scanning eraseblock 0 -- 0 % complete
libscan: scanning eraseblock 1 -- 1 % complete
libscan: scanning eraseblock 2 -- 2 % complete
---snip---
ubiformat: formatting eraseblock 143 -- 100% complete

[host:0_RP0:~]$
[host:0_RP0:~]$ ubiattach -m 3 -d 3
UBI device number 3, total 144 LEBs (18855936 bytes, 18.0 MiB), available 140 LEBs (18332160 bytes, 17.5 MiB), LEB size 130944 bytes (127.9 KiB)
[host:0_RP0:~]$ ubimkvol /dev/ubi3 -N plug -m
Set volume size to 18332160
Volume ID 0, size 140 LEBs (18332160 bytes, 17.5 MiB), LEB size 130944 bytes (127.9 KiB), dynamic, name "plog", alignment 1
[host:0_RP0:~]$ exit <<< Return to guest OS shell of sysadmin VM
---snip---
Connection to 10.0.2.16 closed.

[sysadmin-vm:0_RP0:~]$mount /dev/ubi3_0 /mnt/plog -t ubifs
[sysadmin-vm:0_RP0:~]$mount | grep plug
Confirm that /dev/ubi3_0 on /mnt/plog type ubifs (rw, relatime) <<<< rw
[sysadmin-vm:0_RP0:~]$ls -l /mnt/plog
Total 0
[sysadmin-vm:0_RP0:~]$

restart obfl_mgr process
show processes all loc 0/RP0 | inc obfl
process restart obfl_mgr location 0/RP0
show processes all loc 0/RP0 | inc obfl
run ls -l /mnt/plog/

Check if syslog output stops after watching for more than 10 minutes
XR VM:
Show logging

View solution in original post

4 Replies 4

Cristian Matei
VIP Alumni
VIP Alumni

Hi,

   Most probably you're encountering a known issue, see your options here:

https://www.cisco.com/c/en/us/support/docs/field-notices/721/fn72107.html

Thanks,

Cristian.

That issue is for SSD harddrive and that only affect firmware up to 7.3.x. I'm in  7.4.2 that is already fixed.

Thanks for the information.

Hello 
possibly a bug - try checking your software for any related SMUs pertaining to this issue or upgrade  


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

jm-barreto
Level 1
Level 1

I manage to follow the fix that I post for the NCS 5500 and it works for the NCS 540. Here are the steps

prior confirmation
sysadmin-vm:0_RP0# run
[sysadmin-vm:0_RP0:~]$mount | grep plug
/dev/ubi3_0 on /mnt/plog type ubifs (ro, relatime) <<<<< Before performing the procedure, reconfirm that the target FS is ro
[sysadmin-vm:0_RP0:~]$ls -l /mnt/plog
---snip---

formatting instructions:
[sysadmin-vm:0_RP0:~]$
[sysadmin-vm:0_RP0:~]$umount /mnt/plog/[sysadmin-vm:0_RP0:~]$mount | grep plug
[sysadmin-vm:0_RP0:~]$arp
---snip---
[sysadmin-vm:0_RP0:~]$ssh 10.0.2.16 <<< Connect to host OS
[host:0_RP0:~]$ ubidetach -m 3
[host:0_RP0:~]$ ubiformat /dev/mtd3 <<< It takes about a few minutes
ubiformat: mtd3 (nor), size 18874368 bytes (18.0 MiB), 144 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 1 bytes

libscan: scanning eraseblock 0 -- 0 % complete
libscan: scanning eraseblock 1 -- 1 % complete
libscan: scanning eraseblock 2 -- 2 % complete
---snip---
ubiformat: formatting eraseblock 143 -- 100% complete

[host:0_RP0:~]$
[host:0_RP0:~]$ ubiattach -m 3 -d 3
UBI device number 3, total 144 LEBs (18855936 bytes, 18.0 MiB), available 140 LEBs (18332160 bytes, 17.5 MiB), LEB size 130944 bytes (127.9 KiB)
[host:0_RP0:~]$ ubimkvol /dev/ubi3 -N plug -m
Set volume size to 18332160
Volume ID 0, size 140 LEBs (18332160 bytes, 17.5 MiB), LEB size 130944 bytes (127.9 KiB), dynamic, name "plog", alignment 1
[host:0_RP0:~]$ exit <<< Return to guest OS shell of sysadmin VM
---snip---
Connection to 10.0.2.16 closed.

[sysadmin-vm:0_RP0:~]$mount /dev/ubi3_0 /mnt/plog -t ubifs
[sysadmin-vm:0_RP0:~]$mount | grep plug
Confirm that /dev/ubi3_0 on /mnt/plog type ubifs (rw, relatime) <<<< rw
[sysadmin-vm:0_RP0:~]$ls -l /mnt/plog
Total 0
[sysadmin-vm:0_RP0:~]$

restart obfl_mgr process
show processes all loc 0/RP0 | inc obfl
process restart obfl_mgr location 0/RP0
show processes all loc 0/RP0 | inc obfl
run ls -l /mnt/plog/

Check if syslog output stops after watching for more than 10 minutes
XR VM:
Show logging