1846850 Members
3005 Online
110256 Solutions
New Discussion

Re: Mirroring....

 
SOLVED
Go to solution
Kyu-Yong Kwon
Frequent Advisor

Mirroring....

Dear all
There are 4 New Disk. The disk are listed as below:
c1t8d0, c10t8d0
c1t11d0, c10t11d0

I wish
c1t8d0 and c10t8d0 <-- mirroring
c1t11d0 and c10t11d0 <-- mirroring

and I want to make a new volumne group. (/dev/vg13/lvol1)

plea.se tell me whether composition is possible
I am sorry, but wished to record command.
5 REPLIES 5
RAC_1
Honored Contributor

Re: Mirroring....

c1t8d0 and c10t8d0 <-- mirroring - vg00
c1t11d0 and c10t11d0 <-- mirroring -- vg13

This is fine. Depending upon what OS(which version) is, the mirroring procedure will vary. Particularly with 11.23, it is a bit different.
There is no substitute to HARDWORK
AwadheshPandey
Honored Contributor

Re: Mirroring....

Hello Kyu,

See attached file. it will help u to all in LVM.

Awadhesh
It's kind of fun to do the impossible
Devender Khatana
Honored Contributor

Re: Mirroring....

Hi

There is no problem in getting this done.

Follow these steps after finding out the disk space using "diskinfo -v /dev/rdsk/c1t8d0" &
"diskinfo -v /dev/rdsk/c1t11d0"


#pvcreate /dev/rdsk/c1t8d0 ( Repeat for other three disks)
#mkdir /dev/vg13
#mknod /dev/vg13/group c 64 0x??0000

(Where ?? is the next unique no. available on your box. Find out by listing existing by "ll /dev/*/group")

#vgcreate -e 10000 -s 32 /dev/vg13 /dev/dsk/c1t8d0 /dev/dsk/c10t8d0 /dev/dsk/c1t11d0 /dev/dsk/c10t11d0

For the mirroring to be lying on exact disks specify disk devices in lvcreate and lvextend like this.
#lvcreate -L xxxx /dev/vg13 /dev/dsk/c1t8d10

Where xxxx is the LVOL size in MBs. Repeat same if XXXX is less than full space available on disk /dev/dsk/c1t8d0 for other LVOLs but the total space should not extend size of /dev/dsk/c1t8d10

Now for LVOLs to be created on other disk define that disk as aggument to lvcreate
#lvcreate -L xxxx /dev/vg13 /dev/dsk/c10t11d0

here xxxx is the LVOL size in MBs. Repeat same if XXXX is less than full space available on disk /dev/dsk/c1t8d0 for other LVOLs but the total space should not extend size of /dev/dsk/c10t11d10

While create copy of the disk define second disk in pair as option to lvextend

#lvextend -m 1 /dev/vg13/lvol1 1/dev/dsk/c10t8d0

Repeat for other LVOLs on this disk. Then do the same for other pair of disks.

#lvextend -m 1 /dev/vg13/lvol? /dev/dsk/c1t11d0

And repeat same for other LVOLs on this disk.

A better option I would suggest in this scenario will be to use to use DISTRIBUTED allocation also alongwith strict allocation policy.

HTH
Devender
Impossible itself mentions "I m possible"
Adisuria Wangsadinata_1
Honored Contributor
Solution

Re: Mirroring....

Hi,

Since you would like to add the disks into single lvol, it's not possible to have a configuration like you want to. The possible way is :

[c1t8d0 plus c1t11d0]
will be mirror with
[c10t8d0 plus c10t11d0]

So below is the steps :

1. create the /dev/vg30/lvol1 with /c1t8d0 first, can use SAM for this

2. create a physical volume using pvcreate for other disks (c10t8d0, c1t11d0 and c10t11d0) :

# pvcreate -f /dev/rdsk/c10t8d0
# pvcreate -f /dev/rdsk/c1t11d0
# pvcreate -f /dev/rdsk/c10t11d0

3. vgextend the rest of the disks : c10t8d0, c1t11d0 and c10t11d0

# vgextend /dev/30 /dev/dsk/c10t8d0
# vgextend /dev/30 /dev/dsk/c1t11d0
# vgextend /dev/30 /dev/dsk/c10t11d0

4. create a mirror copies for /dev/vg30/lvol1 :

# lvextend -m 1 /dev/vg30/lvol1 /dev/dsk/c1t11d0 /dev/dsk/c10t11d0

Once you finished this, the disks (c1t8d0 plus c1t11d0) will be mirrored with the disks (c10t8d0 plus c10t11d0).

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Kyu-Yong Kwon
Frequent Advisor

Re: Mirroring....

Thank you so much..
Solved problem by your help..