Details
-
Improvement
-
Resolution: Done
-
Major
-
None
-
2.5.1
-
Security Level: Public
-
None
-
RHEL 6.5
Description
Hello,
The "r" option cbcollect_info is used to specify the destination path for the dump. However, the temporary files are placed in the /tmp directory.
I find it unfortunate to be able to specify a destination path (probably a problem of space) but to continue working in the /tmp
Would it be possible to add another option to specify a temporary working directory ?
Or use the target path as the working directory
[root@rh6 DUMP]# /opt/couchbase/bin/cbcollect_info -r /DUMP rh6.zip
uname (uname -a) - OK
Directory structure membase - previous versions (ls -lR /opt/membase /var/membase /var/opt/membase /etc/opt/membase) - Exit code 2
Process list snapshot (export TERM=''; top -Hb -n1 || top -H n1) - OK
Process list (ps -AwwL -o user,pid,lwp,ppid,nlwp,pcpu,maj_flt,min_flt,pri,nice,vsize,rss,tty,stat,wchan:12,start,bsdtime,command) - OK
Raw /proc/vmstat (cat /proc/vmstat) - OK
Raw /proc/mounts (cat /proc/mounts) - OK
Raw /proc/partitions (cat /proc/partitions) - OK
Raw /proc/diskstats (cat /proc/diskstats) - OK
Raw /proc/interrupts (cat /proc/interrupts) - OK
Swap configuration (free -t) - OK
Swap configuration (swapon -s) - OK
Kernel modules (lsmod) - OK
Distro version (cat /etc/redhat-release) - OK
Distro version (lsb_release -a) - Exit code 127
Installed software (rpm -qa) - OK
Installed software (COLUMNS=300 dpkg -l) - Exit code 127
Extended iostat (iostat -x -p ALL 1 10 || iostat -x 1 10) - OK
Core dump settings (find /proc/sys/kernel -type f -name 'core' -print -exec cat '{}' ';') - OK
sysctl settings (sysctl -a) - OK
relevant lsof output (echo moxi memcached vbucketmigrator beam couch_compact godu sigar_port | xargs -n1 pgrep | xargs -n1 -r – lsof -n -p) - OK
LVM info (lvdisplay) - OK
LVM info (vgdisplay) - OK
LVM info (pvdisplay) - OK
Network configuration (ifconfig -a) - OK
Taking sample 2 after 10.000000 seconds -
OK
Network configuration (echo link addr neigh rule route netns | xargs -n1 – sh -x -c 'ip $1 list' --) - Exit code 124
Network status (netstat -anp || netstat -an) - OK
Network routing table (netstat -rn) - OK
Arp cache (arp -na) - OK
Filesystem (df -ha) - OK
System activity reporter (sar 1 10) - OK
System paging activity (vmstat 1 10) - OK
System uptime (uptime) - OK
couchbase user definition (getent passwd couchbase) - OK
couchbase user limits (su couchbase -c "ulimit -a") - OK
membase user definition (getent passwd membase) - Exit code 2
couchbase user limits (su couchbase -c "ulimit -a") - OK
membase user limits (su membase -c "ulimit -a") - Exit code 125
Interrupt status (intrstat 1 10) - Exit code 127
Processor status (mpstat 1 10) - OK
System log (cat /var/adm/messages) - Exit code 1
All logs (tar cz /var/log/syslog* /var/log/dmesg /var/log/messages* /var/log/daemon* /var/log/debug* /var/log/kern.log* 2>/dev/null) - Exit code 2
Relevant proc data ((pgrep moxi; pgrep beam.smp; pgrep memcached; pgrep couch_compact; pgrep sigar_port ; pgrep godu) | xargs -n1 – sh -c 'echo $1; cat /proc/$1/status; cat /proc/$1/limits; cat /proc/$1/smaps; cat /proc/$1/numa_maps; cat /proc/$1/sched; echo' --) - OK
NUMA data (numactl --hardware) - OK
NUMA data (numactl --show) - OK
NUMA data (cat /sys/devices/system/node/node*/numastat) - OK
Kernel log buffer (dmesg) - OK
Transparent Huge Pages data (cat /sys/kernel/mm/transparent_hugepage/enabled) - OK
Transparent Huge Pages data (cat /sys/kernel/mm/transparent_hugepage/defrag) - OK
Transparent Huge Pages data (cat /sys/kernel/mm/redhat_transparent_hugepage/enabled) - OK
Transparent Huge Pages data (cat /sys/kernel/mm/redhat_transparent_hugepage/defrag) - OK
Network statistics (netstat -s) - OK
Full raw netstat (cat /proc/net/netstat) - OK
CPU throttling info (echo /sys/devices/system/cpu/cpu*/thermal_throttle/* | xargs -n1 – sh -c 'echo $1; cat $1' --) - OK
Checking for server guts in /DUMP/var/lib/couchbase/initargs...
Failed to read initargs:
Checking for server guts in /opt/couchbase/var/lib/couchbase/initargs...
product diag header () - OK
Directory structure (['ls', '-lR', '/opt/couchbase']) - OK
Database directory structure (['ls', '-lR', '/DATA']) - OK
Index directory structure (['ls', '-lR', '/DATA']) - OK
Database directory filefrag info (['find', '/DATA', '-type', 'f', '-exec', 'filefrag', '-v', '{}', '+']) - OK
Index directory filefrag info (['find', '/DATA', '-type', 'f', '-exec', 'filefrag', '-v', '{}', '+']) - OK
Directory structure membase - previous versions (ls -lR /opt/membase /var/membase /var/opt/membase /etc/opt/membase) - Exit code 2
Version file (cat '/opt/couchbase/VERSION.txt') - OK
Manifest file (cat '/opt/couchbase/manifest.txt') - OK
Manifest file (cat '/opt/couchbase/manifest.xml') - OK
Couchbase config () - OK
Memcached logs (['sh', '-c', 'cd "$1"; for file in $(ls -tr memcached.log.*); do cat "$file"; done', '--', '/opt/couchbase/var/lib/couchbase/logs']) - OK
Ini files (['sh', '-c', 'for i in "$@"; do echo "file: $i"; cat "$i"; done', '--', '/opt/couchbase/etc/couchdb/default.ini', '/opt/couchbase/etc/couchdb/default.d/capi.ini', '/opt/couchbase/etc/couchdb/default.d/geocouch.ini', '/opt/couchbase/etc/couchdb/local.ini']) - OK
couchbase diags (curl -sS -u Administrator:***** http://127.0.0.1:8091/diag?noLogs=1) - OK
couchbase logs (debug) (cbbrowse_logs debug) - OK
couchbase logs (info) (cbbrowse_logs info) - OK
couchbase logs (error) (cbbrowse_logs error) - OK
couchbase logs (couchdb) (cbbrowse_logs couchdb) - OK
couchbase logs (xdcr) (cbbrowse_logs xdcr) - Traceback (most recent call last):
File "/opt/couchbase/bin/cbcollect_info", line 557, in <module>
main()
File "/opt/couchbase/bin/cbcollect_info", line 533, in main
runner.run(task)
File "/opt/couchbase/bin/cbcollect_info", line 126, in run
self.header(fp, task.description, command_to_print)
File "/opt/couchbase/bin/cbcollect_info", line 98, in header
fp.flush()
IOError: [Errno 28] No space left on device