Skip to content

Commit

Permalink
roachprod: change the location cores are written to
Browse files Browse the repository at this point in the history
/tmp is only 10GB in size, while /mnt/data1 is 370GB.

Fixes cockroachdb#35621

Release note: None
  • Loading branch information
petermattis committed Mar 29, 2019
1 parent d03a34e commit 8fdd7bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pkg/cmd/roachprod/vm/aws/support.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ root soft core unlimited
root hard core unlimited
EOF
mkdir -p /tmp/cores
chmod a+w /tmp/cores
CORE_PATTERN="/tmp/cores/core.%e.%p.%h.%t"
mkdir -p /mnt/data1/cores
chmod a+w /mnt/data1/cores
CORE_PATTERN="/mnt/data1/cores/core.%e.%p.%h.%t"
echo "$CORE_PATTERN" > /proc/sys/kernel/core_pattern
sed -i'~' 's/enabled=1/enabled=0/' /etc/default/apport
sed -i'~' '/.*kernel\\.core_pattern.*/c\\' /etc/sysctl.conf
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/roachprod/vm/gce/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ root soft core unlimited
root hard core unlimited
EOF
mkdir -p /tmp/cores
chmod a+w /tmp/cores
CORE_PATTERN="/tmp/cores/core.%e.%p.%h.%t"
mkdir -p /mnt/data1/cores
chmod a+w /mnt/data1/cores
CORE_PATTERN="/mnt/data1/cores/core.%e.%p.%h.%t"
echo "$CORE_PATTERN" > /proc/sys/kernel/core_pattern
sed -i'~' 's/enabled=1/enabled=0/' /etc/default/apport
sed -i'~' '/.*kernel\\.core_pattern.*/c\\' /etc/sysctl.conf
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ func (c *cluster) FetchCores(ctx context.Context) error {
// timeout.
return contextutil.RunWithTimeout(ctx, "cores", 60*time.Second, func(ctx context.Context) error {
path := filepath.Join(c.t.ArtifactsDir(), "cores")
return execCmd(ctx, c.l, roachprod, "get", c.name, "/tmp/cores" /* src */, path /* dest */)
return execCmd(ctx, c.l, roachprod, "get", c.name, "/mnt/data1/cores" /* src */, path /* dest */)
})
}

Expand Down

0 comments on commit 8fdd7bd

Please sign in to comment.