-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
70 lines (58 loc) · 1.74 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# How to play with LoD
## Run LoD with command line config
```
Usage: lod [-h/--help]
[-d/--dry-run] -n/--node c01,c[02-04] --mds c01 --oss c[02-04] --mdtdevs /dev/sda --ostdevs /dev/sdb --mountpoint /mnt/lod start/stop/initialize
-d/--dry-run :*dry* run, don't do real job
-n/--node :, run lod with specified node list, also means the clients
-T/--mds :MDS
-O/--oss :OSS
-I/--index :instance index
-m/--mdtdevs :mdt device
-o/--ostdevs :ost device
-f/--fsname :lustre instance fsname
-i/--inet :networks interface, e.g. tcp0, o2ib01
-p/--mountpoint :mountpoint on client
-h/--help :show usage
for stage_in/stage_out
lod --source=/foo/foo1 --destination /foo2/ stage_in
lod --sourcelist=/foo/foo1_list --source=/foo_dir --destination /foo2/ stage_out
```
For example:
```
# lod --node=vm2,vm3 --mdtdevs=/dev/vdc --ostdevs=/dev/vdb --fsname=fslod --inet=tcp1 --mountpoint=/mnt/lustre start
```
It'll setup LoD instance with following config:
```
MDS: ['vm2', 'vm3']
mdt0,mgs: /dev/vdc ---> vm2
mdt1: /dev/vdc ---> vm3
OSS: ['vm2', 'vm3']
ost0: /dev/vdb ---> vm2
ost1: /dev/vdb ---> vm3
Clients:
vm2 /mnt/lustre
vm3 /mnt/lustre
Fsname: fslod
Net: tcp1
Mountpoint: /mnt/lustre
```
## SLURM integration
We provide a slurm burstbuffer plugin named burstbuffer/lod to integrate LoD into SLURM
Checkout lod-dev branch of slurm (https://github.com/DDNStorage/slurm/tree/lod-dev) and build
Enable lod burstbuffer plugin in slurm configuration (slurm.conf):
```
BurstBufferType=burst_buffer/lod
```
Install LoD package in slurm manager node.
```
#cat job.sh
#!/bin/bash
LOD setup node=c[01-04] mdtdevs=/dev/sdb ostdevs=/dev/sdc inet=o2ib01 mountpoint=/mnt/lod
LOD stop
srun jobs_run_on_lod
```
Submit job.sh with sbatch:
```
sbatch job.sh
```