Operating System - HP-UX
1834492 Members
3125 Online
110067 Solutions
New Discussion

Re: Create LV on shared VG

 
Filosofo
Regular Advisor

Create LV on shared VG

Hello,
I must add a new LV on a vg_pippo, that is activate in shered mode (2 partition of Super Dome with oracle Rac).
I read on man lvcreate that:
lvcreate cannot be performed if the volume group is activated in shared mode.
The only way to add a LV is stop the packages, execute
create LV
export and import of vg_pippo

I hope that there is another way for make this operatio without stop packages.
Please help me.

Thanks

Filo


Sistem engeneer expert
6 REPLIES 6
T G Manikandan
Honored Contributor

Re: Create LV on shared VG

You cannot perform that without bringing down the package.

You need to bring down the package.

Thanks
Radhakrishnan Venkatara
Trusted Contributor

Re: Create LV on shared VG

If this is the case and the VG's are activated in shared mode, vgchange -a s mode, then the simple answer is no, you cannot lvextend the lv's while the VG is activated.


radhakrishnan
Negative thinking is a highest form of Intelligence
Radhakrishnan Venkatara
Trusted Contributor

Re: Create LV on shared VG

sorry for putting lvextend it is lvcreate

check this link

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb6e1e822e739d711abdc0090277a778c,00.html

radhakrishnan
Negative thinking is a highest form of Intelligence
Rajesh G. Ghone
Regular Advisor

Re: Create LV on shared VG

Sorry Filo you cannot create LV when the VG is mount in a shared mode,the only way is to bring down the package & do it offline.

Regards,
Rajesh G.
Rajesh Ghone
Jean-Louis Phelix
Honored Contributor

Re: Create LV on shared VG

Hi,

I'm sorry, but only sam doesn't want to do it. This is I assume only to try to preserve integrity of your cluster. If you want to do it manually, you will have some more steps under your own responsability :

- you have to export/import the vg on other cluster nodes (but for a single LV with no new disk a mknod would be enough ...)

- you have to mount the lvol manually (because package is already running)

- you have to modify the control scripts to make them mount and umount the new lvol

Regards.
It works for me (© Bill McNAMARA ...)
Michael Steele_2
Honored Contributor

Re: Create LV on shared VG

Although LVM will allow you to run shared commands when the package is up, the shared vgs will remain separate from the package until added. Use these LVM commands to activate shared vgs for testing purposes before the MC/SG work only:

vgchange -S y -c y /dev/vg##
vgchange -a s /dev/vg##

To add new LVM structures into a ServiceGuard package the package.conf file has to be updated and 'cmmakpkg -p' has to be rerun. This is because LVM is not controlled through the O/S but the SG binaries, which have to be updated and restarted.

Shared logical volumes are 'updateable' from every node simultaneously and require a lot more then just LVM to work. At least one asynchronous device driver is needed, different values of kernel parameters, special versions of EMS, MC/SG and Oracle, its a complicated procedure. Attach 'cmviewcl -v' and 'cmscancl' to begin with, as well as the LVM work you'd like to accomplish.
Support Fatherhood - Stop Family Law