Skip to content

Commit 67f6e2a

Browse files
author
Marian Zvada
committed
edit how to generate core file
1 parent dfc8cdd commit 67f6e2a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

docs/ops/troubleshoot.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Troubleshooting tips
2+
3+
## Get core file
4+
Common settings on the system:
5+
* set core file size to unlimited: `ulimit -c unlimited`
6+
7+
### Core from unexpected process quit
8+
9+
First you need to activate xrootd to create core file when process exits unexpectedly:
10+
11+
* set env variable upon cmsd/xrootd start `DAEMON_COREFILE_LIMIT="unlimited"`
12+
RHEL6: env set in `/etc/sysconfig/xrootd`
13+
RHEL7: you can use `/etc/sysconfig/xrootd` but prepare override file `/etc/systemd/system/cmsd@clustered.service.d/override.conf` with content:
14+
```
15+
[Service]
16+
EnvironmentFile=-/etc/sysconfig/xrootd
17+
```
18+
19+
### Core from running process
20+
* directly if you know PID:
21+
```
22+
$ gdb --pid=PID_NR
23+
(gdb) gcore
24+
```
25+
26+
* if you know process name (e.g. xrootd):
27+
```
28+
`$ gcore $(pidof xrootd)`
29+
```

0 commit comments

Comments
 (0)