Operating System - HP-UX
1832645 Members
3006 Online
110043 Solutions
New Discussion

Re: Move online data to a new lv in new disk

 
wip
Frequent Advisor

Move online data to a new lv in new disk

Hi ,

Need a help .

Need to move all the data from one lv to a new lv created (larger one) with out interrupting the services running.

1.Mirror the original lv to new disk
2.split the mirror and remove the original mirror
3.Make the split copy to original one
4.Extend the lv

Question is when we split the split lv’s will have a b suffix ,how do we remove that suffix to make the vg normal.

tia
jayan
2 REPLIES 2
morganelan
Trusted Contributor

Re: Move online data to a new lv in new disk

In order to move lvolX from PV c0t1d1 to c0t2d1 just mirror it to c0t2d1 and remove
the mirror from c0t1d1 afterwards:
# lvextend -m 1 /dev/vg01/lvolX /dev/dsk/c0t2d1
# lvreduce -m 0 /dev/vg01/lvolX /dev/dsk/c0t1d1
Kamal Mirdad
Thayanidhi
Honored Contributor

Re: Move online data to a new lv in new disk

Hi,
You can simply use "mv". In device files the name doesn't matter, the minor/major numbers are the important.

I am still confused with your procedure!
If you have online JFS & mirror ux, and the new space is availablr within the same VG, then you can mirror the current LV to the new disk, then remove mirror from original disk, then do online resizing (lvextend & fsadm).

This is just my thought!

Regds
TT

Regds
TT
Attitude (not aptitude) determines altitude.