-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Derek Su <derek.su@suse.com>
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Troubleshooting | ||
weight: 6 | ||
--- | ||
|
||
- [Disk](#disk) | ||
- ["Invalid argument" Error in Disk Status After Adding a Block-Type Disk](#invalid-argument-error-in-disk-status-after-adding-a-block-type-disk) | ||
|
||
--- | ||
|
||
## Disk | ||
|
||
### "Invalid argument" Error in Disk Status After Adding a Block-Type Disk | ||
|
||
After adding a block-type disk, the disk status displays error messages: | ||
``` | ||
Disk disk-1(/dev/nvme1n1) on node dereksu-ubuntu-pool1-bf77ed93-2d2p9 is not ready: | ||
failed to generate disk config: error: rpc error: code = Internal desc = rpc error: code = Internal | ||
desc = failed to add block device: failed to create AIO bdev: error sending message, id 10441, | ||
method bdev_aio_create, params {disk-1 /host/dev/nvme1n1 4096}: {"code": -22,"message": "Invalid argument"} | ||
``` | ||
|
||
Next, inspect the log message of the instance-manager pod on the same node. If the log reveals the following: | ||
``` | ||
[2023-06-29 08:51:53.762597] bdev_aio.c: 762:create_aio_bdev: *WARNING*: Specified block size 4096 does not match auto-detected block size 512 | ||
[2023-06-29 08:51:53.762640] bdev_aio.c: 788:create_aio_bdev: *ERROR*: Disk size 100000000000 is not a multiple of block size 4096 | ||
``` | ||
These messages indicate that the size of your disk is not a multiple of the block size 4096 and is not supported by Longhorn system. | ||
|
||
To resolve this issue, you can follow the steps | ||
1. Remove the newly added block-type disk from the node. | ||
2. Partition the block-type disk using the fdisk utility and ensure that the partition size is a multiple of the block size 4096. | ||
3. Add the partitioned disk to the Longhorn node. | ||
|