Solaris 10 Disk Mirroring


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 Disk Mirroring
# 15  
Old 05-06-2008
Bug

Quote:
Originally Posted by Tirmazi
Solaris 10 internal disks can be mirrored using hardware raid no specific external software is required for that
For example my solaris 10 internal disks are harware mirrored like the following
$ raidctl
RAID Volume RAID RAID Disk
Volume Type Status Disk Status
------------------------------------------------------
c0t0d0 IM OK c0t0d0 OK
c0t1d0 OK

If you have any array then it is a different thing
you can either use Solaris Disk Suite or Veitas Volume Manager
If it is one of the newer arrays though you can use VxVm but sun recommends using the software provided witht the array
ignore my last post

Last edited by mr_crosby; 05-06-2008 at 07:06 AM.. Reason: wrong info
# 16  
Old 05-08-2008
Here is what I use to mirror with Solaris Volume manager

# Setup the second disk (c1t1d0s2) to be identical as the primary (c1t0d0s2)
prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2

# This creates the metadatabase - you need a free slice with 100mb, we use slice 7
metadb -a -f -c 3 c1t0d0s7
metadb -a -c 3 c1t1d0s7

# Setup Volumes on the primary for /, /var and swap
metainit -f d10 1 1 c1t0d0s0
metainit -f d11 1 1 c1t0d0s1
metainit -f d13 1 1 c1t0d0s3

# Setup Volumes on the secondary for /, /var and swap
metainit d20 1 1 c1t1d0s0
metainit d21 1 1 c1t1d0s1
metainit d23 1 1 c1t1d0s3

# Setup the mirrors
metainit d0 -m d10
metainit d1 -m d11
metainit d3 -m d13

# Make a backup of /etc/vfstab
cp /etc/vfstab /etc/vfstab.orig

# Make the boot disk boot from the mirror (this will modify the /etc/vfstab)
metaroot d0

# add entries for swap and var to /etc/vfstab ( make sure you rem out the old devices)
# Below is what the /etc/vfstab should look like
==================================================================================================
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
#/dev/dsk/c1t0d0s1 - - swap - no -
#/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
#/dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s3 /var ufs 1 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 -
swap - /tmp tmpfs - yes -
===================================================================================================

# Run lockfs to clear and flush all data that is dirty.
lockfs -fa

# Halt system (you will now boot off the metadevices)
init 6

# Attach the submirrors
metattach d0 d20
metattach d1 d21
metattach d3 d23

metastat to check the status
# 17  
Old 07-07-2008
Re: Here is what I use to mirror with Solaris Volume manager

Hi Maddhadder71,

# Setup the second disk (c1t1d0s2) to be identical as the primary (c1t0d0s2)
prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2

For the above command, why do you make only slice 2 of the second and primary identical and not other slices?

---------------------------------------------------------------------
# This creates the metadatabase - you need a free slice with 100mb, we use slice 7
metadb -a -f -c 3 c1t0d0s7
metadb -a -c 3 c1t1d0s7

What and Why metadatabase is setup on slice 7?

---------------------------------------------------------------------

# Attach the submirrors
metattach d0 d20
metattach d1 d21
metattach d3 d23

By attaching the two slices of the two drive what does this do?
# 18  
Old 07-07-2008
Slice 2 is the entire disk including all other slices.

The metadatabase describes the setup. We need several copies to survive the loss of a disk. Slice 7 is something of a standard, just like root being slice 0 and swap being slice 1. Slice 2 must be the whole disk, other than that, we could use non-standard slices if we really wanted to. But standards are good.

Attaching a second slice makes it a mirror. The data is written to both slices. Reads can be satified from either slice. And if one slice dies, the data is still available from the remaining slice.
# 19  
Old 07-07-2008
Re:

thanks Perderabo!!!
# 20  
Old 07-07-2008
Re

What is the main point of creating the metadatabase ? I understand is for describing the setup but is it for setting up the system disk mirrors?

by executing the command :
# metadb -a -f -c 3 c1t0d0s7

if creating the metadatabase and not mirroring the system disks then what would it use for?

Thanks
# 21  
Old 07-07-2008
Quote:
Originally Posted by tlee
What is the main point of creating the metadatabase ? I understand is for describing the setup but is it for setting up the system disk mirrors?

by executing the command :
# metadb -a -f -c 3 c1t0d0s7

if creating the metadatabase and not mirroring the system disks then what would it use for?

Thanks
if you don't need metadevices, you also don't need the metadb's. but if you want to setup other raid devices in your system with slvm you will need the metadb!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Root disk mirroring in Solaris 10

I would like to perform root disk mirroring task. Can someone please help me out on this. Thanks !! Regards, Rama (2 Replies)
Discussion started by: ramagore85
2 Replies

2. Red Hat

Disk Mirroring

Hi, How to identify whether the disk is being mirrored or not in RHEL (2 Replies)
Discussion started by: gsiva
2 Replies

3. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

4. Solaris

Disk Mirroring on solaris 5.8

Hi Friends, I am having Sun Solaris 5.8 OS installed having 2 different size hard disk, sizes are c0t0d0s0(160 GB) and c0t2d0s0 (40GB). I have installed Sun Solaris 5.8 OS in c0t0d0s0 (160GB) harddisk. I have configured all the parameters required for disk mirroring. But when executing... (4 Replies)
Discussion started by: Vijayakumarpc
4 Replies

5. Solaris

Disk Mirroring for Solaris 10 x86

I am having an issue with setting up disk mirroring for Solaris 10 on an x86 server. My main problem is that the volumes and slices have already been setup and our proprietary software has already been installed and configured. The entire drive has been allocated in this configuration and the... (2 Replies)
Discussion started by: chuck43
2 Replies

6. Solaris

Help !! disk Mirroring

Hi I have a Sunfire X4100 box with a 4 disk Chassis (although I only have 2 disks in it). I have been asked to add two more disks into the chassis so that I can mirror the original two using SVM .....Ive read through a couple of SVM docs but am finding it a little confusing, and if any of you... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

7. Solaris

[HELP] mirroring disk at solaris 8 sparc v890

hi expert, sorry i'm new in solaris system, need more advice and help :) i'm confusing with mirroring disk at my sparc v890 solaris 8, i have 6 harddisk which the structure shown below : format : AVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> ... (4 Replies)
Discussion started by: bucci
4 Replies

8. Solaris

Disk mirroring

Hi I have two raw disk that I want to mirror and then create soft partition on that. Could someone please help in the steps required c0t1d0 c0t0d0 Thanks Ajwat (2 Replies)
Discussion started by: Ajwat
2 Replies

9. UNIX for Advanced & Expert Users

Solaris 8 disk/mirroring issue

Hello! I recently inherited system administration duties for a SUN v880 box. The system has 6 physical hard disks.. In doing some basic maintenance, I found they're configured for mirroring. I ran the metastat and metadb commands, and many of the mirrors are showing they are in need of... (5 Replies)
Discussion started by: ghuber
5 Replies

10. Solaris

Solaris mirroring / non-root disk

Hi Guys, Need to add 2 disks into a JBOD array (3310). Does anyone see anything wrong with my Procedure / Doco below? 1> Logon to system, check system logs for abnormal entries. 2> Make backups of related system files: A>cp -p /etc/system /etc/system.backup.081505 B>cp -p /etc/vfstab... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
Login or Register to Ask a Question

Featured Tech Videos