Skip to content

Commit

Permalink
fix(v2 volume): fix Node Disk Support
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Sep 4, 2024
1 parent 1a16011 commit b84ae07
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
16 changes: 8 additions & 8 deletions content/docs/1.7.0/v2-data-engine/features/node-disk-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Longhorn now supports the addition and management of various disk types (AIO, NV

## Configure a Disk on Longhorn Node

Longhorn can automatically detect the disk type if `node.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management will be as follows:
Longhorn can automatically detect the disk type if `node.spec.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management will be as follows:

- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.disks[i].diskDriver` will be set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.disks[i].diskDriver` will be set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.disks[i].diskDriver` will be set to `aio`.
- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `aio`.

Alternatively, users can manually set `node.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.
Alternatively, users can manually set `node.spec.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.

To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Function) of the disk as a disk path that will be added to the Longhorn node. The following examples provide an introduction to configuring NVMe disks, VirtIO disks, and others.

Expand Down Expand Up @@ -89,7 +89,7 @@ To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Functio
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` will be set to `aio`.
### Using VirtIO Disks

Expand Down Expand Up @@ -144,7 +144,7 @@ The steps are similar to NVMe disks.
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` will be set to `aio`.

### Using AIO Disks
Expand All @@ -164,7 +164,7 @@ When neither NVMe nor VirtIO drivers can manage a disk, Longhorn will default to
tags: []
```

1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.disks[i].diskDriver` will be set to aio.
1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.status.diskStatus[i].diskDriver` will be set to aio.

## History

Expand Down
16 changes: 8 additions & 8 deletions content/docs/1.7.1/v2-data-engine/features/node-disk-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Longhorn now supports the addition and management of various disk types (AIO, NV

## Configure a Disk on Longhorn Node

Longhorn can automatically detect the disk type if `node.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management will be as follows:
Longhorn can automatically detect the disk type if `node.spec.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management will be as follows:

- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.disks[i].diskDriver` will be set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.disks[i].diskDriver` will be set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.disks[i].diskDriver` will be set to `aio`.
- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `aio`.

Alternatively, users can manually set `node.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.
Alternatively, users can manually set `node.spec.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.

To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Function) of the disk as a disk path that will be added to the Longhorn node. The following examples provide an introduction to configuring NVMe disks, VirtIO disks, and others.

Expand Down Expand Up @@ -89,7 +89,7 @@ To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Functio
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` will be set to `aio`.
### Using VirtIO Disks

Expand Down Expand Up @@ -144,7 +144,7 @@ The steps are similar to NVMe disks.
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` will be set to `aio`.

### Using AIO Disks
Expand All @@ -164,7 +164,7 @@ When neither NVMe nor VirtIO drivers can manage a disk, Longhorn will default to
tags: []
```

1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.disks[i].diskDriver` will be set to aio.
1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.status.diskStatus[i].diskDriver` will be set to aio.

## History

Expand Down
16 changes: 8 additions & 8 deletions content/docs/1.7.2/v2-data-engine/features/node-disk-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Longhorn now supports the addition and management of various disk types (AIO, NV

## Configure a Disk on Longhorn Node

Longhorn can automatically detect the disk type if `node.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management will be as follows:
Longhorn can automatically detect the disk type if `node.spec.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management will be as follows:

- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.disks[i].diskDriver` will be set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.disks[i].diskDriver` will be set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.disks[i].diskDriver` will be set to `aio`.
- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.status.diskStatus[i].diskDriver` will be set to `aio`.

Alternatively, users can manually set `node.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.
Alternatively, users can manually set `node.spec.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.

To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Function) of the disk as a disk path that will be added to the Longhorn node. The following examples provide an introduction to configuring NVMe disks, VirtIO disks, and others.

Expand Down Expand Up @@ -89,7 +89,7 @@ To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Functio
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` will be set to `aio`.
### Using VirtIO Disks

Expand Down Expand Up @@ -144,7 +144,7 @@ The steps are similar to NVMe disks.
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` will be set to `aio`.

### Using AIO Disks
Expand All @@ -164,7 +164,7 @@ When neither NVMe nor VirtIO drivers can manage a disk, Longhorn will default to
tags: []
```

1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.disks[i].diskDriver` will be set to aio.
1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.status.diskStatus[i].diskDriver` will be set to aio.

## History

Expand Down
18 changes: 9 additions & 9 deletions content/docs/1.8.0/v2-data-engine/features/node-disk-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ Longhorn now supports the addition and management of various disk types (AIO, NV

## Configure a Disk on Longhorn Node

Longhorn can automatically detect the disk type if `node.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management will be as follows:
Longhorn automatically detects the disk type if `node.spec.disks[i].diskDriver` is set to `auto`, optimizing storage performance. The detection and management is as follows:

- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.disks[i].diskDriver` will be set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.disks[i].diskDriver` will be set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.disks[i].diskDriver` will be set to `aio`.
- NVMe Disk: managed by spdk_tgt using the nvme bdev driver, and `node.status.diskStatus[i].diskDriver` is set to `nvme`.
- VirtIO Disk: managed by spdk_tgt using the virtio bdev driver, and `node.status.diskStatus[i].diskDriver` is set to `virtio-blk`.
- Other Disks: managed by spdk_tgt using the aio bdev driver, and `node.status.diskStatus[i].diskDriver` is set to `aio`.

Alternatively, users can manually set `node.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.
Alternatively, users can manually set `node.spec.disks[i].diskDriver` to `aio` to force the use of the aio bdev driver.

To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Function) of the disk as a disk path that will be added to the Longhorn node. The following examples provide an introduction to configuring NVMe disks, VirtIO disks, and others.
To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Function) of the disk as a disk path to be added to the Longhorn node. The following examples provide an introduction to configuring NVMe disks, VirtIO disks, and others.

> **Note**
>
Expand Down Expand Up @@ -89,7 +89,7 @@ To support NVMe and VirtIO disks, you need to find the BDF (Bus, Device, Functio
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` is set to `aio`.
### Using VirtIO Disks

Expand Down Expand Up @@ -144,7 +144,7 @@ The steps are similar to NVMe disks.
> storageReserved: 0
> tags: []
> ```
> In this case, the disk will be managed by the aio bdev driver, and the `node.disks[i].diskDriver` will be set to `aio`.
> In this case, the disk will be managed by the aio bdev driver, and the `node.status.diskStatus[i].diskDriver` is set to `aio`.

### Using AIO Disks
Expand All @@ -164,7 +164,7 @@ When neither NVMe nor VirtIO drivers can manage a disk, Longhorn will default to
tags: []
```

1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.disks[i].diskDriver` will be set to aio.
1. Check node.status.diskStatus. The disk should be detected without errors, and the `node.status.diskStatus[i].diskDriver` is set to `aio`.

## History

Expand Down

0 comments on commit b84ae07

Please sign in to comment.