Meta Devices and Mirroring


 
Thread Tools Search this Thread
Operating Systems Solaris Meta Devices and Mirroring
# 1  
Old 05-23-2010
Meta Devices and Mirroring

So I decided to set up Metadevices with Mirroring. When I patch, is it possible just to break the mirror, patch, Reboot. If all is well, then restore the mirror and resync?

Is metadevices equipped to resync like that?
# 2  
Old 05-23-2010
Yaa it is a good practice to break the mirror of root file system before you apply any sort of patches...
Later you can resync them....
# 3  
Old 05-23-2010
You have any documentation on the best practices way of breaking and resynchronizing? Also, how would I boot off of the old mirror in case of a failure to resync that way?
# 4  
Old 05-23-2010
Set SDS to start if half of the state database replicas are available

Code:
#echo "set md:mirrored_root_flag=1" >> /etc/system

Make sure all mirrors are in OK state
Code:
#metastat

Break Following Submirror :

Code:
Detach d11 (c1t1d0s0) from mirror d10 (root)
        # metadetach d10 d11

Detach d21 (c1t1d0s1) from mirror d2 (swap)
       # metadetach d20 d21


Shutdown to single user
Code:
# init 1

Apply patch ...

Reboot and test

Reboot from root mirror on c1t0d0s0 (d10)
Code:
# Reboot

IF ALL IS OK - Re-attach Submirror :


Code:
Attach d11 (c1t1d0s0) to mirror d1 (root)
         metattach d10 d11
         metastat  d10 (to see % done)
Attach d21 (c1t1d0s1) to mirror d2 (swap)
         metattach d20 d21
         metastat  d20 (to see % done)

IF PROBLEMS -
Reboot from other submirror...

Smilie

Last edited by Reboot; 05-23-2010 at 01:39 AM.. Reason: Typo..
This User Gave Thanks to Reboot For This Post:
# 5  
Old 05-23-2010
This is really awesome stuff to know! I really appreciate it! So is it possible to reconfigure an existing system that does not have mirror to have mirror without a reinstall?
# 6  
Old 05-23-2010
Yes you can do that.But you will require a reboot of the system....SmilieSmilie

Please find the bellow link...it is good one...!!!

Smilie
# 7  
Old 06-06-2010
I broke the sub mirror and patched. Everything was okay, but I wanted to see how to revert the patch. So I typed
Code:
# reboot -- disk1

Here's what happened
Code:
Rebooting with command: boot disk1
Boot device: /pci@1c,600000/scsi@2/disk@1,0  File and args:
SunOS Release 5.10 Version Generic_127127-11 64-bit
Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hardware watchdog enabled
/kernel/misc/sparcv9/kcf: undefined symbol 'door_ki_upcall_limited'
WARNING: mod_load: cannot load module 'kcf'
/kernel/misc/sparcv9/kcf: undefined symbol 'door_ki_upcall_limited'
WARNING: mod_load: cannot load module 'kcf'
/kernel/drv/sparcv9/ip: undefined symbol 'msg_setcredpid'
/kernel/drv/sparcv9/ip: undefined symbol 'untimeout_default'
/kernel/drv/sparcv9/ip: undefined symbol 'dhcifname'
/kernel/drv/sparcv9/ip: undefined symbol 'timeout_generic'
WARNING: mod_load: cannot load module 'ip'
/kernel/fs/sparcv9/sockfs: undefined symbol 'kssl_handle_mblk'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_disconnect'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_getsockname'
/kernel/fs/sparcv9/sockfs: undefined symbol 'nd_free'
/kernel/fs/sparcv9/sockfs: undefined symbol 'nd_load'
/kernel/fs/sparcv9/sockfs: undefined symbol 'UDP_WR'
/kernel/fs/sparcv9/sockfs: undefined symbol 'vpm_enable'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_create'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_close'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_listen'
/kernel/fs/sparcv9/sockfs: undefined symbol 'udp_output'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_recvd'
/kernel/fs/sparcv9/sockfs: undefined symbol 'vpm_unmap_pages'
/kernel/fs/sparcv9/sockfs: undefined symbol 'mi_mpprintf'
/kernel/fs/sparcv9/sockfs: undefined symbol 'vpm_map_pages'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_alloc_hdr'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_get_opt'
/kernel/fs/sparcv9/sockfs: undefined symbol 'tcp_wput'
/kernel/fs/sparcv9/sockfs: undefined symbol 'mi_sprintf'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_bind'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_getpeername'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_sendmsg'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_set_opt'
/kernel/fs/sparcv9/sockfs: undefined symbol 'sctp_connect'
WARNING: mod_load: cannot load module 'sockfs'
WARNING: sockfs: unable to resolve dependency, module 'drv/ip' not found
/kernel/sys/sparcv9/c2audit: undefined symbol 'getsonode'
/kernel/sys/sparcv9/c2audit: undefined symbol 'door_upcall_limited'
WARNING: mod_load: cannot load module 'c2audit'
WARNING: c2audit: unable to resolve dependency, module 'fs/sockfs' not found
/kernel/drv/sparcv9/ip: undefined symbol 'msg_setcredpid'
/kernel/drv/sparcv9/ip: undefined symbol 'untimeout_default'
/kernel/drv/sparcv9/ip: undefined symbol 'dhcifname'
/kernel/drv/sparcv9/ip: undefined symbol 'timeout_generic'
WARNING: mod_load: cannot load module 'ip'
strplumb: can't install module drv/ip, err -1
drv/wc:wcvnget() not defined properly

