-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update the rwx volume document #699
Open
Vicente-Cheng
wants to merge
1
commit into
harvester:main
Choose a base branch
from
Vicente-Cheng:update-rwx-volume-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -294,10 +294,28 @@ Now you can create a new StorageClass that you intend to use in your guest Kuber | |
|
||
## RWX Volumes Support | ||
|
||
:::caution | ||
|
||
RWX volumes currently only work with a dedicated storage network. [GitHub issue #7218](https://github.com/harvester/harvester/issues/7218) tracks the enhancement that will allow RWX volumes to use various VLANs on guest clusters. | ||
|
||
::: | ||
|
||
### Prerequisites | ||
|
||
- Harvester v1.4 or later is installed on the host cluster. | ||
|
||
- A [storage network](../advanced/storagenetwork.md) is configured on the Harvester cluster. | ||
|
||
Use **exclude** to reserve a range of IP addresses for the guest cluster virtual machines. | ||
|
||
![](/img/v1.5/rancher/configure-storage-network-01.png) | ||
|
||
- The **Storage Network for RWX Volume** setting on the embedded Longhorn UI is enabled. | ||
|
||
Go to **General**, and then select **Storage Network for RWX Volume Enabled**. | ||
|
||
![](/img/v1.5/rancher/enable-rwx-storage-network-01.png) | ||
|
||
- You have created an RWX StorageClass on the host Harvester cluster. | ||
|
||
On the **Storage Class: Create** screen, click **Edit as YAML** and specify the following: | ||
|
@@ -377,6 +395,12 @@ Now you can create a new StorageClass that you intend to use in your guest Kuber | |
harvester-networkfs-manager-xvkgp 1/1 Running 4 (37m ago) 3h41m | ||
``` | ||
|
||
- The VM must have two interfaces. The first one is the default network interface for cluster/external networking. The second one must be in a network which can connect to the storage network. | ||
|
||
The NAD **default/vlan101** is used for the storage network. | ||
|
||
![](/img/v1.5/rancher/create-guest-cluster-with-two-nics.png) | ||
|
||
- The Harvester CSI driver version is v0.1.20 or later. | ||
|
||
![](/img/v1.4/rancher/harvester-csi-driver-version.png) | ||
|
@@ -391,6 +415,21 @@ Now you can create a new StorageClass that you intend to use in your guest Kuber | |
|
||
- SUSE and OpenSUSE: `zypper install -y nfs-client` | ||
|
||
- An IP is manually assigned to the storage network interface. | ||
|
||
You can assign any of the reserved IPs using the following commands: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just a side topic. Don't we have any IPAM in this case? @starbops |
||
|
||
``` | ||
$ ip link set <storage network nic> up | ||
$ ip a add <reserved IP> dev <storage network nic> | ||
``` | ||
|
||
:::info important | ||
|
||
An IP that is assigned using the given commands does not persist after a reboot. To make the IP persistent, you must add it to the network configuration file of your guest operating system. | ||
|
||
::: | ||
|
||
### Usage | ||
|
||
1. Create a new StorageClass on the guest cluster. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cluster/external networking
was a bit vague. Is this what you mean?