Operating System - HP-UX
1832757 Members
3048 Online
110045 Solutions
New Discussion

Re: How do I initialize VxVM using CLI in HP-UX 11iv2?

 
Tony Williams
Regular Advisor

How do I initialize VxVM using CLI in HP-UX 11iv2?

I have a procedure I use to initialize VxVM for the 1st time on HP-UX:

1.remove install-db file from /etc/vx/reconfig.d/state.d
2.execute "vxdctl mode"
3.execute “vxconfigd”
4.initialize vxvm for this server “vxdctl init
5.execute “vxdctl enable”
6.execute “vxconfigd”

It works for me, however someone asked why don't I just do:
1. vxconfigd
2. vxdctl enable

I have found that this doesn't work. When I execute "vxconfigd" I get errors:
V-5-1-0 vxvm:vxconfigd: WARNING: File /etc/vx/array.info does not exist.
This file will be generated when switching to ENABLED mode.

V-5-1-0 vxvm:vxconfigd: WARNING: File /etc/vx/array.info does not exist.
This file will be generated when switching to ENABLED mode.

V-5-1-0 vxvm:vxconfigd: NOTICE: Generating /etc/vx/array.info

VxVM vxconfigd ERROR V-5-1-1589 enable failed: Volboot file not loaded
transactions are disabled.

However if I continue with my procedure everything starts:

1.remove install-db file from /etc/vx/reconfig.d/state.d
2.execute "vxdctl mode"
3.execute “vxconfigd” ( Get warnings)
4.initialize vxvm for this server “vxdctl init
5.execute “vxdctl enable”
6.execute “vxconfigd”

Does anyone know why I need to execute vxconfigd twice? Also do you have the official or correct CLI procedure?
3 REPLIES 3
Nido
Trusted Contributor

Re: How do I initialize VxVM using CLI in HP-UX 11iv2?

Hi,

>>>>I have a procedure I use to initialize VxVM for the 1st time on HP-UX:

Check this thread:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1348212


HTH!!
" Let Villagers Be Happy!! "
Shankar V Subramanian
Occasional Advisor

Re: How do I initialize VxVM using CLI in HP-UX 11iv2?

Hi Tony,

Once you have installed VxVM, it needs to be initialized for the first time use. There is a one shot command which does this.

#vxinstall

It Starts the configuration, notification, and relocation daemons used by VxVM. NOTE: "vxinstall is run only once per system" - Except for Troubleshooting situations. It would ask for the license key, default disk group and things.

However, as always in VxVM, if you wanna do it manually, follow the below:

Install VxVM

â ¢ Start vxconfigd in disabled mode
# vxconfigd -m disable
â ¢ Start some vxiod threads
# vxiod set 10
â ¢ Initialize the /etc/vx/volboot file
# vxdctl init
â ¢ Create a disk group
# vxdg init mydg
â ¢ Initialize a disk for VM
# vxdisk -f init type=auto \
format=cdsdisk
â ¢ Add the disk to a disk group
# vxdg -g mydg adddisk disk01=
â ¢ To enable vxconfigd daemon
# vxconfigd -k -m enable
â ¢ To restart DMP subsystem
# vxdctl initdmp
â ¢ To start vxrelocd daemon
# nohup /etc/vx/bin/vxrelocd root &
â ¢ To start vxconfigbackupd daemon
# nohup /usr/lib/vxvm/vxconfigbackupd &

Hope this helps!

-SH
Vinod Kumar Yadav
Trusted Contributor

Re: How do I initialize VxVM using CLI in HP-UX 11iv2?

Hi,

For New Veritas Initialization Check the VERITAS is install with proper Licence.


vxdctl enable ==> scan system for new disks. (i.e. after adding disks from EMC, you need to run `vxdctl enable` to see them through VxVM.

How to create a volume manager(ed) disk:
# Scan for Added Disk
vxdctl enable
# Initialize new disks ()

Jai Shiv Shankar