How to run dtrace tests

  • Create user:

1 sudo useradd -m -d /var/ztest -g staff -s /bin/bash ztest
  • Add password for remote ssh:

1 sudo passwd ztest
  • Add user to sudo:

1 echo "ztest ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/ztest
  • Install packages for zfs tests:

1 2 sudo apt update sudo apt install system-dtrace-tests build-essential oracle-java8-jdk perl
  • Login by user ztest and run tests:

1 sudo /opt/SUNWdtrt/bin/dtest -d /var/tmp

Wait for about 90 minutes.
Fault logs will be saved at:

1 /var/tmp/failure.*