Mirroring Disk Drive Question. Using SVM for Disk Mirroring.

Hello,

I am trying to do mirror in solaris 9 using Solaris Volume Manager. 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.

Drive 5 was mounted on:/prod16--/prod20

Then i have umounted both drives and then using format command to equalize the parititions.

Then

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

newfs: /dev/md/rdsk/d0 last mounted as /prod16

newfs: construct a new file system /dev/md/rdsk/d0: (y/n)? y

4)

# mount -F ufs /dev/md/dsk/d0 /prod16

Now, target 5 is submirror with target 1 mirror. I was wanted to do /prod1 but some reason it showing /prod16. How can i change this to /prod1?

OR

2nd question: do i need to mirror each drive vice verse?

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

[1349 byte] By [deal732a] at [2007-11-27 3:01:07]
# 1

I do it a little differently, as follows, which I gleaned from http://slacksite.com/solaris/disksuite/disksuite.html

Create state replicas on slices 6 & 7 (any could be used but we usually use 6/7)

metadb -a -f /dev/dsk/c1t0d0s6

metadb -a /dev/dsk/c1t0d0s7

metadb -a -f /dev/dsk/c1t1d0s6

metadb -a /dev/dsk/c1t1d0s7

Initialize submirrors for root slice 0 on both drives, and create one-way mirror between metadevice d0 & first sub-mirror

metainit -f d10 1 1 c1t1d0s0

metainit -f d20 1 1 c1t1d0s0

metainit d0 -m d10

update root entry in /etc/vfstab

metaroot d0

Initialize submirrors for swap slice on both drives, and create one-way mirror between metadevice d1 & first sub-mirror

metainit -f d11 1 1 c1t0d0s1

metainit -f d21 1 1 c1t1d0s1

metainit d1 -m d11

Initialize submirrors for /var slice5 on both drives, and create one-way mirror between metadevice d5 & first sub-mirror.

metainit -f d15 1 1 c1t0d0s5

metainit -f d20 1 1 c1t1d0s5

metainit d5 -m d15

Edit /etc/vfstab

add these lines to /etc/vfstab

/dev/md/dsk/d1--swap-no-

/dev/md/dsk/d5/dev/md/rdsk/d5/varufs1nologging

REBOOT server

Attach second half of mirrors to allow two drives to synchronize

metattach d0 d20

metattach d1 d21

metattach d2 d25

I hope this helps.

Stephanie

WeberStateUniversitya at 2007-7-12 3:42:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

> 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

>

> newfs: /dev/md/rdsk/d0 last mounted as /prod16

> newfs: construct a new file system /dev/md/rdsk/d0:

> (y/n)? y

>

> 4)

>

> # mount -F ufs /dev/md/dsk/d0 /prod16

>

> Now, target 5 is submirror with target 1 mirror. I

> was wanted to do /prod1 but some reason it showing

> /prod16. How can i change this to /prod1?

I don't understand your question. You gave the command in step 4 to mount it as prod16. If you want it to be something else, mount it that way.

> OR

>

> 2nd question: do i need to mirror each drive vice

> verse?

>

> for example:

>

>

> metainit -f d102 1 1 c1t5d0s0

> metainit -f d103 1 1 c1t1d0s0

> metainit d1 -m d102

> metattach d1 d103

You've already created metadevices on those slices. You can't place additional metadevices on them. One to a slice.

--

Darren

Darren_Dunhama at 2007-7-12 3:42:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...