Skip to content

Commit c6d0fc9

Browse files
committed
linstor: Provide /dev/drbd/by-res/ resource paths to CloudStack
Instead of using the basic /dev/drbd1000 minor number block device path, provide CloudStack with the actual resource path, that can also be linked back to the CloudStack volume.path
1 parent b9fc64b commit c6d0fc9

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

plugins/storage/volume/linstor/CHANGELOG.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,24 @@ All notable changes to Linstor CloudStack plugin will be documented in this file
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [2025-10-03]
8+
## [2025-12-18]
99

1010
### Changed
11+
- Provide /dev/drbd/by-res/ resource paths to CloudStack for usage.
12+
13+
## [2025-10-03]
1114

15+
### Changed
1216
- Revert qcow2 snapshot now use sparse/discard options to convert on thin devices.
1317

1418
## [2025-08-05]
1519

1620
### Fixed
17-
1821
- getVolumeStats wasn't correctly working if multiple Linstor clusters/primary storages are used.
1922

2023
## [2025-07-01]
2124

2225
### Fixed
23-
2426
- Regression in 4.19.3 and 4.21.0 with templates from snapshots
2527

2628
## [2025-05-07]
@@ -31,25 +33,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3133
## [2025-03-13]
3234

3335
### Fixed
34-
3536
- Implemented missing delete datastore, to correctly cleanup on datastore removal
3637

3738
## [2025-02-21]
3839

3940
### Fixed
40-
4141
- Always try to delete cs-...-rst resource before doing a snapshot backup
4242

4343
## [2025-01-27]
4444

4545
### Fixed
46-
4746
- Use of multiple primary storages on the same linstor controller
4847

4948
## [2025-01-20]
5049

5150
### Fixed
52-
5351
- Volume snapshots on zfs used the wrong dataset path to hide/unhide snapdev
5452

5553
## [2024-12-19]
@@ -60,13 +58,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6058
## [2024-12-13]
6159

6260
### Fixed
63-
6461
- Linstor heartbeat check now also ask linstor-controller if there is no connection between nodes
6562

6663
## [2024-12-11]
6764

6865
### Fixed
69-
7066
- Only set allow-two-primaries if a live migration is performed
7167

7268
## [2024-10-28]
@@ -79,17 +75,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7975
## [2024-10-14]
8076

8177
### Added
82-
8378
- Support for ISO direct download to primary storage
8479

8580
## [2024-10-04]
8681

8782
### Added
88-
8983
- Enable qemu discard="unmap" for Linstor block disks
9084

9185
## [2024-08-27]
9286

9387
### Changed
94-
9588
- Allow two primaries(+protocol c) is now set on resource-connection level instead of rd

plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/util/LinstorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public static String getDevicePath(DevelopersApi api, String rscName) throws Api
283283
null);
284284
for (ResourceWithVolumes rsc : resources) {
285285
if (!rsc.getVolumes().isEmpty()) {
286-
return String.format("/dev/drbd/by-res/%s", rscName);
286+
return String.format("/dev/drbd/by-res/%s/0", rscName);
287287
}
288288
}
289289

0 commit comments

Comments
 (0)