05-01-2007
Disk Mirror in Solaris 9 via Solaris Volume Manager
Hello,
I am trying to do mirror in solaris 9. I have total 0-7 disks
4 5 6 7
0 1 2 3
Drive 0 and Drive 4 = Boot Drives
Need to Mirror following drives.
Drive 1 and Drive 5 = Need to mirror
Drive 1 was mounted on: /prod1, /prod2, /prod3, /prod4, /prod5.
Then i have umount from /prod1----/prod5.
I have done following steps.
metadb -a -f /dev/dsk/c1t1d0s7
metadb -a -f /dev/dsk/c1t5d0s7
2)
metainit -f d100 1 1 c1t1d0s0
metainit -f d101 1 1 c1t5d0s0
metainit d0 -m d100
metattach d0 d101
3)
newfs /dev/md/rdsk/d0
4)
mount -F ufs /dev/md/dsk/d0 /prod1
Now, target 5 is submirror with target 1 mirror. Do i need to submirror drive 1 also, in order to mirror each other?
for example:
metainit -f d102 1 1 c1t5d0s0
metainit -f d103 1 1 c1t1d0s0
metainit d1 -m d102
metattach d1 d103
Let me know.
Thanks
Adeel
10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume.
Please find a sutable solutions.
Thanks and Regards
B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies
2. Solaris
Can you please let me know the certification code for veritas volume manager in solaris ? Thanks in advance. (2 Replies)
Discussion started by: gowthamakanthan
2 Replies
3. Solaris
Hello All,
I have small doubt. It's related to SVM in solaris 10. I have created raid 0 (striping) using 3 slices of 500 MB size (default interlace value as 32KB)
d2: Concat/Stripe ---- Interlace value is 32 KB
Size: 2923830 blocks (1.4 GB)
Stripe 0: (interlace: 64 blocks)
Device Start... (1 Reply)
Discussion started by: vaibhav.kanchan
1 Replies
4. Solaris
Hi Friends,
I have to migrate my raid-1 volume to raid -5 online.
Can anyone please help me, If possible then send me the step by step commands for online migration.
Thanks in advance. (2 Replies)
Discussion started by: rajaramrnb
2 Replies
5. Solaris
Hello:
I have a machine built on 2 drives and mirrors have been created to a second set of 2 drives (4 total) on the same platform. SVM.
Might anyone provide guidance to create a second machine by breaking the mirrored set, moving the two mirrors (2) to another machine (same platform type),... (1 Reply)
Discussion started by: 4dailyrunner
1 Replies
6. UNIX for Dummies Questions & Answers
I have a machine (5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V210) that we are upgrading the storage and my task is to mirror what is already on the machine to the new disk. I have the disk, it is labeled and ready but I am not sure of the next steps to mirror the existing diskgroup and... (1 Reply)
Discussion started by: rookieuxixsa
1 Replies
7. Solaris
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
8. Solaris
I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below:
root@moneta # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 9.8G 513M 9.3G 6% /
... (0 Replies)
Discussion started by: fretagi
0 Replies
9. Solaris
I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below:
root@moneta # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 9.8G 513M 9.3G 6% /... (4 Replies)
Discussion started by: fretagi
4 Replies
10. Solaris
Hello Admins..
I am going through solaris volume manager guide for RAID-0 concatenation and stripes, I do not understand the concept of stripe from following example of concatenation.
There is an eample for concatenation:
# metainit d25 1 1 c0t1d0s2
d25: Concat/Stripe is setup
the... (5 Replies)
Discussion started by: snchaudhari2
5 Replies
LEARN ABOUT OPENSOLARIS
metaoffline
metaoffline(1M) System Administration Commands metaoffline(1M)
NAME
metaoffline, metaonline - place submirrors offline and online
SYNOPSIS
/usr/sbin/metaoffline -h
/usr/sbin/metaoffline [-s setname] [-f] mirror submirror
/usr/sbin/metaonline -h
/usr/sbin/metaonline [-s setname] mirror submirror
DESCRIPTION
The metaoffline command prevents Solaris Volume Manager from reading and writing to the submirror that has been taken offline. While the
submirror is offline, all writes to the mirror will be kept track of (by region) and will be written when the submirror is brought back
online. The metaoffline command can also be used to perform online backups: one submirror is taken offline and backed up while the mirror
remains accessible. (However, if this is a two-way mirror, data redundancy is lost while one submirror is offline.) The metaoffline command
differs from the metadetach command because it does not sever the logical association between the submirror and the mirror. To completely
remove a submirror from a mirror, use the metadetach command.
A submirror that has been taken offline will only remain offline until the metaonline command is invoked or the system is rebooted.
When the metaonline command is used, reading from and writing to the submirror resumes. A resync is automatically invoked to resync the
regions written while the submirror was offline. Writes are directed to the submirror during resync. Reads, however, will come from a dif-
ferent submirror. Once the resync operation completes, reads and writes are performed on that submirror. The metaonline command is only
effective on a submirror of a mirror that has been taken offline.
The metaoffline and metaonline commands can not be used on RAID 1 volumes in application-based recovery (ABR) mode.
A submirror that has been taken offline with the metaoffline command can only be mounted as read-only.
OPTIONS
Root privileges are required for all of the following options except -h.
-f Forces offlining of submirrors that have slices requiring maintenance.
-h Displays usage message.
-s setname Specifies the name of the diskset on which metaoffline and metaonline will work. Using the -s option will cause the command
to perform its administrative function within the specified diskset. Without this option, the command will perform its func-
tion on local metadevices.
mirror Specifies the metadevice name of the mirror from which the submirror will be either taken offline or put online.
submirror Specifies the metadevice name of the submirror to be either taken offline or put online.
EXAMPLES
Example 1 Taking a Submirror Offline
This example takes one submirror, mymirror_sub1, offline from mirror mymirror.
# metaoffline mymirror mymirror_sub1
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWmdu |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
SEE ALSO
mdmonitord(1M), metaclear(1M), metadb(1M), metadetach(1M), metahs(1M), metainit(1M), metaparam(1M), metarecover(1M), metarename(1M),
metareplace(1M), metaroot(1M), metaset(1M), metassist(1M), metastat(1M), metasync(1M), metattach(1M), md.tab(4), md.cf(4), mddb.cf(4),
md.tab(4), attributes(5), md(7D)
NOTES
The metaonline and metaoffline commands are not applicable to mirrors in application-based recovery (ABR) mode.
SunOS 5.11 26 Mar 2006 metaoffline(1M)