Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Add alternate client mount provisioners #2094

Merged
merged 4 commits into from
Jul 24, 2020
Merged
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ The IML Team typically uses [Vagrant](https://www.vagrantup.com) and [VirtualBox
vagrant provision --provision-with=install-lustre-client,configure-lustre-client-network
```

1. Mount the clients:
- ldiskfs or lvm based
```sh
vagrant provision --provision-with=mount-lustre-client
```

- Second ldiskfs filesystem
```sh
vagrant provision --provision-with=mount-lustre-client-fs2
```

- ZFS backed filesystem
```sh
vagrant provision --provision-with=mount-lustre-client-zfs
```

At this point you should be able to access the IML GUI on your host at https://localhost:8443

From here you can decide what type of setup to run.
Expand Down
12 changes: 12 additions & 0 deletions vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,18 @@ Vagrant.configure('2') do |config|
run: 'never',
path: './scripts/mount_lustre_client.sh'

c.vm.provision 'mount-lustre-client-fs2',
type: 'shell',
run: 'never',
path: './scripts/mount_lustre_client.sh',
args: 'fs2'

c.vm.provision 'mount-lustre-client-zfs',
type: 'shell',
run: 'never',
path: './scripts/mount_lustre_client.sh',
args: 'zfsmo'

end
end
end
Expand Down
4 changes: 3 additions & 1 deletion vagrant/scripts/mount_lustre_client.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

set -e

FS=${1:-fs}

mkdir /mnt/$FS
mkdir -p /mnt/$FS
mount -t lustre 10.73.20.11@tcp:10.73.20.12@tcp:/$FS /mnt/$FS