Friday, October 14, 2011

tar: file name too long (how to fix)

To avoid skipping files with names longer than 255 chars, use the "E" option on tar:

# tar Ecpf - /zones | gzip >> zones-usrtp1sspap009.tar.gz

Command above is useful when you don't have too much space left to compress/gzip a file

Thursday, August 18, 2011

Issue on SunFire 15K

This is just for the records ... One of my customers scheduled a maintenance on a SunFire 15K and the CE swapped the boards without a proper "power OFF" on SMS (SC). Here's the way to fix the issue:

SEEPROM probe took 0 seconds.
Reading Component Health Status (CHS) information ...
CHS reports Port IO6/P0 status NOT_GOOD. Treating as blacklisted.
NOTE: Crunching Slot IO6 because BBC is not GOOD, can't connect IO Boards.


How to fix:
setchs -c IO7/P0 -r " " -s ok
setchs -c IO6/P0 -r " " -s ok

This command will clear the CHS component status'. Then, you will only need to setkeyswitch the domain (off/on) to rerun POST and voila.

Hope that helps someone out there in trouble.