How to collect data related to usage of VxVM, VxFS, & VCS in general
book
Article ID: 100005983
calendar_today
Updated On:
Description
Description
List of the steps for collecting data in the perspective of VxVM, VxFS, & VCS in general.
1) Collect date and time as soon as problem is observed.
2) Check what all operations are going on when performance degradation is observed, check if VERITAS operations are going on (look for VxVM/VxFS/VCS command if running).
3) Collect all the process currently running.
# time ps -elf
4) Collect kernel threadlist every 2 minutes, when performance degradation is observed. Threadlist will be logged into /var/log/messages file.
To avoid a system hang (it can cause problems with VCS/CFS) while collecting kernel threadlist using the Linux sysrq interface follow these steps.
# cat /proc/sys/kernel/printk > /tmp/printk
# echo 0 > /proc/sys/kernel/printk
# echo t > /proc/sysrq-trigger
# cat /tmp/printk > /proc/sys/kernel/printk
5) Collect top, meminfo and vmstat command output at regular interval (top 1 sec, vmstat 5 sec).
In one session watch continuously the top 20 process:
# watch -n 1 "top -b -d 1 | head -n 20"
# top –b –d 1 /* 1 sec interval */
If interested to look at any specific process (like vxconfigd) then use the following command
6) Collect VxVM i/o statistics if there is an application i/o load.
# vxstat -i 2 –vps
7) Collect the output from the following commands at regular intervals (10 seconds) in case if any VxVM command is taking time.
# pmap `ps aux | grep vxconfigd | grep -v grep | awk '{print $2}'` | grep -i total
# cat /proc/`pgrep vxconfigd`/status
# /usr/sbin/lsof -a -p `pgrep vxconfigd`
# pstack `pgrep vxconfigd`
Collect the stack of vxconfigd using 'gdb' if pstack command doesn’t work.
# gdb -p `pgrep vxconfigd`
(gdb) bt
(gdb) info threads
(gdb) info sharedlibrary
(gdb) info dcache
(gdb) quit
8) Please run the following command only if any VxVM commands are not working as expected or any VxVM/vxconfigd related issue is observed. Running vxconfigd in debug mode at
level 9 can slow down the vxconfigd.
How to start vxconfigd in debug mode at various labels (min 1, max 9)
# vxdctl debug
Once done, disable the logging using following command.
# vxdctl debug 0
Generate a gcore of vxconfigd when high memory usage is observed: