-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: support direct disk mounting for service container
Disk UUID will be wrote into the config of service(chunkserver) container during curvebs deployment if disks `service_mount_device` was set `true`, then the service could directly mount disk device via `entrypoint.sh` and restart automatically after host power recover. Signed-off-by: Lijin Xiong <[email protected]>
- Loading branch information
Lijin Xiong
committed
Mar 16, 2023
1 parent
af342de
commit 98fdad2
Showing
18 changed files
with
460 additions
and
131 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
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
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
global: | ||
format_percent: 95 | ||
container_image: opencurvedocker/curvebs:v1.2 | ||
service_mount_device: false # disk device will be mounted by service(chunkserver) directly if set "true", default "false" | ||
host: | ||
- curve-1 | ||
- curve-2 | ||
- curve-3 | ||
|
||
disk: | ||
- device: /dev/sdb1 | ||
mount: /data/chunkserver0 | ||
- device: /dev/sdb1 # disk device path | ||
mount: /data/chunkserver0 # mount point for disk formatting, consistent with the "data_dir" field of chunkserver service in topology | ||
- device: /dev/sdc1 | ||
mount: /data/chunkserver1 | ||
format_percent: 90 | ||
format_percent: 90 # use a different value for disk format percent | ||
- device: /dev/sdd1 | ||
mount: /data/chunkserver2 | ||
exclude: # for the use case that some hosts have not certain disk device | ||
exclude: # for the use case that disk device does not exist in some hosts | ||
- curve-3 | ||
- device: /dev/sde1 | ||
mount: /data/chunkserver3 | ||
host: | ||
host: # override global host config, for the use case that disk device only exists in some hosts | ||
- curve-1 | ||
- curve-2 |
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
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
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
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
Oops, something went wrong.