How to set the rootmirror


 
Thread Tools Search this Thread
Operating Systems Solaris How to set the rootmirror
# 1  
Old 03-07-2009
How to set the rootmirror

Hi experts,

I have to do disk mirroring, for that i created the required volumes with SVM and attached both the disk.

However i am not sure as how to enable the rootmirror.

Please help !

Thanks
# 2  
Old 03-07-2009
what is the output of "metastat"?
# 3  
Old 03-07-2009
Hi Duke

Please find the output from metastat

Quote:
d0: Mirror

Submirror 0: d10

State: Okay

Submirror 1: d20

State: Okay

Pass: 1

Read option: roundrobin (default)

Write option: parallel (default)

Size: 12362400 blocks ( 5.9 GB)


d10: Submirror of d0

State: Okay

Size: 12362400 blocks ( 5.9 GB)
Stripe 0:

Device Start Block Dbase State Reloc Hot Spare

c0t0d0s0 0 No Okay yes


d20: Submirror of d0

State: Okay

Size: 12362400 blocks ( 5.9 GB)
Stripe 0:

Device Start Block Dbase State Reloc Hot Spare
c0t2d0s0 0 No Okay Yes

d1: Mirror

Submirror 0: d11

State: Okay

Submirror 1: d21

State: Okay

Pass: 1

Read option: roundrobin (default)

Write option: parallel (default)

Size: 1056720 blocks ( 515 MB)


d11: Submirror of d11

State: Okay

Size: 1056720 blocks ( 515 MB)
Stripe 0:

Device Start Block Dbase State Reloc Hot Spare

c0t0d0s1 0 No Okay yes


d21: Submirror of d0

State: Okay

Size: 1056720 blocks ( 515 MB)
Stripe 0:

Device Start Block Dbase State Reloc Hot Spare
c0t2d0s1 0 No Okay Yes

Device Relocation Information:
Device Reloc Device ID
c0t2d0 Yes id1,dad@awdc_WD800BB-00JHC0=______WD-WMAM9CJA4976
c0t0d0 Yes id1,dad@AST380215A=________________6RX7FWXW
i can boot from the mirror disk by by giving device path at the OK prompt with boot command, however i wanna set the same in rootmirror.

Thanks again
# 4  
Old 03-07-2009
i don't understand your problem...? everything seems to be fine.
# 5  
Old 03-07-2009
Thanks Duke

True every thing is okay and its working fine.

I want to set the rootmirror path eeprom so i in case if its require i an boot from mirror disk.
# 6  
Old 03-07-2009
so just do it... go to obp and use:

nvalias rootmirror /path/to/your/disk (get the path with "show-disks")
setenv bootdevice rootdisk rootmirror

thats all...
# 7  
Old 03-07-2009
Thanks Duke !
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help needed with shell script to search and replace a set of strings among the set of files

Hi, I am looking for a shell script which serves the below purpose. Please find below the algorithm for the same and any help on this would be highly appreciated. 1)set of strings need to be replaced among set of files(directory may contain different types of files) 2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies

2. UNIX for Dummies Questions & Answers

One set of executables but multiple set of configuration

i don't know where to put this question hence it is here. Presently, i have X unix machines which each of them running a set of executables with various unique configurations. i would like to have run multiple set of machines the same set of executeables but each running different... (0 Replies)
Discussion started by: lchunleo
0 Replies

3. Solaris

LC_ALL & LANG are set OK, but others couldn't set locale correctly.

Hi, I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8 With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8". Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies

4. Shell Programming and Scripting

set Net:SSH:Expect timeout and set it again.

SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies

5. HP-UX

What is the use of command set -- and set - variable?

Hi, I am using hp unix i want to know the use of the following commands set -- set - variable thanks (4 Replies)
Discussion started by: gomathi
4 Replies

6. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

7. Shell Programming and Scripting

set -o vi giving set: Syntax error

when trying : set -o vi getting error like- : set: Syntax error help me Double post (of sorts). Continue here. (0 Replies)
Discussion started by: RahulJoshi
0 Replies

8. UNIX for Dummies Questions & Answers

unsetting (set -C) and set -o noclobber

I use a lot of text edditing on my laptop, and about a year and half ago I read my first unix bootk which gave the noclobber command and how to unset it.. now that my files are some what overflowing I need to use noclobber or the set -C option... I know the >| to override the no overwite command... (2 Replies)
Discussion started by: moxxx68
2 Replies
Login or Register to Ask a Question