Description

When removing a USB without properly unmounting it, a CORE-dump can be seen during reboot of the device.

Symptoms

1. Loaded router with latest PPC image for MX104

Hostname: mx104-r2011-re0
Model: mx104
mx104-r2011-re0> show version invoke-on all-routing-engines | match Junos:   
Junos: 21.2R3-S3.5
Junos: 21.2R3-S3.5
 
mx104-r2011-re0% ls /var/tmp/usb1
System Volume Information      autorun.ico             autorun.inf >>>>>>>mounted USB
root@jtac-mx104-r2011-re0%
 

2. Removed USB and plugged again (without unmount procedure)

======
root@jtac-mx104-r2011-re0% ls /var/tmp/usb1
root@jtac-mx104-r2011-re0% 

3. Halted/rebooted the MX104 device. The below messages are seen on console terminal.

 *** FINAL System shutdown message from labroot@jtac-mx104-r2011-re0 ***
 
System going down IMMEDIATELY
 
DDWaiting (max 60 seconds) for system process `vnlru_mem' to stop...done
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...0 0 0 done
 
syncing disks... All buffers synced.
g_vfs_done():da1s1[READ(offset=574464, length=4096)]error = 6  >>>>>>>>>>>>FreeBSD same error seen
(da1:dead_sim0:0:0:0): Synchronize cache failed, status == 0x8, scsi status == 0x0
(da1:dead_sim0:0:0:0): removing device entry
 
fatal kernel trap:
 
  exception    = 0x2 (data storage interrupt)
  virtual address = 0x0
  srr0      = 0xa00c102c
  srr1      = 0x29000
  curthread    = 0xa7086540
     pid = 1, comm = init
 
panic: data storage interrupt trap
Uptime: 16m36s
Dumping 127 MB (248 chunks)
 chunk 0: 4202496 bytes ... ok
 chunk 1: 2138112 bytes ... ok
 chunk 2: 196608 bytes ... ok
 chunk 3: 78118912 bytes ... ok
 chunk 4: 24424448 bytes ... ok
 chunk 5: 475136 bytes ... ok
 chunk 6: 180224 bytes ... ok
 chunk 7: 663552 bytes ... ok

Solution

This behavior is expected on FreeBSD platforms.

Perform the below unmount procedure before removing USB from the device.

root@% umount /var/tmp/usb
root@% umass1: at uhub0 port 1 (addr 3) disconnected
(da1:umass-sim1:1:0:0): lost device
(da1:umass-sim1:1:0:0): removing device entry
umass1: detached


Refer to the following for more details:
KB12880 - [Junos] How to mount a USB drive on EX/SRX/MX/QFX Series platforms to import/export files [juniper.net]

Modification History

.

Related Information

[Junos] How to mount a USB drive on EX/SRX/MX/QFX Series platforms to import/export files