Mirror data disk????


 
Thread Tools Search this Thread
Operating Systems Solaris Mirror data disk????
# 1  
Old 08-02-2006
Mirror data disk????

Hi,
need some help.
I’m new to solaris and trying to find out how to mirror a data disk (not the root disk).
In AIX it is easy but with solaris 5.8 I don’t find my way even with the SUN docs (disk/suide is installed).


What is behind is I want to migrate a disk from 1 storage system to another.


Can somebody give me a step by step guide.

THX in advance Chris
# 2  
Old 08-02-2006
I haven't done that in a while, so I'd strongly suggest you test this somewhere before you do anything to your production stuff. Maybe someone else from the forum can correct me?

I'm not sure if you need empty slices (can be 10mbs) in each disk for your state metadatabases if you are mirroring non-root disks.
I'll assume the disk you want to mirror has one partition

Code:
# Create metadatabases in your disks
/usr/sbin/metadb -c 3 -a -f c1t0d4s0 c1t0d5s0  ## controller, target, disk, slice numbers are there for illustration purposes only
# Check them
/usr/sbin/metadb -i
# Create submirrors, attach them.
/usr/sbin/metainit -f d51 1 1 c1t0d4s0  ## d51 is the name of the 1st submirror
/usr/sbin/metainit d52 1 1 c0t1d5s0     ## d52 is the name of the 2nd submirror
/usr/sbin/metainit d50 -m d51             ## d50 is the name of the mirror
/usr/sbin/metattach d50 d52              
#Edit /etc/vfstab. Your mount point could  be whatever the mount for the original disk was. Sample vfstab entry
/dev/dsk/md/d50  /dev/rdsk/md/d50  /mountpoint  ufs  1  yes  -

Again, please test this in non-production, non-critical disks before you do anything in your production environment.
# 3  
Old 08-03-2006
Hi THX.
I will test this.
1 more question. Do I have to do this for all slices of a disk.
# 4  
Old 08-03-2006
Ok i tried this and it runs.

Only problem is that I not mount the mirror!!
Any idear????


metastat d60
d60: Mirror
Submirror 0: d61
State: Okay
Submirror 1: d62
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 17139840 blocks

d61: Submirror of d60
State: Okay
Size: 17139840 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c3t0d1s6 3840 Yes Okay


d62: Submirror of d60
State: Okay
Size: 17141760 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c3t1d14s6 3840 Yes Okay


# mount /dev/md/dsk/d60 /mir1
mount: /dev/md/dsk/d60 is not this fstype.
# 5  
Old 08-03-2006
It's /dev/dsk/md/d60, not dev/md/dsk/d60
# 6  
Old 08-03-2006
'Not working think the directory is right see output:

# mount /dev/dsk/md/d60 /mir1
mount: /dev/dsk/md/d60 or /mir1, no such file or directory


# ls /dev/dsk/md/
/dev/dsk/md/: No such file or directory


# ls /dev/md/dsk/
d0 d107 d116 d125 d2 d29 d38 d47 d56 d65 d74 d83 d92
d1 d108 d117 d126 d20 d3 d39 d48 d57 d66 d75 d84 d93
d10 d109 d118 d127 d21 d30 d4 d49 d58 d67 d76 d85 d94
d100 d11 d119 d13 d22 d31 d40 d5 d59 d68 d77 d86 d95
d101 d110 d12 d14 d23 d32 d41 d50 d6 d69 d78 d87 d96
d102 d111 d120 d15 d24 d33 d42 d51 d60 d7 d79 d88 d97
d103 d112 d121 d16 d25 d34 d43 d52 d61 d70 d8 d89 d98
d104 d113 d122 d17 d26 d35 d44 d53 d62 d71 d80 d9 d99
d105 d114 d123 d18 d27 d36 d45 d54 d63 d72 d81 d90
d106 d115 d124 d19 d28 d37 d46 d55 d64 d73 d82 d91
# 7  
Old 08-04-2006
Oops, sorry. You are right. It is /dev/md...
What version of Disksuite are you using? What Sun architecture?
I remember such errors having to do with the block size of the file system.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Mirror disk problem

Hello all, i have the mirror disk problem with SunOS 5.10. here's the message: # metastat d15 d15: Mirror Submirror 0: d16 State: Needs maintenance Submirror 1: d17 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel... (4 Replies)
Discussion started by: rwprabowo
4 Replies

2. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

3. AIX

Clone or mirror your AIX OS larger disk to smaller disk ?

hello folks, I have a 300GB ROOTVG volume groups with one filesystem /backup having 200GB allocated space Now, I cannot alt disk clone or mirrorvg this hdisk with another smaller disk. The disk size has to be 300GB; I tried alt disk clone and mirrorvg , it doesn't work. you cannot copy LVs as... (9 Replies)
Discussion started by: filosophizer
9 Replies

4. Solaris

Disk Mirror Question

Long time Linux, relatively new to Solaris. Currently I have a Solaris 9 machine which has a mirrored root disk. We will be running some tests on this machine, and when those tests are done we want to restore it to "pre-test" status. What I would like to do is break the mirror, pull the first... (2 Replies)
Discussion started by: brianr
2 Replies

5. Solaris

Mirror the root disk

Hi all I wish to mirror for the root disk, but last time i do, make the server cannot boot up. :p So this time, hope you guys can assist me on it. =) At the last code, is the step i wish to do. Please help to check and correct me if got any wrong. root@leo # format </dev/null Searching for... (17 Replies)
Discussion started by: SmartAntz
17 Replies

6. UNIX for Dummies Questions & Answers

why need to mirror disk if we had backups ?

hi.. newbie here, just wonder why there is a need for mirroring in some servers whereby we already had backups by cron jobs ? (4 Replies)
Discussion started by: Exposure
4 Replies

7. AIX

How to remove disk from mirror?

Hello, I've got 2 system disks (hdisk0 and hdisk1) in the mirror (RAID1) on AIX 5.3. Since the hdisk1 makes some troubles, we want to replace it with the new one. How can I disable this hdisk1 disk and prepare the mirror to use the new physical disk? As far as I know, I must remove disk from the... (3 Replies)
Discussion started by: Yac
3 Replies

8. UNIX for Dummies Questions & Answers

disk suite to mirror both d0 and d2

I have 2 drives on a sun solaris 8 server that is a live server. I am putting in an additional 2 drives and want to mirror the the first 2. I was thinking of using disksuite but one drive is the root drive with 1 maybe 2 free paritions. The other is only one partition (36G). I was wondering... (2 Replies)
Discussion started by: csgonan
2 Replies

9. Solaris

zfs mirror disk

Is it possible to create a Mirror with zfs ?? I'm experimented user with Solstice Disk suite. Or Sun Volume manager or veritas volume manager. But, i would like switch from Disksuite to Zfs. All my mirrored disks. (1 Reply)
Discussion started by: simquest
1 Replies

10. HP-UX

HP UX Disk Mirror

Being somewhat extremely new to Unix, I have just had a system crash One of my Volume Groups has crashed However, this Volume Group is actually mirrored How do I switch to use the mirrored copy? Any assistance greatly appreciated Thanks (1 Reply)
Discussion started by: cobdeng
1 Replies
Login or Register to Ask a Question