Operating System - HP-UX
1754958 Members
2774 Online
108827 Solutions
New Discussion юеВ

Re: add disk to an existing miror

 
Emilie25
Occasional Advisor

add disk to an existing miror

Hello,
on my server i've create a miror of LV with disk from room A and disk from room B. Like this, in case of lost a room the system continue to view data. And now, i want to add more space on my LV and i want to keep the same configuration : a miror between the 2 rooms. So i have to present a disk from both the room but i don't know how to say to LVM to makes the miror between the 2 rooms. Can you help me ?
Thanks.
10 REPLIES 10
Manix
Honored Contributor

Re: add disk to an existing miror

>>on my server i've create a miror of LV with disk from room A and disk from room B.

>>to add more space on my LV a

What you mean by rooms over here ,controllers /PVG

More over lvextend will take care of the mirroring part as per the mirroring policies set by you initially.

Please explain a bit with OS version ,model & vgdisplay output
HP-UX been always lovable - Mani Kalra
Jose Mosquera
Honored Contributor

Re: add disk to an existing miror

Hi,

You have a big room's container named Volume Group (VG). In this VG you have allocated and free spaces, named physical extents. So, how many extents you have available to grow inside of your VG, Is this your vg00?
Please execute this command over your desired VG:
#vgdisplay -v vg

Rgds.
Emilie25
Occasional Advisor

Re: add disk to an existing miror

Thanks for the reply.
First i've created a LV with 5 disks from SAN of room A.
After i've created a miror on 5 disks from SAN of room B.
Like this i have a replication of my data on both rooms.
See the attachment of vgdisplay of my vg
Now i want to extend my vg and keep the same replication between the two rooms.

Emilie25
Occasional Advisor

Re: add disk to an existing miror

Just for information :
For now i have free space, but in some days i'll need to extend it to put more data (around 900Gb)
Manix
Honored Contributor

Re: add disk to an existing miror

run lvdisplay -v backuplv | more
and post the output.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
Emilie25
Occasional Advisor

Re: add disk to an existing miror

Thanks for the reply.
see the attachment for the output of lvdisplay.
Manix
Honored Contributor

Re: add disk to an existing miror

Hello Emilie ,

Thanks for the logs now we can see some information :-

That no of mirrors are 1
& each LV is spead across 10 luns ( 5 from each pool)

while doing lvcreate we may not specify the disks but can do with lvextend

so make a zero size lvol ,extend it on a disk from pool1 & then create a mirror on pool2

pvcreate /dev/rdsk/cxtxdx ( for each disk)
vgextend /dev/backupvg /dev/rdsk/cxtxdx ( for each disk)

lvcreate -n backuplv /dev/backupvg ( zero size )

lvextend -L M /dev/vgbackup/backuplv /dev/dsk/cxtxdx ( pool A )

lvextend -m 1 /dev/vgbackup/backuplv /dev/dsk/cxtxdx ( pool B )


Better post diskinfo /dev/rdsk/cxtxdx for the new diks / luns & specify the full size while extending lv.

Please revert for any queries.

Thanks & Regards
Manix
HP-UX been always lovable - Mani Kalra
Emilie25
Occasional Advisor

Re: add disk to an existing miror

Hello,

I'm sorry but i'm not sure to understand everything. Are you saying i have to broke what i've done and create a new miror to add 2 disks ?
this part : pvcreate /dev/rdsk/cxtxdx ( for each disk)
vgextend /dev/backupvg /dev/rdsk/cxtxdx ( for each disk)
lvcreate -n backuplv /dev/backupvg ( zero size )
lvextend -L M /dev/vgbackup/backuplv /dev/dsk/cxtxdx ( pool A )
lvextend -m 1 /dev/vgbackup/backuplv /dev/dsk/cxtxdx ( pool B )
is what i done to create the miror some weeks ago.
Can you re-explain me please ?
Thanks !
shanmuhanandam
HPE Pro

Re: add disk to an existing miror

Hi,

1.You need to add 2 more luns (one from roomA and one fromB.
2.Extend the new luns to the backupvg.
3.lvextend -L /

It will be automatically extended to the other lun also.

Thanks,
Shan.
I am an HPE Employee

Accept or Kudo