Operating System - HP-UX
1758360 Members
2705 Online
108868 Solutions
New Discussion

Re: How to move storage from MCSG-RAC to LVM mirror Should I just do it like this?

 
SOLVED
Go to solution
zero1022
Occasional Contributor

How to move storage from MCSG-RAC to LVM mirror Should I just do it like this?

If the MCSG-RAC Rawdevice Volume Group is vg01

I want to change PV of vg01 to another storage, so I'm working on it.
New Storage: Newdisk#1, #2, #3
Old Storage: Old disk#1, #2, #3

<Node#1>
Add Newdisk #1, #2, and #3 (PV) to VG01 while online.
#lvextend -m 1 /dev/vg01/(raw device) /dev/disk/Newdisk#1 /dev/disk/Newdisk#2 /dev/disk/Newdisk#3
When the mirror is complete.


<Node#2>

Node#2 Service Down on Oracle RAC

#cmhaltnode Node#2


<Node#1>
#lvreduce -m 0 /dev/vg01/(raw device) /dev/disk/Olddisk#1 /dev/disk/Olddisk#2 /dev/disk/Olddisk#3

#vgreduce /dev/vg01 /dev/disk/Olddisk#1 /dev/disk/Olddisk#2 /dev/disk/Olddisk#3

#vgexport -v -p -s -m /tmp/vg01.map /dev/vg01

Move the /tmp/vg01.map file to Node#2

<Node#2>
#vgexport /dev/vg01
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgimport -v -s -N -m /tmp/vg01.map /dev/vg01
#chown oracle:dba /dev/vg01/r*
#vgchange -a s /dev/vg01
#cmrunnode

Node#2 Service Startup on Oracle RAC


Is there a problem with the above procedure?

3 REPLIES 3
georgek_1
HPE Pro
Solution

Re: How to move storage from MCSG-RAC to LVM mirror Should I just do it like this?

Hello zero1022,

 

It seems you have the vg activated in shared mode (running multinode package), if that's the case , then you wont be able to perform lvextend while the active in shared mode .

 

//from # man lvextend

    Shared Volume Group Considerations
      For volume group version 1.0 and 2.0, lvextend cannot be used if the
      volume group is activated in shared mode.  For volume groups version
      2.1 (or higher), lvextend can be performed when activated in either
      shared, exclusive, or standalone mode.

 

Please check the vg version and proceed .

If vg version 2.1 or higher, you may proceed with activity online , no need to halt the package .

Else , plan the downtime , halt the package and activate the vg in normal node perform lvextend,lvreduce,vgreduce export & import as you mentioned .

 

I work for HPE/ I am an HPE Employee (HPE Community)

 


I am an HPE Employee. .
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
zero1022
Occasional Contributor

Re: How to move storage from MCSG-RAC to LVM mirror Should I just do it like this?

That's the part I missed
Thanks to this, I was able to prepare well for the work.
Thank you.

Sunitha_Mod
Moderator

Re: How to move storage from MCSG-RAC to LVM mirror Should I just do it like this?

Hello @zero1022,

That's Excellent! 

We are extremely glad to know the problem has been resolved. 

Thanks,
Sunitha G
I'm an HPE employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo