-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
58 lines (40 loc) · 1.18 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Overview
Blivet provides high level APIs to most Linux storage:
lvm
linear
raid
thinp
vdo
cache
pv add/remove
encrypted pvs
md raid pvs
stratis
md raid
encryption (luks)
btrfs
This is a prototype of a CSI driver over the Blivet API.
Currently a LVM volume group is used, but future enhancements will add more
features.
## Notes
Blivet code: https://github.com/storaged-project/blivet
Prototype grpc server for local storage
python --version
Python 3.10.2
## Start Server
sudo python grpc/server.py
# Add disks for volume creation to the storage_devs.json
# Update the use_for_csi_storage array in the JSON with a list
# of EMPTY devices for use for CSI volumes. Any disk added to the
# list must be empty (no label/partition). The contents of disks
# added to the use_for_csi_storage will be overwritten.
#
cp storage_devs_example.json storage_devs.json
# Update the grpc interfaces from the grpc directory
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. api.proto
## Dependencies
pip3 install blivet
pip3 install vext
pip3 install vext.gi
pip3 install gobject
dnf install python3-gi