SVM Creation


 
Thread Tools Search this Thread
Operating Systems Solaris SVM Creation
# 1  
Old 11-21-2011
SVM Creation

Hello,

I recently patched my Solaris 10 box and found out that few of the apps are not working. Fortunately, I had detached the mirroring prior to patching, so I just booted into my secondary disk [which was detached prior to patching] and found that my apps are working....

The problem is this was way back in last month....see below :

Code:
uptime
40 days
df -h /
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t1d0s0       18G   7.6G   9.9G    44%    /

d5               m   5GB d15
    d15          s   5GB c0t0d0s4       : - Patched disk

df -h has /dev/md/dsk/d5 mounted on /usr1
My concern is whatever the work that I had done for the past 40 days on /usr1 will vanish if I do :

Code:
metaclear d5
metaclear d15

metainit -f d15 1 1 /dev/dsk/c0t1d0s5     : - changed to secondary disk which is actually primary now as it is not patched and my apps are working fine on c0t1d0s0.

metainit  d5 -m d15

I have created the mirroring succcessfully with root as well as swap with unpatched disk as primary disk and patched disk as secondary and attached the mirrirs...

The only problem that I am facing is with the md d5 ?Smilie

Any suggesstions ?

Last edited by pludi; 11-21-2011 at 03:50 PM..
# 2  
Old 11-21-2011
It is a bit confusing... To which disk (slice) all the changes during those 40 days were written?
# 3  
Old 11-21-2011
Sorry ! But, I realised that it could confuse..

c0t0d0 is the patched disk.
c0t1d0 is unpatched disk and I have booted through this last month.

Currently metastat -p output is

Code:
d13              m  7.0GB d23
    d23          s  7.0GB c0t0d0s3  : - /var
d11              m  4.0GB d21
    d21          s  4.0GB c0t0d0s1   : - swap
d10              m   18GB d20
    d20          s   18GB c0t0d0s0    : - / 
d5               m   5GB d15
    d15          s   5GB c0t0d0s4     : - /usr1

$ df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t1d0s0       18G   7.6G   9.9G    44%    /
/dev/dsk/c0t1d0s3      6.9G   4.8G   2.0G    71%    /var
/dev/md/dsk/d5          5G   3G    2G    70%    /usr1

/dev/md/dsk/d601 12G 3.9G 7.8G 34% /u01

I forgot to make changes in vfstab for md device d5 when I backout the patches, so df -h has /dev/md entry with metastat -p output showing that the mirror has been cleared for d5. Hope that it does makes sense now !

Last edited by pludi; 11-21-2011 at 03:50 PM..
# 4  
Old 11-21-2011
So you want to move /usr1 from c0t0d0s4 to c0t1d0s4 (keeping all the data that is currently on c0t0d0s4)?
# 5  
Old 11-21-2011
That is correct ! Keeping all tha data intact including the changes that have been made for the past 40 days..
# 6  
Old 11-21-2011
Then you can do this (make a backup first of courseSmilie):
Code:
metainit -f d25 1 1 /dev/dsk/c0t1d0s5
metattach d5 d25
(wait for resync)
metadetach d5 d25
metaclear d25
(unmount /usr1 and mount it directly from c0t1d0s5 slice)

# 7  
Old 11-21-2011
Thanks !!

I thought of that initially but was expecting a second thought so posted here Smilie !


Appreciate your time and help...

---------- Post updated at 03:10 PM ---------- Previous update was at 03:01 PM ----------

Here's onemore thing which is confusing meSmilie

even if I sync the slices back again and detach I guess I am going to run into problem..

My /usr1 has all the apps configurations that was broke with patching...so If I do

Code:
metainit -f d25 1 1 /dev/dsk/c0t1d0s5 
metattach d5 d25 (wait for resync) 
metadetach d5 d25 
metaclear d25

I will be ultimately copying the broke configs onto my unbroke contents.

What about this then ?Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SVM ISSUE...

Dear All, I face some errors in SVM.Need help. Actually couple of days ago i got a call from one of the customer mentioning that one of the sub-mirror was in Need maintance state. So we replaced that disk. After Replacing the disk it comes back to "Okay" State. But the Error are... (3 Replies)
Discussion started by: sudhansu
3 Replies

2. Solaris

Fsck with SVM

Hello I want to ask that how to mount and run fsck in SVM disk.In my scenario if i have to disks c0t0d0 and c0t1d0 these two disks are in Mirroring (raid1) if i want to run fsck on the disks than below are the right steps? ok boot cdrom -s mount /dev/dsk/c0t0d0s0 /a cd /a fsck... (3 Replies)
Discussion started by: jhonnybravo
3 Replies

3. UNIX for Advanced & Expert Users

What is interlace value in SVM?

Hi All, I want to know what is the Interlace value in SVM and what is the need of this ? regards, prashant (1 Reply)
Discussion started by: prashant2507198
1 Replies

4. UNIX for Advanced & Expert Users

SVM

How to list out multiple Disk sets in SVM # metaset -s <disksetname> --- This will list out only one diskset but I need a list of disk sets configured for the node. Is there any command,please let me know ... Thanks in advance. (1 Reply)
Discussion started by: pramath
1 Replies

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

6. UNIX for Dummies Questions & Answers

SVM doubt

i have taken two separate disk A and B created 4 slices in each A b s4 s4 s5 s5 s6 s6 s7 s7 took slices s4 of A and slice s6 0f B ---created a meta device d0 took slices s4 of B and slice s6 0f A---created a meta device d1 created main mirror d2 using d0... (1 Reply)
Discussion started by: vivek_ng
1 Replies

7. Solaris

SVM question

I am trying to set up a new server. It has 8 HD's in it. I am using 2 for the system disk. IE set one up mirror to the other. I am using the other 6 as data disks. For those I want to concat 3 together, mirror to the other 3 (also concated together of course) and then make various soft... (7 Replies)
Discussion started by: NewSolarisAdmin
7 Replies

8. Solaris

SVM, mirroring

Really sorry for the long posting. But i would really want to clear all the doubts. I have 2 disk c0t0d0 & c0t1d0, i wanted to mirror c0t1d0 (mirror) to c0t0d0 (main). Creating state database replica: metadb -a -c3 -f c0t0d0s7 ... (3 Replies)
Discussion started by: beginningDBA
3 Replies

9. Solaris

Change the name in SVM

gurus, i have configured the LUN's in solaris 10.after labeled the disk,i have added the disk into one of the soft partition using metattach d0 c5t1000d10s6.actully before that i should confiure the powermt and than i should have add metattch d0 emcpowerc2.i forget to do that and increased... (0 Replies)
Discussion started by: rjay.com
0 Replies

10. Solaris

Removing Disk from SVM

Hi All, I have to remove the disk from SVM. Kindly guide me or suggest me some link where in I can steps to remove SVM from Solaris 10 .Also I have one metaset which require deletion. Thanks in anticipation! (10 Replies)
Discussion started by: kumarmani
10 Replies
Login or Register to Ask a Question