Operating System - HP-UX
1752660 Members
5500 Online
108788 Solutions
New Discussion

Re: VGEXTEND - WITH PVG "URGENT"

 
Moez Alibhai
Advisor

VGEXTEND - WITH PVG "URGENT"

I have about a VG called VGARCH, as below.
It has one PVG, and the allocation is set to PVG-strict/distributed

I need to add 5 more vdisks from the EVA, and Extend the VG, Mirror LV.

Once the Data is SYNC'D across all disks.
i need to do a lvsplit, and mount the 2nd mirror copy on a different mount point.

Can anyone please assist me with the Steps & Procedures.

Below is the Lvdisplay Output.
LV Name /dev/vgarch/lvol1
VG Name /dev/vgarch
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1023712
Current LE 63982
Allocated PE 63982
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict/distributed
IO Timeout (Seconds) default

Thanks
Moez
6 REPLIES 6
madhuchakkaravarthy
Trusted Contributor

Re: VGEXTEND - WITH PVG "URGENT"

hi Moez

need to add 5 more vdisks from the EVA, and Extend the VG, Mirror LV.
------------------------------>


login in EVA command view and create a virtual disk of required size and present it to the particular host ..

You can select the respective group and raid while creating vdisk.

use evainfo tool to to find the cxtydz

./evainfo -w wwnno


if it is v3 use persistent device file, to find persistent files

use ioscan -m dsf cxtydz


------------------------

i need to do a lvsplit, and mount the 2nd mirror copy on a different mount point

y it is required ????? any reason
-----------------------------

pvcreate /dev/rdsk/diskxxx.
vgextend vgname /dev/dsk/diskxxx
lvextend -l [pe size] /dev/vgname/lvname
fsadm -F vxfs -b size /mountpoint.

if its under cluster do vgexport

vgexport -p -s -v -m vgname.map vgname

then do vgimport of that map file to fail over system.

in fail over system

vgimport -s -v -N -m [pathof map file ] vgname.

regards

MC

Moez Alibhai
Advisor

Re: VGEXTEND - WITH PVG "URGENT"

i was think the below steps:
pvcreate /dev/rdsk/diskxxx.

vgextend vgname /dev/dsk/diskxxx or vgextend -g pvg0 vgname /dev/dsk/diskxxx

lvchange â D n â s n /dev/vgxxx/lvxxx

lvextend -m 1 /dev/vgname/lvname /dev/dsk/diskxxx

lvsplit /dev/vgname/lvname

mount /dev/vgname/lvname /newpoint name

I will have to do lvgchange -D n -S n because of the Allocation PVG-strict/distributed policy.

please advice
Shibin_2
Honored Contributor

Re: VGEXTEND - WITH PVG "URGENT"

Since you have one PVG, you create another PVG for the new disks, in which you will be going to create mirror.

vgextend -g PVG 1

Then mirror it with respect to the PVG

lvextend -m 1 PVG1


Why you want to change the policy ? You don't required PVG at all ?

( I am not knowing what's your exact requirement ).
Regards
Shibin
Torsten.
Acclaimed Contributor

Re: VGEXTEND - WITH PVG "URGENT"

You want to add the disks in order to mirror them?

So you need to adjust the PVG file (/etc/lvmpvg), them pvcreate the disks, vgextend and mirror to the second physical volume group.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Moez Alibhai
Advisor

Re: VGEXTEND - WITH PVG "URGENT"

Hi Guys,

I have managed to sync some vg's. but i had a hitch last night.

when the mirroring was going on vgdata02, there was a power failure in the data center, the storage started acting funny after that..

i had to remove the 4 vdisks from the eva which were presented to this vgdata02.

my vgdata02 is online, but the lv is showing stale.

i need to remove those old drive paths, i will rsync again later on.

will the below command work:
lvreduce -m 0 /dev/vgdata02/lvdata02 /dev/dsk/cxtxd1 /dev/dsk/cxtxd2 /dev/dsk/cxtxd3 /dev/dsk/cxtxd4


please let me know.

cheers
moez
Shibin_2
Honored Contributor

Re: VGEXTEND - WITH PVG "URGENT"

What is your mirror copy status? Is it showing 1 ?

lvdisplay |grep -i mirror


If it is showing 1, then you can simply do lvsync to synchronize it.

lvsync -T
Regards
Shibin