Mustafa Gulercan
Respected Contributor

Re: lvextend new LV to VG on oracle raw device

hi Tuck;




1.For both servers do I have to shutdown the DB before I proceed?
If you have got Online JFSyou don't need shutdown oracle.Use following commands;
#vgchange -a e -x
and than use lvcreate like;
#lvcreate -L -n

2. For para 2 if shutdown not required, Do I need to down or recompile the cluster to add my new LV raw device in the cluster? I did not see any entry in the .cntl file.
if you create LV in a cluster used volume group, you don't need to down cluster.

3. For para 2, for the VGexport and VGimport. Do I need to halt B node if I vgexport from A to B node and vgimport to B?
Thereis no need to halt node for vgexport
#vgexport -s -v -p -m /tmp/vgname.map /dev/vgname
it is not update the /etc/lvmtab file or remove the devices file.
For vgimport you need to deactive volume group on nodeB.here is the steps;
1- # ll /dev/vg*/group to note the minor number of volume group
2- deactive the volume group
3- #mkdir /dev/vgname
4- #mknod /dev/vgname/group c 64 0xXXXXXX (use hexadecimal number )
5- #vgimport -s -v -m /tmp/vgname.map /dev/vgname
6- don't forget to check the owner of volume group.
chown -R oracle:dba vgname (as an example)

regards;
mustafa