SVM Solaris 8 Problem. Metastat output looping

Hi friends,

I'm newbie to SVM.
Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :frowning:

the steps i've taken is as below:-

1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2

2.metadb -a -c 3 -f c1t0d0s7 c1t1d0s7

3.for 'd0'
-metainit -f d10 1 1 c1t0d0s0
-metainit -f d11 1 1 c1t1d0s0
-metainit d0 -m d10

4.metaroot d0

5.for 'd1'
-metainit -f d20 1 1 c1t0d0s1
-metainit -f d21 1 1 c1t1d0s1
-metainit d1 -m d20

6.for 'd3'
-metainit -f d30 1 1 c1t0d0s3
-metainit d31 1 1 c1t1d0s3
-metainit d3 -m d30

7.for 'd4'
-metainit -f d40 1 1 c1t0d0s4
-metainit d41 1 1 c1t1d0s4
-metainit d4 -m d40

8.vi /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no -
/dev/md/dsk/d4 /dev/md/rdsk/d4 /export/home ufs 2 yes -
swap - /tmp tmpfs - yes -
root@mitv-t-cons01 >

9.reboot

  1. metastat --> this is where the problem comes,
    seems the metastat output keep on 'looping' even after the resync period complete.
    problems is it keep on looping on d3 and not even show the d4.

*****************************************************

metastat | more
d0: Mirror
Submirror 0: d10
State: Okay
Submirror 1: d11
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16536000 blocks

d10: Submirror of d0
State: Okay
Size: 16536000 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s0 0 No Okay

d11: Submirror of d0
State: Okay
Size: 16536000 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s0 0 No Okay

d1: Mirror
Submirror 0: d20
State: Okay
Submirror 1: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16536000 blocks

d20: Submirror of d1
State: Okay
Size: 16536000 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s1 0 No Okay

d21: Submirror of d1
State: Okay
Size: 16536000 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s1 0 No Okay

****
d3: Mirror
Submirror 0: d30
State: Needs maintenance
Submirror 1: d31
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16536000 blocks

d30: Submirror of d3
State: Needs maintenance
Invoke: after replacing "Maintenance" components:
metareplace d3 d3 <new device>
Size: 16536000 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d3 0 No Last Erred
*****
d3: Mirror
Submirror 0: d30
State: Needs maintenance
Submirror 1: d31
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16536000 blocks

d30: Submirror of d3
State: Needs maintenance
Invoke: after replacing "Maintenance" components:
metareplace d3 d3 <new device>
Size: 16536000 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d3 0 No Last Erred

d3: Mirror
Submirror 0: d30
State: Needs maintenance
Submirror 1: d31
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16536000 blocks

d30: Submirror of d3
State: Needs maintenance
Invoke: after replacing "Maintenance" components:
metareplace d3 d3 <new device>
Size: 16536000 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d3 0 No Last Erred

****
after several reboots still having the same problem.

other information that might helps to solved this problem. pls tell me if i missed anything.

metadb
flags first blk block count
a m p luo 16 1034 /dev/dsk/c1t0d0s7
a p luo 1050 1034 /dev/dsk/c1t0d0s7
a p luo 2084 1034 /dev/dsk/c1t0d0s7
a p luo 16 1034 /dev/dsk/c1t1d0s7
a p luo 1050 1034 /dev/dsk/c1t1d0s7
a p luo 2084 1034 /dev/dsk/c1t1d0s7

******************************************************

df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 8142797 5364522 2696848 67% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/md/dsk/d3 8142797 1148141 6913229 15% /var
swap 8534240 24 8534216 1% /var/run
swap 8534280 64 8534216 1% /tmp
/dev/md/dsk/d4 40910947 7204757 33297081 18% /export/home

*******************************************************

more /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d1  -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
/dev/md/dsk/d3  /dev/md/rdsk/d3 /var    ufs     1       no      -
/dev/md/dsk/d4  /dev/md/rdsk/d4 /export/home    ufs     2       yes     -
swap    -       /tmp    tmpfs   -       yes     -

****************************************************

format>disk 0

partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  1624        7.88GB    (1625/0/0)   16536000
  1       swap    wu    1625 -  3249        7.88GB    (1625/0/0)   16536000
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3        var    wm    3250 -  4874        7.88GB    (1625/0/0)   16536000
  4       home    wm    4875 - 13038       39.61GB    (8164/0/0)   83076864
  5 unassigned    wm   13039 - 14059        4.95GB    (1021/0/0)   10389696
  6 unassigned    wm   14060 - 14081      109.31MB    (22/0/0)       223872
  7 unassigned    wm   14082 - 14086       24.84MB    (5/0/0)         50880

partition>

*************************
original plan before i start configuring the mirroring.

d0 - /
d1 - swap
d3 - /var
d4 - /export/home

where..
d0
-d10 (c1t0d0s0)
-d11 (c1t1d0s0)

d1
-d20 (c1t0d0s1)
-d21 (c1t1d0s1)

d3
-d30 (c1t0d0s3)
-d31 (c1t1d0s3)

d4
-d40 (c1t0d0s4)
-d41 (c1t0d0s4)
*************************

Really appreciate your help guys! :slight_smile:
Thanks!

  1. please use code tags. command output is easier to read!

  2. what is the output of "iostat -e"?

Hi DukeNuke2,

Please find the output.

iostat -e
           ---- errors ---
device     s/w h/w trn tot
md0          0   0   0   0
md1          0   0   0   0
md3          0   0   0   0
md4          0   0   0   0
md10         0   0   0   0
md11         0   0   0   0
md20         0   0   0   0
md21         0   0   0   0
md30         0   0   0   0
md31         0   0   0   0
md40         0   0   0   0
md41         0   0   0   0
sd0          0   0   0   0
sd1          0   0   0   0
sd30         0   2   0   2
nfs1         0   0   0   0

Thanks.

---------- Post updated at 09:18 PM ---------- Previous update was at 08:52 PM ----------

Hi All,

Additional info...

cat /etc/lvm/md.cf
# metadevice configuration file
# do not hand edit
d0 -m d10 1
d10 1 1 c1t0d0s0
d1 -m d20 1
d20 1 1 c1t0d0s1
d11 1 1 c1t1d0s0
d21 1 1 c1t1d0s1
cat /etc/lvm/mddb.cf
#metadevice database location file do not hand edit
#driver minor_t daddr_t checksum
sd      7       16      -196
sd      7       1050    -1230
sd      7       2084    -2264
sd      15      16      -204
sd      15      1050    -1238
sd      15      2084    -2272

Thanks again guys.

---------- Post updated at 09:22 PM ---------- Previous update was at 09:18 PM ----------

if i run metastat -p,
still it will be in 'looping' mode. :frowning:

metastat -p 
d0 -m d10 d11 1
d10 1 1 c1t0d0s0
d11 1 1 c1t1d0s0
d1 -m d20 d21 1
d20 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
d30 1 1 d3
d3 -m d30 d31 1
.......................
........................

looks like an error in the creaton of device d30. from your last output d30 is the physical device d3. this won't work. you should try a fresh start.
copy back the old /etc/vfstab and /etc/system file and reboot your machine. after that "metaclear" all devices and start again.