diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2672e32..b76da5c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -10,6 +10,7 @@ jobs: linux-e2e: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: fs: ['btrfs', 'xfs', 'ocfs2'] steps: diff --git a/scripts/linux-ocfs2.sh b/scripts/linux-ocfs2.sh index 97cd311..fb4da79 100644 --- a/scripts/linux-ocfs2.sh +++ b/scripts/linux-ocfs2.sh @@ -3,14 +3,23 @@ # Install required package for OCFS2 echo "::group::Install OCFS2 Tools" sudo apt-get update -sudo apt-get install -y ocfs2-tools +sudo apt-get install -y ocfs2-tools ocfs2console +echo "::endgroup::" + +# Configure Cluster +echo "::group::Configure Cluster" +sudo o2cb init-node test-node +sudo o2cb add-cluster test-cluster +sudo o2cb add-node test-cluster test-node --ip 127.0.0.1 +sudo o2cb heartbeat-mode test-cluster global +sudo o2cb online-cluster test-cluster echo "::endgroup::" # Prepare Disk echo "::group::Prepare Disk" sudo mkdir -p /mnt/ocfs2 sudo mkfs.ocfs2 -b 4K -C 32K -L "OCFS2Volume" /dev/sdb -sudo mount -t ocfs2 -o local /dev/sdb /mnt/ocfs2 +sudo mount -t ocfs2 /dev/sdb /mnt/ocfs2 echo "::endgroup::" # Create "code" directory in the OCFS2 volume @@ -21,3 +30,4 @@ sudo chown -R $USER:$USER /mnt/ocfs2/code # Give full permissions to the current user sudo chmod -R 777 /mnt/ocfs2/code +