Sponsored Content
Operating Systems Solaris SVM Solaris 8 Problem. Metastat output looping Post 302448692 by kronenose on Thursday 26th of August 2010 04:43:32 PM
Old 08-26-2010
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. Smilie


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

10. 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

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

Code:
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     -


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

Code:
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! Smilie
Thanks!

Last edited by DukeNuke2; 08-26-2010 at 06:17 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

SVM metastat -- needs maintenance

Running Solaris 9 with SVM. I'm not that familiar with it, but metastat output gives "needs maintenance" message on 2 of the mirrors. There are no errors in /var/adm/messages. What do I need to do to fix this error? Thanks. (14 Replies)
Discussion started by: dangral
14 Replies

2. Solaris

SVM - metastat - Last Erred

My company is running a solaris 2.7 machine. The machine is getting slow recently. I have no expert in solaris. Please help. I checked the log in /var/adm/message: I also checked with the command iostat -nE. It returns: Metastat returns the followings: What should i do now?... (10 Replies)
Discussion started by: nickychung
10 Replies

3. Solaris

Problem with SVM

HI, I added by error to a submirror some disks : metattach d53 c2t90d0s0 c2t90d1s0 ... instead of doing a stripe by disk (like that) : metattach d53 c2t90d0s0 metattach d53 c2t90d1s0 .. then, I did a growfs -M to expand FS and the size isn't correct. I tried to launch a... (1 Reply)
Discussion started by: phil.nakache
1 Replies

4. Solaris

SVM Problem Regarding /var

Hi Guys! I am facing Problem with SVM I mention the problem below: I have Sunfire V210 machine and the partitions are as follows: Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 6134 29.77GB (6135/0/0) 62429760 1 swap wu ... (1 Reply)
Discussion started by: sensation
1 Replies

5. Solaris

restore metastat configuration after solaris upgrade

Greetings How can i restore metastat db after a solaris upgrade (9 to 10)? will it work if i save and restore /etc/vfstab and /etc/lvm/md.cf file? root@netad# metastat d35: Mirror Submirror 0: d38 State: Okay Submirror 1: d39 State: Okay Pass:... (2 Replies)
Discussion started by: kashif_islam
2 Replies

6. Solaris

SVM metaset on 2 node Solaris cluster storage replicated to non-clustered Solaris node

Hi, Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies

7. Solaris

How to check SVM version Solaris 9 and 10?

How to check Solaris Volume Manager Version in 9 & 10? Which are the packages that are installed in the SVM? (1 Reply)
Discussion started by: ajhal04
1 Replies

8. Solaris

svm implementation problem

hi all please help me with the following i am new to solaris i want to umount /test mount point and make it 8gb each i.e. /test1 and /test2 and using SVM wants to make RAID5 bash-3.00# df -h Filesystem size used avail capacity Mounted on /dev/dsk/c0t0d0s0 6.9G ... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

9. Solaris

Problem in SVM after live upgrade

Hi I am new to live upgrade. I would like to tell you about my new setup, where my boot disk(c0d0) is mirrored with secondary disk(c0d1). I have remove the secondary whole disk(C0d1) from the mirror, so that I can do live upgrade on this secondary disk. I have done live upgrade on s0 partition... (3 Replies)
Discussion started by: amity
3 Replies

10. Solaris

Help with installing SVM on solaris 10

Hello Gurus, I am setting up a V240 with solaris 10 for learning purpose. I have 4 x 36Gb disk installed and I now want to install SVM just tp learn this disk management utility. What I want to know is where do I look for the SVM pkg ? is this the right command pkgchk -L SUNWsvm . Can anyone... (3 Replies)
Discussion started by: Moh
3 Replies
All times are GMT -4. The time now is 04:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy