-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
138150: drtprod: setup dmsetup disk staller r=nameisbhaskar a=vidit-bhat Previously, disk stall operations used to fail on drt clusters since there was no prior setup done. This PR adds a script that does the setup similar to how we do it for the disk stall roachtest. Epic: none Release note: None Co-authored-by: Vidit Bhat <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Yaml for destroying the drt-large and workload-large clusters. | ||
environment: | ||
ROACHPROD_GCE_DEFAULT_SERVICE_ACCOUNT: [email protected] | ||
ROACHPROD_DNS: drt.crdb.io | ||
ROACHPROD_GCE_DNS_DOMAIN: drt.crdb.io | ||
ROACHPROD_GCE_DNS_ZONE: drt | ||
ROACHPROD_GCE_DEFAULT_PROJECT: cockroach-drt | ||
CLUSTER: drt-test | ||
WORKLOAD_CLUSTER: workload-test | ||
|
||
targets: | ||
- target_name: $CLUSTER | ||
steps: | ||
- command: destroy | ||
args: | ||
- $CLUSTER | ||
- target_name: $WORKLOAD_CLUSTER | ||
steps: | ||
- command: destroy | ||
args: | ||
- $WORKLOAD_CLUSTER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Sets up datadog for the drt clusters. | ||
# NOTE - This uses CLUSTER environment variable, if not set the script fails | ||
|
||
if [ -z "${CLUSTER}" ]; then | ||
echo "environment CLUSTER is not set" | ||
exit 1 | ||
fi | ||
|
||
roachprod ssh "$CLUSTER" -- "sudo apt-get purge -y snapd" | ||
roachprod ssh "$CLUSTER" -- "sudo umount -f /mnt/data1" | ||
roachprod ssh "$CLUSTER" -- "sudo dmsetup remove_all" | ||
roachprod ssh "$CLUSTER" -- "sudo tune2fs -O ^has_journal /dev/nvme0n1" | ||
roachprod ssh "$CLUSTER" -- 'echo "0 $(sudo blockdev --getsz /dev/nvme0n1) linear /dev/nvme0n1 0" | sudo dmsetup create data1' | ||
roachprod ssh "$CLUSTER" -- "sudo mount /dev/mapper/data1 /mnt/data1" |