Operating System - HP-UX
1833748 Members
2689 Online
110063 Solutions
New Discussion

Re: Create a raid 1 online

 
SOLVED
Go to solution
Juan Manuel López
Valued Contributor

Create a raid 1 online

Hi all !.
I have a vg with 4 disk. I have got logical volumes on it, it??s full. And it is not on mirror.
Now I want to assign other 4 disk to the vg and make the mirror.
The procedure I think is:
1 pvcreate -B /dev/rdsk/CxTxDx
2 vgextend /dev/vg01 /dev/dsk/CxTxDx
3 make " lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/CxTxDx " to each lv on vg01
It is possible to make it on line ? without stop nothing ?.
On my vg01 are running 3 oracle instances.
I want to make mirror without stop oracle instances. It that possible ?
Thanks in advance.
Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
3 REPLIES 3
U.SivaKumar_2
Honored Contributor

Re: Create a raid 1 online

Hi,
if you are mirroring root , boot , swap volume group vg00 , then only you have to use pvcreate -B /dev/rdsk/CxTxDx
In your case , volume group seems to be /dev/vg01 so don't do the above command.
pvcreate -f /dev/dsk/cxtxdx ( new disk)
vgextend /dev/vg01 /dev/dsk/cxtxdx
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/cxtxdx " to each lv on vg01

( cxtxdx not CxTxDx )

regards,
U.SivaKumar



Innovations are made when conventions are broken
Juan Manuel López
Valued Contributor

Re: Create a raid 1 online

Thanks.
So can I make it online, without stop the aplications running on vg01 ?
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
U.SivaKumar_2
Honored Contributor
Solution

Re: Create a raid 1 online

Hi,
Yes , You can do it online , if that volume group is not in shared mode. i.e the disks in that volume group are not connected to different servers at the same time.

It will take some time for them to sync after you mirror them. you can use lvdisplay -v /dev/vg01/lvol1 command to see the syncing
status of logical extents.

regards,
U.SivaKumar
Innovations are made when conventions are broken