- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Everytime I Reboot my Database Doesn't Work !
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
06-26-2005 02:37 AM
06-26-2005 02:37 AM
Everytime I Reboot my Database Doesn't Work !
I need to activate by using vgchange -a y all
the vg's listed on my /etc/lvmtab for my database to work. How to configure my system
so that it will automatically activate the the databases vg's everytime it reboots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2005 04:06 AM
06-26-2005 04:06 AM
Re: Everytime I Reboot my Database Doesn't Work !
I assume yours is not a cluster env.
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2005 03:00 PM
06-26-2005 03:00 PM
Re: Everytime I Reboot my Database Doesn't Work !
Check /etc/bcheckrc-->/sbin/bcheckrc ==> This is the script that
executes /sbin/lvmrc which is illustrated in the following lines of code:
if [ -x /sbin/lvmrc ]
then
echo "Checking for LVM volume groups and Activating (if any exists)"
/sbin/lvmrc
fi
Knowing that the above-code is looking for x (executable) permission,
if /sbin/lvmrc is not executable then this is the problem.
Checking /sbin/lvmrc:
ll /sbin/lvmrc
-r-sr--r-- ==> Notice there is no x (executable) permission to this script.
Changing permission:
chmod 544 /sbin/lvmrc
ll /sbin/lvmrc
-r-xr--r-- ==> Notice there is now x (executable) permission.
Rebooting the system fixes the problem.
regards
Vinod K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2005 03:17 PM
06-26-2005 03:17 PM
Re: Everytime I Reboot my Database Doesn't Work !
The most likely reason is that AUTO_VG_ACTIVATE is OFF in the /etc/lvmrc file.
I would definitely check that first!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 06:08 PM
06-27-2005 06:08 PM
Re: Everytime I Reboot my Database Doesn't Work !
It is very encouraging that I got replies
immediately.
The present AUTO_VG_ACTIVATE=1.
I forgot to mention that during the boot-up process on activating each vg's, I got an
error of "no such device or address". I don't know exactly the exact error but as far as I can remember it is like "no such
device". When the system booted up and execute bdf, only the vg00 is active.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 08:55 PM
06-27-2005 08:55 PM
Re: Everytime I Reboot my Database Doesn't Work !
Is database vg on seperate disk? If yes, probably that disc has failed now. Please check the disk in ioscan and do dd to query the disk. If successful, vg configuartion has probably corrupted. Restore vg configuration from vgcfgbackup and edit lvmrc.
good luck
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 09:02 PM
06-27-2005 09:02 PM
Re: Everytime I Reboot my Database Doesn't Work !
Old versions of SecurePath didn't create their disk devices before /etc/lvmrc tried to activate the volume groups.
If this is the case, upgrading to the latest vesrion of SecurePath for HPUX (3.0F I think) should fix the problem.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 09:32 PM
06-27-2005 09:32 PM
Re: Everytime I Reboot my Database Doesn't Work !
The database is on separate disk. I run ioscan the disk are all present/claimed.
How to "to restore vg from configuration
vgcfgbackup"? Also what part/item of lvmrc
needs editing. I just want keep the present working system configuration that once I reboot again, I will not activate manually
all the vg's related to the database.
Thanks,
Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 09:36 PM
06-27-2005 09:36 PM
Re: Everytime I Reboot my Database Doesn't Work !
Thanks for the input, but I am not using
HP EVA neither Securepath, I am just using
JBOD's.
Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 10:32 PM
06-27-2005 10:32 PM
Re: Everytime I Reboot my Database Doesn't Work !
You can use: strings /etc/lvmtab to identify all the volume groups and their attached disk devices. Once you have the disk devices use the following command to check the hard disk. This will ensure the disk is functional. This should show the disk size correctly (zero size means disk is bad).
vgcfgrestore -n
will do a vgcfg restore frm default configuration file. Do a man for additional options.
Sudeesh
diskinfo -v /dev/rdsk/cxtydz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 10:35 PM
06-27-2005 10:35 PM
Re: Everytime I Reboot my Database Doesn't Work !
Did u identify the disk device which is giving issue ?
You can use: strings /etc/lvmtab to identify all the volume groups and their attached disk devices. Once you have the disk devices use the following command to check the hard disk. This will ensure the disk is functional. This should show the disk size correctly (zero size means disk is bad).
diskinfo -v /dev/rdsk/cxtydz
vgcfgrestore -n
will do a vgcfg restore frm default configuration file. Do a man for additional options.
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 10:47 PM
06-27-2005 10:47 PM
Re: Everytime I Reboot my Database Doesn't Work !
you said you got an error.
Please search in
/etc/rc.log
or
/var/adm/syslog/syslog.log
for the error message and post it here.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 12:48 AM
06-28-2005 12:48 AM
Re: Everytime I Reboot my Database Doesn't Work !
Post the /etc/lvmrc and /sbin/lvmrc files.
Or compare it with other servers.
Regds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 01:48 AM
06-28-2005 01:48 AM
Re: Everytime I Reboot my Database Doesn't Work !
Follow the steps below:
pvcreate -f
vgcfgrestore -n vgname pv_path
restore db
reboot and check
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 03:44 AM
06-28-2005 03:44 AM
Re: Everytime I Reboot my Database Doesn't Work !
Also check the /etc/rc.log what is the error while booting (activating all vgs).
pvcreate -f will lead all data loss.
(you cannot pvcreate if disk is already recorded in lvmtab)
Regds
TT