Operating System - HP-UX
1833759 Members
2423 Online
110063 Solutions
New Discussion

How to auto-start vxconfigd during bootup

 
SOLVED
Go to solution
Avinash20
Honored Contributor

How to auto-start vxconfigd during bootup

Hi ITRC Gurus,

A bit awkward query, since am not aware of VXVM, but I would appreciate if you could provide me the solution.

I need to know which startup script I need to edit to startup vxconfigd automatically when the HP-UX boots up.

My customer needs to manually start the vxconfigd once the server boots-up.
I want the daemon to auto-startup when the system boots up.

Base VXVM 4.1 is installed on the server.

Any suggestion are welcome..
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
9 REPLIES 9
Michael Steele_2
Honored Contributor
Solution

Re: How to auto-start vxconfigd during bootup

Hi

/sbin/init.d/vxvm-startup script check to see if /etc/vx/reconfig.d/state.d/install-db, and review /etc/vx/reconfig.d/state.d/install-db.
Support Fatherhood - Stop Family Law
Avinash20
Honored Contributor

Re: How to auto-start vxconfigd during bootup

Thanks MS.

I did google, and found the following.. don't know if I am on the right path
It says

http://southernfriedbear.blogspot.com/2005/07/troubleshooting-boot-process.html

Troubleshooting: Startup Scripts Exit Without Initialization

Possible causes:
Either one of the following files is present:

* /etc/vx/reconfig.d/state.d/install-db
This file indicates that VxVM software packages have been added, but VxVM has not been initialized with vxinstall. Therefore, vxconfigd is not started.

* / VXVM#.#.#-UPGRADE/.start_runed
This file indicates that a VxVM upgrade has been started but not completed. Therefore, vxconfigd is not started.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Steven E. Protter
Exalted Contributor

Re: How to auto-start vxconfigd during bootup

Shalom,

Any product meant to be run as a daemon has a configuration file in /etc/rc.config.d

There is commented documentation in the startup file and a variable you set to 1 for daemon startup.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Avinash20
Honored Contributor

Re: How to auto-start vxconfigd during bootup

SEP.. Thanks for your suggestion.
But as per my understanding, VxVM doesn't have a control variable in /etc/rc.config.d to determine whether the VxVM daemons(vxconfigd, vxrelocd, and vxnotify) should start during the boot process.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
SoorajCleris
Honored Contributor

Re: How to auto-start vxconfigd during bootup

Init scripts - VxVM 3.5
via /etc/inittab
â ¢ /sbin/init.d/vxvm-sysboot
- Starts DMP restore daemon (/dev/vx/dmpconfig)
- Starts configuration daemon in boot mode (/dev/vx/config)
- Reads /etc/vx/volboot file to determine disk ownership for rootdg
â ¢ /sbin/init.d/vxvm-startup
- Will not start if /etc/vx/reconfig.d/state.d/install-db exist
- Starts up IO daemons
- Creates disk acces records for all devices
- Imports disk groups
- Start configuration daemon in enabled mode
- Creates DMP nodes that the kernel has detected
- Starts volumes
Runlevel 0
â ¢ /sbin/rc0.d/K930vxvm-daemon-kill -> /sbin/init.d/vxvm-daemon-kill
- Execute /usr/sbin/vxiod to do away with all the Volume Manager I/O daemon
Runlevel 1
â ¢ /sbin/rc1.d/S091vxvm-nodes-check -> /sbin/init.d/vxvm-nodes-check
- Creates special nodes /dev/vx/
â ¢ /sbin/rc1.d/S092vxvm-startup -> /sbin/init.d/vxvm-startup
- Will not start if /etc/vx/reconfig.d/state.d/install-db exist
- Starts up IO daemons
- Creates disk acces records for all devices
- Imports disk groups
- Start configuration daemon in enabled mode
- Creates DMP nodes that the kernel has detected
- Starts volumes
â ¢ /sbin/rc1.d/S093vxvm-reconfig -> /sbin/init.d/vxvm-reconfig
- Performs VxVM reconfiguration (if needed)
- Called by vxinstall to add new disks
- On systems with LVM called by conversion utilities
â ¢ /sbin/rc1.d/K999isisd -> /sbin/init.d/isisd
- Stops the Isis server daemon
Runlevel 2
â ¢ /sbin/rc2.d/S096vxvm-recover -> /sbin/init.d/vxvm-recover
- Performs volume recovery and resynchronization
Chapter 17 VERITAS Volume Manager (VxVM)
July 2003 Chapter 17 / Page 8
- Starts relocation daemon
â ¢ /sbin/rc2.d/S994vxnm-vxnetd -> /sbin/init.d/vxnm-vxnetd
- Checkes if VVR (Veritas Volume Replicator) license is installed
- Starts vxnetd if VVR license is installed
â ¢ /sbin/rc2.d/S996vradmind -> /sbin/init.d/vras-vradmind.sh
- Starts vradmind daemon (Volume Replicator Administrative Services) only if VVR
license is installed
â ¢ /sbin/rc2.d/S996vxrsyncd -> /sbin/init.d/vxrsyncd.sh
- Starts in.vxrsyncd daemon only if VVR license is installed
â ¢ /sbin/rc2.d/S999isisd -> /sbin/init.d/isisd
- Starting VERITAS Enterprise Administrator Service (vxsvc)
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Avinash20
Honored Contributor

Re: How to auto-start vxconfigd during bootup

Thanks Suraj.
My commments was just to say that there is no file in /etc/rc.config.d for VXVM daemon to start(except vea)

*** /sbin/init.d/vmvm-startup ***
general_startup()
{

#
# If the volume manager hasn't yet been initialized, don't
# bother starting vxconfigd. The install-db file indicates that
# initialization has NOT yet happened.
#

if [ -f "/etc/vx/reconfig.d/state.d/install-db" ]
then
exit 0

fi

### I also have the file "/etc/vx/reconfig.d/state.d/install-db" available on the server which is empty
### Does that mean that volume manager hasn't been initialized ??

## any suggestion ??
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Shankar_6
Regular Advisor

Re: How to auto-start vxconfigd during bootup

Hi,

/etc/rc.config.d/vx* file is needed when your startup script under /sbin/init.d/vxvm* checks for the variable..

As long it is linked to respective run level scripts,then it should start/stop automatically..

regards
shankar
Avinash20
Honored Contributor

Re: How to auto-start vxconfigd during bootup

Let me share the answers


VxVM 4.1 does not require rootdg, so special configuration of VxVM is not required
except initializing the volboot file and starting the vx* deamons.


Base-VXFS 4.1.002 VERITAS File System Bundle 4.1 for HP-UX
Base-VXVM B.04.10.011 Base VERITAS Volume Manager Bundle 4.1 for HP-UX

As per your this system has a file called - /etc/vx/reconfig.d/state.d/install-db


When this file exists, VxVM thinks its not configured on the system so it won't get
started automatically during the boot time.

To start the VxVM daemons during the boot time, we need to remove this file -/etc/vx/reconfig.d/state.d/install-db

Note: running vxinstall command will automatically remove this file, but it has to be run ONLY once
i.e when configuring the vxvm on the system for the first time

After removing - /etc/vx/reconfig.d/state.d/install-db and rebooting vxconfigd start automatically
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: How to auto-start vxconfigd during bootup

See above my last comment
"Light travels faster than sound. That's why some people appear bright until you hear them speak."