[rancid] corrupted bootflash bothering rancid

John Payne john at sackheads.org
Mon May 5 14:49:15 UTC 2008

Found a router with corrupted bootflash causing rancid to crap out.   
Whilst the rancid failure did draw attention to this, it probably  
should continue backing up and not just crapping out on this router.

 From the log file:

Trying to get all of the configs.
write(spawn_id=1): broken pipe
     while executing
"send_user -- "$expect_out(buffer)""
     invoked from within
"expect -nobrace -re ^H+ { exp_continue } -re {^[^
^M *]*router1([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --  
                                                 } -re {^[..."
     invoked from within
"expect {
                 -re "\b+"                       { exp_continue }
                 -re "^\[^\n\r *]*$reprompt"     { send_user --  
                 -re "^\[^\n\r]*$reprompt."      { send..."
     (procedure "run_commands" line 42)
     invoked from within
"run_commands $prompt $command"
     ("foreach" body line 150)
     invoked from within
"foreach router [lrange $argv $i end] {
     set router [string tolower $router]
     # attempt at platform switching.
     set platform ""
     send_user ..."
     (file "/usr/local/rancid/bin/clogin" line 712)^M
router1: missed cmd(s): dir /all sup-microcode:,dir /all  
slaveslot1:,show vlan,dir /all harddiskb:,dir /all slot1:,show  
diag,dir /all slavedisk1:,dir /all sec-slot1:,admin show diag,dir / 
all disk1:,show vtp status,show controllers,dir /all sec-disk1:,show  
debug,show diagbus,show inventory raw,dir /all slaveslot0:,dir /all  
slavenvram:,dir /all slaveslot2:,dir /all harddiska:,dir /all  
slot0:,show vlan-switch,show c7200,show module,write term,dir /all  
sup-bootflash:,dir /all slot2:,dir /all slavedisk0:,dir /all sec- 
slot0:,show controllers cbus,dir /all harddisk:,dir /all sec- 
nvram:,dir /all slavedisk2:,dir /all sec-slot2:,dir /all disk0:,dir / 
all disk2:,dir /all sec-disk0:,show spe version,dir /all slavesup- 
bootflash:,dir /all sec-disk2:,dir /all slavebootflash:,dir /all sec- 
bootflash:,show running-config
router1: End of run not found
!Flash: bootflash: Directory of bootflash:/

running dir /all bootflash:  gave me:
router1#dir /all bootflash:
Directory of bootflash:/

%Error calling getdents for bootflash:/ (Invalid created file header  

32768000 bytes total (24870912 bytes free)

formatting the bootflash allowed rancid to successfully complete.

         return(-1) if /\%Error calling/;
actually be:
         return(1) if /\%Error calling/;



More information about the Rancid-discuss mailing list