Operating System - HP-UX
1753613 Members
5953 Online
108797 Solutions
New Discussion

mirrordisk after the fact

 
SOLVED
Go to solution
Ratzie
Super Advisor

mirrordisk after the fact

I was finally able to purchase the mirrordisk for my HP11.23 server, I need to set up mirroring on the volume groups but I dont know if I will loose data currently on these vg's.

I need to set up root plus all other mirrors.
How would I do this?
Would I loose existing data already on the mounted disks?
------------------------
/dev/vg00/lvol3 3072000 331648 2718968 11% /
/dev/vg00/lvol1 1776056 58592 1539856 4% /stand
/dev/vg01/lvol3 6963200 2745832 4184776 40% /var
/dev/vg03/lvol4 4096000 1692566 2271767 43% /var/care
/dev/vg00/lvol5 6656000 1760552 4857216 27% /usr
/dev/vg00/lvol4 4096000 312054 3548078 8% /tmp
/dev/vg01/lvol2 6656000 3935256 2699536 59% /opt
/dev/vg03/lvol3 8192000 2952241 4912311 38% /opt/app/oracle
/dev/vgdb4/lvol1 17408000 7803238 9004470 46% /opt/app/oracle/oradata/db4
/dev/vgdb3/lvol1 17408000 4496520 12104517 27% /opt/app/oracle/oradata/acdb/db3
/dev/vgdb2/lvol1 17408000 6073584 10626339 36% /opt/app/oracle/oradata/db2
/dev/vgdb1/lvol1 17408000 3849879 12719374 23% /opt/app/oracle/oradata/db1
/dev/vgbkup/lvol1 53248000 8441301 42006317 17% /opt/app/oracle/backup
/dev/vgdb5/lvol1 3072000 3072000 0 100% /opt/app/oracle/archivelog
/dev/vg03/lvol2 3072000 1276427 1683365 43% /opt/care
/dev/vg01/lvol1 4096000 172632 3892776 4% /home
/dev/vg03/lvol1 1024000 370202 612987 38% /etc/care


---------------------------
--------------------------+ |
0/0/1/1.0.0 1 Unused -- 17366 HP 18.2GMAN3184MC ^ |
0/0/1/1.2.0 1 LVM vg00 17366 HP 18.2GMAN3184MC |
0/0/2/0.0.0 1 Unused -- 17366 HP 18.2GMAP3367NC |
0/0/2/0.2.0 1 LVM vg01 17366 HP 18.2GMAN3184MC |
0/0/2/1.2.0 1 Unused -- 3314 HP DVD-ROM 3 |
0/10/0/0.0.0 1 Unused -- 17366 HP 18.2GMAN3184MC |
0/10/0/0.1.0 1 LVM vg03 17366 HP 18.2GMAN3184MC |
0/10/0/0.15.0 1 -- -- -- HP Surestore Disk |
0/10/0/0.2.0 1 Unused -- 17366 HP 18.2GMAN3184MC |
0/10/0/0.3.0 1 LVM vgdb1 17366 HP 18.2GMAP3367NC v |
1 REPLY 1
James R. Ferguson
Acclaimed Contributor
Solution

Re: mirrordisk after the fact

Hi Ratzie:

You simply need to 'pvcreate' an available physical volume and then 'vgextend' it into the volume group. LVM mirroring works at the *logical volume* level, so you simply 'lvextend -m 1' each logical volume that you want to mirror. There is no downtime and you will *not* lose any data in the filesystems housed in the logical volumes.

You can take a look at the mirror procedures in the document below. For the boot disk, some slight prepartory differences exist for Itanium versus PA-RISC servers. See appendix-D in:

When Good Disks Go Bad: Dealing with Disk Failures under LVM (September 2008)

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Regards!

...JRF...