Gopi Desaboyina Solaris Blogs

Just another WordPress.com weblog

/packages/ufs-file-system: Last Trap: Division by Zero

{0} ok boot -sv
SC Alert: Host System has Reset
ChassisSerialNumber xxxxxxxxx
Sun Fire T200, No Keyboard
Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.30.4, 32640 MB memory available, Serial #80469064.
Ethernet address xxxxxxxxxxx, Host ID: xxxxxxxxx.
Boot device: /pci@780/pci@0/pci@9/scsi@0/disk@0  File and args: -sv
/
ERROR: /packages/ufs-file-system: Last Trap: Division by Zero
{0} ok

 

System has OS on mirrored zpool.

Error indicates that there is a problem with boot block. since we’ve ZFS filesystem and some how due to corruption it’s taking as UFS and throwing above error. to fix this issue. That is what I did.

 

1. Boot CDROM or net which has Solaris 10 version later than U6. Prefer U8 or U9.

2. zpool import  & check for rpool is available.

# zpool import 
pool: rpool 
id: 10247304097055351608
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
        rpool         ONLINE
          mirror      ONLINE
            c0t0d0s0  ONLINE
            c0t1d0s0  ONLINE
#

3. zpool import -R /a rpool. You can ignore the errors it thrown below.

#  zpool import -R /a rpool 
cannot mount ‘/a/export’: failed to create mountpoint
cannot mount ‘/a/export/home’: failed to create mountpoint
cannot mount ‘/a/rpool’: failed to create mountpoint

#

4. zfs list

# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
rpool                 55.2G  11.7G    97K  /a/rpool
rpool/ROOT            13.9G  11.7G    21K  legacy
rpool/ROOT/sol10      13.9G  11.7G  4.58G  /a
rpool/ROOT/sol10/var  9.34G   671M  9.34G  /a/var
rpool/dump            8.00G  11.7G  8.00G  –
rpool/export            51K  11.7G    23K  /a/export
rpool/export/home       28K  5.00G    28K  /a/export/home
rpool/swap            32.3G  11.7G  32.3G  –
rpool/tmp              974M  4.05G   974M  legacy

5. zfs mount rpool/ROOT/sol10   # Mount the BE on to /a

6. cd /a ; ls -ltr & see if you can all the files.
7. installboot -F zfs /a/usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t0d0s0 #This will install the boot blk from same image to sector 0.
8. bootadm update-archive -R /a      # Updates the boot-archive. Normally nor required unless it throws error on boot-archive.

 

After all above steps. system booted without any issues.

May 31, 2011 Posted by | Solaris | | 1 Comment