[feat] Tuning opencas for PiiOS
- disable modules reload during installation - flush at shutdown - todo: tuning flush parameters
This commit is contained in:
parent
dd992d3cd9
commit
cbcb8bab74
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -1,6 +1,6 @@
|
|||||||
[submodule "ocf"]
|
[submodule "ocf"]
|
||||||
path = ocf
|
path = ocf
|
||||||
url = https://github.com/Open-CAS/ocf.git
|
url = https://git.piicloud.cn/github/ocf.git
|
||||||
[submodule "test/functional/test-framework"]
|
[submodule "test/functional/test-framework"]
|
||||||
path = test/functional/test-framework
|
path = test/functional/test-framework
|
||||||
url = https://github.com/Open-CAS/test-framework.git
|
url = https://git.piicloud.cn/github/opencas-test-framework.git
|
||||||
|
@ -52,7 +52,6 @@ distclean: clean distsync
|
|||||||
|
|
||||||
install: install_files
|
install: install_files
|
||||||
@$(DEPMOD)
|
@$(DEPMOD)
|
||||||
@$(MODPROBE) $(CACHE_MODULE)
|
|
||||||
|
|
||||||
install_files:
|
install_files:
|
||||||
@echo "Installing Open-CAS modules"
|
@echo "Installing Open-CAS modules"
|
||||||
|
@ -26,8 +26,6 @@ install: install_files
|
|||||||
ifeq (, $(PYTHON3))
|
ifeq (, $(PYTHON3))
|
||||||
$(error package 'python3' not found)
|
$(error package 'python3' not found)
|
||||||
else
|
else
|
||||||
@$(UDEV) control --reload-rules
|
|
||||||
@$(SYSTEMCTL) daemon-reload
|
|
||||||
@$(SYSTEMCTL) -q enable open-cas-shutdown
|
@$(SYSTEMCTL) -q enable open-cas-shutdown
|
||||||
@$(SYSTEMCTL) -q enable open-cas
|
@$(SYSTEMCTL) -q enable open-cas
|
||||||
|
|
||||||
@ -81,11 +79,9 @@ uninstall:
|
|||||||
|
|
||||||
$(call remove-file,$(DESTDIR)$(UDEVRULES_DIR)/60-persistent-storage-cas-load.rules)
|
$(call remove-file,$(DESTDIR)$(UDEVRULES_DIR)/60-persistent-storage-cas-load.rules)
|
||||||
$(call remove-file,$(DESTDIR)$(UDEVRULES_DIR)/60-persistent-storage-cas.rules)
|
$(call remove-file,$(DESTDIR)$(UDEVRULES_DIR)/60-persistent-storage-cas.rules)
|
||||||
@$(UDEV) control --reload-rules
|
|
||||||
|
|
||||||
@$(SYSTEMCTL) -q disable open-cas-shutdown
|
@$(SYSTEMCTL) -q disable open-cas-shutdown
|
||||||
@$(SYSTEMCTL) -q disable open-cas
|
@$(SYSTEMCTL) -q disable open-cas
|
||||||
@$(SYSTEMCTL) daemon-reload
|
|
||||||
|
|
||||||
$(call remove-file,$(DESTDIR)$(SYSTEMD_DIR)/open-cas-shutdown.service)
|
$(call remove-file,$(DESTDIR)$(SYSTEMD_DIR)/open-cas-shutdown.service)
|
||||||
$(call remove-file,$(DESTDIR)$(SYSTEMD_DIR)/open-cas.service)
|
$(call remove-file,$(DESTDIR)$(SYSTEMD_DIR)/open-cas.service)
|
||||||
|
@ -12,7 +12,7 @@ DefaultDependencies=no
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/sbin/casctl stop
|
ExecStart=/sbin/casctl stop --flush
|
||||||
TimeoutStopSec=604800
|
TimeoutStopSec=604800
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user