Thanks to :
Simon Alexander Klaus Kissler [Simon.Kissler@valpo.edu]
ganeshan [ganeshan@gcs.com.au]
Mark Neill [Mark.Neill@banana.fanb.com]
Mark Sherman [ Y2k Consultant ] [marksh@funb.com]
and everyone who response.
The problem turn out to be my /dev/rdsk/c0t0d0s4 and
/dev/rdsk/c0t0d0s7 having problem. However, I does not has
any error messages in /var/adm/messages. Here's the how I fix it.
# init s
# ufsdump 0ucf /dev/rmt/0n / ---
# ufsdump 0ucf /dev/rmt/0n /usr |
# ufsdump 0ucf /dev/rmt/0n /var | -- These 5 step is to do backup,
so that in case server fail to
# ufsdump 0ucf /dev/rmt/0n /opt | reboot, I can restore back
using the backup tape.
# ufsdump 0ucf /dev/rmt/0n /home ---
# umount /var (my d4 is /var partition)
# fsck /dev/rdsk/c0t0d0s4
# umount /home (my d7 is /home partition)
# fsck /dev/rdsk/c0t0d0s7
# mount /dev/md/dsk/d4 /var
# mount /dev/md/dsk/d7 /home
# /usr/opt/SUNWmd/sbin/metareplace -e d4 /dev/dsk/c0t0d0s4
# /usr/opt/SUNWmd/sbin/metastat (You'll be able to see that the
c0t0d0s4 is having stage of resyncing)
(wait till the disk has the stage Okay, this may take some time)
# /usr/opt/SUNWmd/sbin/metareplace -e d4 /dev/dsk/c0t1d0s4
# /usr/opt/SUNWmd/sbin/metastat (You'll be able to see that the
c0t1d0s4 is having stage of resyncing)
(wait till the disk has the stage Okay, this may take some time)
# /usr/opt/SUNWmd/sbin/metareplace -e d7 /dev/dsk/c0t0d0s7
# /usr/opt/SUNWmd/sbin/metastat (You'll be able to see that the
c0t0d0s4 is having stage of resyncing)
(wait till the disk has the stage Okay, this may take some time)
# /usr/opt/SUNWmd/sbin/metareplace -e d7 /dev/dsk/c0t1d0s7
# /usr/opt/SUNWmd/sbin/metastat (You'll be able to see that the
c0t1d0s7 is having stage of resyncing)
(wait till the disk has the stage Okay, this may take some time)
# init 6
Thanks Simon and Ganeshan, I can't possibly fixing the problem
without your help. :-)
This is the output when I run fsck on /dev/rdsk/c0t0d0s4 (The output
for c0t0d0s4 is about the same)
# fsck /dev/rdsk/c0t0d0s4
** /dev/rdsk/c0t0d0s4
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=89442 (4 should be 0)
CORRECT? y
INCORRECT BLOCK COUNT I=121957 (2 should be 0)
CORRECT? y
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? y
1688 files, 76772 used, 405251 free (379 frags, 50609 blocks, 0.0%
fragmentation)
***** FILE SYSTEM WAS MODIFIED *****
# fsck /dev/rdsk/d0t1d0s4
** /dev/rdsk/c0t1d0s4
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1852 files, 77326 used, 404697 free (481 frags, 50527 blocks, 0.0%
fragmentation)
My question :
>
> Hi,
> Below is my metadb and metastat result. Seem like some of the
> disk mirroring is having problem. Can someone give me some guide
> on how to fix it? Thanks.
>
> /usr/opt/SUNWmd/sbin# metadb -i
> flags first blk block count
> a m p luo 16 1034
> /dev/dsk/c0t0d0s3
> a p luo 16 1034
> /dev/dsk/c0t1d0s3
> o - replica active prior to last mddb configuration change
> u - replica is up to date
> l - locator for this replica was read successfully
> c - replica's location was in /etc/opt/SUNWmd/mddb.cf
> p - replica's location was patched in kernel
> m - replica is master, this is replica selected as input
> W - replica has device write errors
> a - replica is active, commits are occurring to this replica
> M - replica had problem with master blocks
> D - replica had problem with data blocks
> F - replica had format problems
> S - replica is too small to hold current data base
> R - replica had device read errors
>
> /usr/opt/SUNWmd/sbin# metastat | more
> d0: Mirror
> Submirror 0: d10
> State: Okay
> Submirror 1: d20
> State: Okay
> Pass: 1
> Read option: roundrobin (default)
> Write option: parallel (default)
> Size: 308880 blocks
>
> d10: Submirror of d0
> State: Okay
> Size: 308880 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t0d0s0 0 No Okay
>
>
> d20: Submirror of d0
> State: Okay
> Size: 308880 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t1d0s0 0 No Okay
>
>
> d4: Mirror
> Submirror 0: d14
> State: Needs maintenance
> Submirror 1: d24
> State: Needs maintenance
> Pass: 1
> Read option: roundrobin (default)
> Write option: parallel (default)
> Size: 1026000 blocks
>
> d14: Submirror of d4
> State: Needs maintenance
> Invoke: metareplace d4 c0t0d0s4 <new device>
> Size: 1026000 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t0d0s4 0 No Maintenance
>
>
> d24: Submirror of d4
> State: Needs maintenance
> Invoke: after replacing "Maintenance" components:
> metareplace d4 c0t1d0s4 <new device>
> Size: 1026000 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t1d0s4 0 No Last Erred
>
>
> d5: Mirror
> Submirror 0: d15
> State: Okay
> Submirror 1: d25
> State: Okay
> Pass: 1
> Read option: roundrobin (default)
> Write option: parallel (default)
> Size: 1874880 blocks
>
> d15: Submirror of d5
> State: Okay
> Size: 1874880 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t0d0s5 0 No Okay
>
>
> d25: Submirror of d5
> State: Okay
> Size: 1874880 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t1d0s5 0 No Okay
>
>
> d6: Mirror
> Submirror 0: d16
> State: Okay
> Submirror 1: d26
> State: Okay
> Pass: 1
> Read option: roundrobin (default)
> Write option: parallel (default)
> Size: 2049840 blocks
>
> d16: Submirror of d6
> State: Okay
> Size: 2049840 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t0d0s6 0 No Okay
>
>
> d26: Submirror of d6
> State: Okay
> Size: 2049840 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t1d0s6 0 No Okay
>
>
> d7: Mirror
> Submirror 0: d17
> State: Needs maintenance
> Submirror 1: d27
> State: Needs maintenance
> Pass: 1
> Read option: roundrobin (default)
> Write option: parallel (default)
> Size: 2049840 blocks
>
> d17: Submirror of d7
> State: Needs maintenance
> Invoke: metareplace d7 c0t0d0s7 <new device>
> Size: 2049840 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t0d0s7 0 No Maintenance
>
>
> d27: Submirror of d7
> State: Needs maintenance
> Invoke: after replacing "Maintenance" components:
> metareplace d7 c0t1d0s7 <new device>
> Size: 2049840 blocks
> Stripe 0:
> Device Start Block Dbase State Hot Spare
> c0t1d0s7 0 No Last Erred
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:50 CDT