Operating System - HP-UX
1833875 Members
1701 Online
110063 Solutions
New Discussion

Change lvols with mirror in Cluster

 
Jose Juan
Advisor

Change lvols with mirror in Cluster

Hi,
I need make a change in my system:
I???ve 4 lvols with mirror in the cluster???s disk and I want to put every lvol in a different disk.
I need the steps to do this correctly.
My system is HP-UX 11.0 with MirrorDisk/UX and ServiceGuard.

Thanks in advance.
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: Change lvols with mirror in Cluster

I recommend you take a read of the Managing MC/ServiceGuard manual at:
http://docs.hp.com/hpux/ha
This has explanations of what and where, and hten you can also take a look at Managing Systems and Workgroups available at:
http://docs.hp.com/hpux/os/11.0/index.html#System%20Administration
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ian Dennison_1
Honored Contributor

Re: Change lvols with mirror in Cluster

if the disks are in the same logical volume

lvcreate -n [lvname] /dev/vg[vgname]

lvextend -L [MB] /dev/vg[vgname]/[lvname] /dev/dsk/[diskname].

Easy really!

Share and Enjoy! Ian
Building a dumber user
Donnie Darko
New Member

Re: Change lvols with mirror in Cluster

Hi,

I think you can use simply pvmove.

Regards
www.alten.fr
Ashwani Kashyap
Honored Contributor

Re: Change lvols with mirror in Cluster

as long as your PV's are in same VG you can use pvmove to move your lvols from one PV to another .

See more details with man pvmove .
Jose Juan
Advisor

Re: Change lvols with mirror in Cluster

Hi,
I think that the steps could be:

1.- vgextend /VG /new disks
2.- lvsplit /lvols
3.- pvmove -n /lvol /new disk
4.- lvextend -m 1 /lvol /other new disk
5.- vgexport ...
ftp primary node -> alternative node
vgimport ...

is this correct?

Thanks
Domenico_5
Respected Contributor

Re: Change lvols with mirror in Cluster

hi

remembet that lvsplit doesn't work with share mode so you can't use with cluster!!!!