- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Diactivating Voulme group
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 04:34 AM
01-26-2009 04:34 AM
How to deactivating volume group in EVA without a data corruption?
Regards
Nirukshitha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 04:38 AM
01-26-2009 04:38 AM
Solutionvgchange -a n
Even if there are file systems with open oracle databases, this command will not corrupt anything.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 04:39 AM
01-26-2009 04:39 AM
Re: Diactivating Voulme group
is that VG a part of any Service Guard package and if that package is a Normal Failover tpe package or a Multinode package?
That is is that a LVM VG used by a package or SLVM shared LVM using the Multinode type package?
if that is a Normal LVM VG(not SLVM) then halting the package shall deactivate that VG.
approach is somewhat different for a SLVM VG being accessed by a MUltinode package.
Howver if that is a normal and simple VG.
umount all the fileystems on all the LVs of the VG and then do a
#vgchange -a n
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 04:56 AM
01-26-2009 04:56 AM
Re: Diactivating Voulme group
This is normal and simple VGs. But Mutipath is configured.
Anyway I already used given "vgchange -a " command.Although volume group is deactivated, after rebooting the server, it was activated automatically. Do you know any option to disable volume group permanently untill activating manually.
Regards
Niru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 05:06 AM
01-26-2009 05:06 AM
Re: Diactivating Voulme group
For other volume groups add appropriate entries in custom_vg_activation function.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 05:14 AM
01-26-2009 05:14 AM
Re: Diactivating Voulme group
Anyway what does custom_vg_activation do? How do we configure in the system.Please give me a example.
Regards
Nirukshitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 05:23 AM
01-26-2009 05:23 AM
Re: Diactivating Voulme group
And spent some time to assign point - http://forums11.itrc.hp.com/service/forums/helptips.do?#33
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 01:33 PM
01-26-2009 01:33 PM
Re: Diactivating Voulme group
in /etc/lvmrc
the meaning of AUTO_VG_ACTIVATE=1 is that Activate all the VGs that are local to the system at the system boot.
AUTO_VG_ACTIVATE=0 ; means that do not activate any other VG in the system apart from the Root VG that is the Root Volume group from ewhcih the system Boots.
in the Requirement that is being faced here the custom_vg_activation can be used with AUTO_VG_ACTIVATE=0
with AUTO_VG_ACTIVATE=0; no other VG apart from the root VG shall activate and if custom_vg_activate entry for anotehr VG is made there like that one exapmpled there then that VG will also activate with the root VG at the boot and other VGs Shall not activate apart from the root VG and the VG that is mentioned under the custom_vg_activation.
thus seems that there is an entry for this VG in there which is causing that to get activated, that needs to be commented out.
is this sure that the VG is not getting activated by any Service Guard Cluster Package? and that the MAchine is not a ServiceGuard Cluster Node
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 01:58 PM
01-26-2009 01:58 PM
Re: Diactivating Voulme group
please take some time to assign points to the answers that have been made to the queries from you.
you havw assigned point sto 4 out of 301 responses made.
please have a look at the following thread also.
http://forums1.itrc.hp.com/service/forums/helptips.
do?#33
regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 11:10 PM
01-26-2009 11:10 PM
Re: Diactivating Voulme group
I really assign points for you with this reply.
Anyway, my plan is to deactivate volume group using "vgchange -a n" command and going to set "AUTO_VG_ACTIVATE=0" option in order to disable boot volume group mounting option.After server is booted , I am going to activate only required VGs one by one using following commands.
/sbin/vgchange -a y -s /dev/vg01
/sbin/vgchange -a y -s /dev/vg02
/sbin/vgchange -a y -s /dev/vg03
/sbin/vgchange -a y -s /dev/vg04
Please correct if I am wrong.
once we activate volume groups one by one, do we need to mount lvol into mount points one by one?
Anyway there is no service guard cluster configured.
Regards
Niru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 11:34 PM
01-26-2009 11:34 PM
Re: Diactivating Voulme group
that is true.
this well help activating the root VG as well as the VGs that are mentioned in the custom_vg_activate to be activated at the boot time.
Once a VG is activated using the #vgchange -a y
Regards
Sujit
Regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2009 11:39 PM
01-26-2009 11:39 PM
Re: Diactivating Voulme group
one thing i missed, please do find that.
activating the VG shall make all the LVs in them to be used, but the mounting needs to be done manually for the LVs, or a script can serve the purpose.
the LVs need to be mounted manually after that if not put in the /etc/fstab.
However if the LVs are mentioned in the /etc/fstab and the VG is not acivated during the boot time, the errors like the Filesystem not found can be found as the system boot as the system shall try mont all the fileystems mentioned in the /etc/fstab.
Regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 12:13 AM
01-27-2009 12:13 AM
Re: Diactivating Voulme group
Please see below my fully action plan for this.
1) Unmount all mount points using below script
# for f in $(bdf | grep vg | grep -v vg00 |awk '{print $1}')
> do
> echo Unmounting $f
> umount $f
> done
2) Deactivating all volume groups using below script
# for f in $(strings /etc/lvmtab | grep vg | grep -v vg00)
> do
> echo Deactivating volume group: $f
> vgchange -a n $f
> done
3)Edit /etc/lvmrc file in order to disable unwanted volume group activation at rebooting
# vi /etc/lvmrc
Enter following entries in lvmrc
AUTO_VG_ACTIVATE=0;
custom_vg_activation()
{
/sbin/vgchange -a y -s /dev/vg00
/sbin/vgchange -a y -s /dev/vg01
/sbin/vgchange -a y -s /dev/vg02
/sbin/vgchange -a y -s /dev/vg03
/sbin/vgchange -a y -s /dev/vg04
parallel_vg_sync "/dev/vg00 /dev/vg02 /dev/vg03 /dev/vg04 "
return 0
}
4) Edit /etc/fstab and comment unwanted mount points in order to not to mount while booting.
5) Reboot the server.
Please go through this and correct if I am wrong.
Regards
Niru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 01:22 AM
01-27-2009 01:22 AM
Re: Diactivating Voulme group
1) in the custom_vg_activation the Lines for the VG vg00 can be omitted.
2)this scenario is actually doing the following thing:
this will umount all the LVs of the VG except those LVs not belonging to the vg00 and deactivate otther VGs.
but this shall activate the VGs vg00 and those mentioned in the custom_vg_activate at the system boot, but shall not mount the FS for all other VGs as the Entries from the /etc/fstab have been removed.
Was this that was wished?
then this is OKay.
IF THE FOLLOWING IS REQUIRED:
after that if it is wished that the fileystems for the VGs is mounted then it can be done using the simple mounting scripts that shall mount the corresponding LVs from the VGs to correct mount points.
NOTE:
just note that the Earlier entries as made in the custom_vg_activateion has activated all the VGs mentioned in the custom_vg_activate with vg00 at the system boot only their LVs are not mounted as the entries for them in the /etc/fstab has been commented
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 01:48 AM
01-27-2009 01:48 AM
Re: Diactivating Voulme group
Please see below my comments
1) This is a mistake. As we use AUTO_VG_ACTIVATE=0; option, I believe we don't need to add vg00 again in the "custom_vg_activation". Anyway
I will remove vg00 from custom_vg_activation
2)
I am not going to comment all entries in the /etc/fstab.However I will comment few entries which are belong to unwanted VGs(for example- all entries will not be commented for vg00,vg01,vg02,vg03,vg04, but entries belong to vg05,vg06,vg07,vg08,vg09 will be commented in /etc/fstab.When the server is rebooting,all lvols are belong to vg00,vg01,vg02,vg03,vg04 will be mounting automaltically.Then we dodn't want any script or manually mount after server booted. Please correct If I am wrong.
3) Anyway if you already have any script us to mount lvol, please share with us. Then we can ready for that also.
Thanks
Nirukshitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 02:07 AM
01-27-2009 02:07 AM
Re: Diactivating Voulme group
Not much idea on scripting, i must say sorry.
a simple script with the commands for the LVs individually can help the purpose.
mount /dev/
regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 02:19 AM
01-27-2009 02:19 AM
Re: Diactivating Voulme group
It is ok. Anyway if I comment unwanted VG's Logical volume from /etc/fstab, I believe everything will be ok.Please let me know your idea on that way.
Regards
Nirukshitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 02:57 AM
01-27-2009 02:57 AM
Re: Diactivating Voulme group
yes you can do that.
but once again note :
commenting other VG entries from /etc/fstab means that that filesystem shall not be mounted automatically as the system shall boot.
The entry of a VG in custom_vg_activation shall make that VG and the LV inside that available at the sytem boot.you can mount them automatically using entries in /etc/fstab or manually using the mount commands as and when you wish.
In ur approach the VG may get activated and may remain like that. You can any time mount the LVs from them as you decide .
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2009 08:04 PM
01-28-2009 08:04 PM
Re: Diactivating Voulme group
Thanks for the support. I will do as you said.
Regards
Nirukshitha