You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/storage-profiles/readme.md
+90Lines changed: 90 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -744,6 +744,96 @@ For system storage allocations:
744
744
|----------|-------------|
745
745
| `$COMPUTE_HOSTNAME` | Hostname of the compute node using the allocation |
746
746
747
+
### User Command Variables
748
+
749
+
Different variables are available depending on which user command hook is being executed.
750
+
751
+
#### Block Device User Commands
752
+
753
+
The following variables are available to `blockDeviceCommands.rabbitCommands.userCommands` and `blockDeviceCommands.computeCommands.userCommands` (preActivate, postActivate, preDeactivate, postDeactivate):
754
+
755
+
| Variable | Description |
756
+
|----------|-------------|
757
+
| `$JOBID` | Job ID from the Workflow |
758
+
| `$USERID` | User ID of the job submitter |
759
+
| `$GROUPID` | Group ID of the job submitter |
760
+
| `$VG_NAME` | Volume group name |
761
+
| `$LV_NAME` | Logical volume name |
762
+
763
+
#### File System User Commands
764
+
765
+
The following variables are available to `fileSystemCommands.rabbitCommands.userCommands` and `fileSystemCommands.computeCommands.userCommands` (preMount, postMount, preUnmount, postUnmount):
766
+
767
+
| Variable | Description |
768
+
|----------|-------------|
769
+
| `$JOBID` | Job ID from the Workflow |
770
+
| `$USERID` | User ID of the job submitter |
771
+
| `$GROUPID` | Group ID of the job submitter |
772
+
| `$DEVICE` | Device path being mounted |
773
+
| `$MOUNT_PATH` | Path where the file system is mounted |
774
+
775
+
#### Storage-Level User Commands
776
+
777
+
The following variables are available to `userCommands` at the storage level (postSetup, preTeardown, postActivate, preDeactivate):
778
+
779
+
| Variable | Description |
780
+
|----------|-------------|
781
+
| `$JOBID` | Job ID from the Workflow |
782
+
| `$USERID` | User ID of the job submitter |
783
+
| `$GROUPID` | Group ID of the job submitter |
784
+
| `$MOUNT_PATH` | Path where the file system is mounted |
785
+
786
+
#### Lustre Target User Commands
787
+
788
+
The following variables are available to Lustre target commands (mgtCommandlines, mdtCommandlines, mgtMdtCommandlines, ostCommandlines) for postActivate and preDeactivate:
789
+
790
+
| Variable | Description |
791
+
|----------|-------------|
792
+
| `$JOBID` | Job ID from the Workflow |
793
+
| `$MOUNT_PATH` | Path where the target is mounted |
794
+
| `$FS_NAME` | Lustre file system name |
795
+
| `$TARGET_NAME` | Target name (e.g., `mylus-OST0003`) |
796
+
797
+
#### Lustre Client User Commands
798
+
799
+
The following variables are available to `clientCommandLines` user commands:
0 commit comments