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
+23-9Lines changed: 23 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Storage Profiles allow for customization of the Rabbit storage provisioning proc
10
10
1. The RAID type used for storage
11
11
2. Any mkfs or LVM args used
12
12
3. An external MGS NID for Lustre
13
-
4. A boolean value indicating the Lustre MGT and MDT should be combined on the same target device
13
+
4. A boolean value indicating the Lustre MGT and MDT should be combined on the same target device
14
14
15
15
DW directives that allocate storage on Rabbit nodes allow a `profile` parameter to be specified to control how the storage is configured. NNF software provides a set of canned profiles to choose from, and the administrator may create more profiles.
16
16
@@ -318,10 +318,20 @@ data:
318
318
319
319
#### LVM
320
320
321
-
A RAID logical volume can be used with XFS and Raw allocations.
322
-
NOTE: gfs2 allocations cannot use RAID logical volumes because the LV is shared.
321
+
A RAID logical volume can be used with XFS and Raw allocations.
323
322
324
-
To create a redundant LV, `--type raid[x]` and `--nosync` should be specified in the `lvcreate` command. Also, the `--stripes` parameter should be adjusted accordingly to specify the number of data stripes. For `raid5`, `$DEVICE_NUM-1` is used.
323
+
> **Note:** GFS2 allocations cannot use RAID logical volumes because the LV is shared between multiple nodes.
324
+
325
+
To create a redundant LV, specify `--type raid[x]`, `--activate y`, and `--nosync` in the `lvcreate` command. The `--nosync` option allows the RAID volume to be used immediately without waiting for initial synchronization.
326
+
327
+
> **Note:** In the `raid5` case when **both** `--activate y` and `--nosync` are specified, the initial sync operation is skipped which reduces the time to ready significantly.
328
+
329
+
The `--stripes` parameter should be adjusted according to the RAID type:
330
+
331
+
- **RAID0**: `--stripes $DEVICE_NUM` (all devices are data stripes)
332
+
- **RAID1**: `--stripes 1` (mirrored, only one data stripe)
333
+
- **RAID5**: `--stripes $DEVICE_NUM-1` (one device for parity)
334
+
- **RAID6**: `--stripes $DEVICE_NUM-2` (two devices for parity)
325
335
326
336
To allow the LV to rebuild after a drive is replaced, `vgExtend`, `lvRepair`, and `vgReduce` should be specified in the `lvmRebuild` section.
327
337
@@ -342,8 +352,9 @@ data:
342
352
vgExtend: $VG_NAME $DEVICE
343
353
vgReduce: --removemissing $VG_NAME
344
354
lvRepair: $VG_NAME/$LV_NAME
345
-
lvCreate: --activate n --zero n --nosync --type raid5 --extents $PERCENT_VG --stripes $DEVICE_NUM-1
346
-
--stripesize=32KiB --name $LV_NAME $VG_NAME
355
+
lvCreate: |
356
+
--activate y --zero n --nosync --type raid5 --extents $PERCENT_VG
0 commit comments