panic[cpu1]/thread=180e000: consconfig: unable to find wc device

000000000180b7b0 consconfig_dacf:cons_build_upper_layer+210 (600108fef80, 1369400, ffffffffffffffff, 190bc00, 3, 1369800)
  %l0-3: 00000000018cd000 0000000001211800 00000300000cbd68 0000000000000000
  %l4-7: 0000000000000000 00000000018c8000 000000000190bc00 00000000018c0c00
000000000180b890 consconfig_dacf:dynamic_console_config+68 (18c0c00, ffffffffffffffff, 0, 600108fef80, 186e800, 186e800)
  %l0-3: 0000000001845428 00000600108dc000 00000000018c8000 00000000018c7c00
  %l4-7: 00000000018c8000 00000000018c8000 00000000018c8000 00000000018c0c00
000000000180b940 unix:stubs_common_code+70 (8b2135ee9, 702743, 53555554, 0, 61a00, 0)
  %l0-3: 000000000180b209 000000000180b2e1 000000103e000000 0000000000000001
  %l4-7: 0000000000000000 00000000018184a0 0000000000000000 00000600108d3a40
000000000180ba10 genunix:main+134 (18c5408, 18c0c00, 1837940, 1878000, 0, 1815000)
  %l0-3: 0000000070002000 0000000000000001 0000000070002000 0000000000000002
  %l4-7: 00000000018c8640 00000000018c8400 00000000018c5418 00000000018c5400

syncing file systems... done
skipping system dump - no dump device configured
rebooting...

mydev not found.


Sun Fire V210, No Keyboard
Copyright 1998-2003 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.11.4, 2048 MB memory installed, Serial #55657845.
Ethernet address 0:3:ba:51:45:75, Host ID: 83514575.

What do you think Reboot?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Meta charcters

find out lines in a given file consisting of the following pattern BCAA, BCAAA, BCAAAA, BCAAAAA, BCAAAAAA (1 Reply)
Discussion started by: Phaneendra G
1 Replies

2. UNIX for Dummies Questions & Answers

Meta charcters

Find out lines in a given file consisting of the following pattern BCAA, BCAAA, BCAAAA, BCAAAAA, BCAAAAAA (0 Replies)
Discussion started by: Phaneendra G
0 Replies

3. Solaris

Meta Devices ( Metadb )

Hi All, I have two disks which has been configured for RAID 1 Already. I am adding more 6 disks in the system and I am configuring RAID 1 for all. So in this case should , how should i create a metadb . Thanks and Regards Rj (3 Replies)
Discussion started by: jegaraman
3 Replies

4. Solaris

What is Meta Database ?

Hi Guys, what is a meta file system ? what is it use for? What is /etc/vfstab? What is the relationship between the "vfstab file and meta file system. (3 Replies)
Discussion started by: tlee
3 Replies

5. Solaris

What is Meta Database ?

Hi Guys, what is a meta file system ? what is it use for? What is /etc/vfstab? What is the relationship between the "vfstab file and meta file system. thanks (1 Reply)
Discussion started by: tlee
1 Replies

6. UNIX for Dummies Questions & Answers

passthrough devices vs. named devices

I am having trouble understanding the difference between a passthrough device and a named device and when you would use one or the other to access equipment. As an example, we have a tape library and giving the command "camcontrol devlist" gives the following output: akx# camcontrol... (1 Reply)
Discussion started by: thumper
1 Replies

7. Solaris

Meta Devices

I have added a sun storage array from a faiulty server onto a new server and copied the md.conf files etc. I can now access the /dev/md/dsk file systems, but I want to delete some metadevices that do not exist (it still thinks the 0 and 1 (root /var /export) disk are mirrored. How do I do this? (8 Replies)
Discussion started by: ozzmosiz
8 Replies

8. UNIX for Advanced & Expert Users

info regarding meta device

What is the quickest way to get partition / slices / hard disk / controller information regarding meta devices (md) on solaris 8. Thanks in advance. (4 Replies)
Discussion started by: Hitesh Shah
4 Replies
Login or Register to Ask a Question