1834756 Members
3157 Online
110070 Solutions
New Discussion

Re: Mirroring

 

Mirroring

I've an RP2470 with 2x 18GB disks. These are mirrored (vg00) (Factory installed).
I also have a HP DISK SYSTEM 2100 with 2 x 36 GB disks.
OS is UX 11.
What steps must i follow (through SAM) to mirror these 2 disks.
Volume group should be vg01. Hardware path's are /dev/dsk/c4t8d0 and /dev/dsk/c4t10d0.
none
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: Mirroring

Hi

In sam add your vgo1 with one disk - create your lvols and then extend it adding the second disk.

In logical volumes select your lvols (one by one) and then in actions select "Change the number of mirror copies - (changee the 0 to 1)

Do this for each lvol in vg01.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Ravi_8
Honored Contributor

Re: Mirroring

Hi, william

If both the disks(2x36GB) are already under a same/different voulme group then you can't do the mirror. Since total disk size has to double the size of existing vg.
In your case if you have data on one 36GB(disk1) disk and other(disk2) is empty then you can mirror the disk1 to disk2 using lvcreate. If data is present on both the disk1 and disk2 then you can mirror only lv's provided suffcient empty space exist ( actually the size of lv to be mirrored)
never give up

Re: Mirroring

While using SAM my system crashed.
Be patient with points.
none
S.K. Chan
Honored Contributor

Re: Mirroring

Take a look in /var/sam/log/samlog. Do you see any error message being logged after the crashed. What exactly is the error you get when SAM dies on you ? As for you other question, I'm assuming you're setting up vg01 from scratch. You can do this to setup the VG and its LVs with mirroring (for example ..)..
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
==> Minor number 0x010000 must be unique.
# pvcreate /dev/rdsk/c4t8d0
# pvcreate /dev/rdsk/c4t10d0
# vgcreate -g PVG1 /dev/vg01 /dev/dsk/c4t8d0
==> Create your VG and put c4t8d0 in PVG1.
# vgextend -g PVG2 /dev/vg01 /dev/dsk/c4t10d0
==> Extend your VG and put c4t10d0 in PVG2.
# lvcreate -L 1200 -m 1 -s g -n lvol1 /dev/vg01
==> Creating a 1.2GB LV, mirror 1 copy with PVG strict. That way you'll always be sure that you mirrored copy reside in a different PVG (in this case in c4t10d0).
# newfs -F vxfs /dev/vg01/rlvol1
==> Format lvol1.
# mkdir /opt/apps
# mount /dev/vg01/lvol1 /opt/apps
# vi /etc/fstab
==> Edit appropriately to make the mount point permanent.
Sridhar Bhaskarla
Honored Contributor

Re: Mirroring

Hi,

Please let us know if the following does not work.

Click search on the left.

Type in "mirror root" in the search string.

You should atleast get 50 threads on detailed step-by-step procedures.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try