Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tutorial/proxy-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ NFS_MOUNT_POINT="/data"

function create-fs-cache() {
# List attatched NVME local SSDs
echo "Detecting local NVMe drives..."
DRIVESLIST=$(/bin/ls /dev/nvme0n*)
NUMDRIVES=$(/bin/ls /dev/nvme0n* | wc -w)
echo "Detecting local SSDs drives..."
DRIVESLIST=$(/bin/find /dev/disk/by-id/ -regex '/dev/disk/by-id/google-local-ssd-[0-9]+$\|/dev/disk/by-id/google-local-nvme-ssd-[0-9]+$')
NUMDRIVES=$(/bin/find /dev/disk/by-id/ -regex '/dev/disk/by-id/google-local-ssd-[0-9]+$\|/dev/disk/by-id/google-local-nvme-ssd-[0-9]+$' | wc -w)
echo "Detected $NUMDRIVES drives. Names: $DRIVESLIST."

# If there are local NVMe drives attached, start the process of formatting and mounting
Expand Down