代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/nvme-snsd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: nvme-snsd
Version: 1.00.029
Release: 3
Summary: nvme-snsd service
License: BSD 3-Clause
Group: Applications/System
URL: https://gitee.com/openeuler/%{name}
Source: https://gitee.com/openeuler/%{name}/repository/archive/%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: glibc
BuildRequires: gcc,make,dos2unix
%description
This is an independently deployable software that can simplify service deployment and configuration while reducing the impact of link failures on services .
When the storage device goes online, NVMe over Fabric target association/connection will be automatically created. Once a path between the host and the storage
is not reachable/offline, the device can detect the path change in time and switch the current fault path service to another to reduce the service downtime.
%prep
%setup -q
%build
dos2unix SNSD-VERSION-GEN
make clean
%make_build
%install
if [ -d %{buildroot} ];then
rm -rf %{buildroot}
fi
mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/usr/share/doc
mkdir -p %{buildroot}/usr/lib/systemd/system
cp -af %{_builddir}/%{name}-%{version}/script/nvme-snsd.service %{buildroot}/usr/lib/systemd/system
cp -af %{_builddir}/%{name}-%{version}/nvme-snsd %{buildroot}/usr/bin
cp -af %{_builddir}/%{name}-%{version}/test/config/snsd.conf %{buildroot}/usr/share/doc/
%clean
rm -rf %{buildroot}
%pre
%post
chmod 0550 %{_bindir}/nvme-snsd
chmod 0440 /usr/share/doc/snsd.conf
chmod 0440 /usr/lib/systemd/system/nvme-snsd.service
if [ ! -f /etc/nvme/snsd.conf ];then
mkdir -pv /etc/nvme/
cat >/etc/nvme/snsd.conf <<"EOF"
[BASE]
; The delay time of disconnecting device when net link down. Unit is second.
; The recommended value is 0.
--restrain-time = 0
[SW]
; Switching network configuration, mandatory: --host-traddr, --protocol
; If "--host-traddr" is set to "any", other IP addresses cannot be configured for the switching network, All customer networks support SNSD.
; eg: --host-traddr = xxxx | --protocol = roce
[DC]
; Configuration of the directly connected network, mandatory: --host-traddr, --protocol, --traddr
; eg: --host-traddr = xxxx | --traddr = xxxx | --protocol = roce
EOF
chmod 0644 /etc/nvme/snsd.conf
fi
systemctl enable nvme-snsd
systemctl start nvme-snsd
%preun
systemctl stop nvme-snsd
systemctl disable nvme-snsd
%files
%defattr (-, root, root)
%{_bindir}/nvme-snsd
/usr/share/doc/snsd.conf
/usr/lib/systemd/system/nvme-snsd.service
%changelog
* Thu Aug 31 2023 Guangyan Lv <lvguangyan2@huawei.com> - 1.00.029-3
- Update rpmbuild spec, fix uninstallation issues for nvme-snsd.
* Sat Jul 30 2022 Ruozhu Li <liruozhu@huawei.com> - 1.00.029-2
- Update src tar fetch from upstream release.
* Tue Feb 22 2022 Ruozhu Li <liruozhu@huawei.com> - 1.00.029-1
- Added the function of sending a notification message to the switch when the software starts, and the switch sending domain members to the host, improving the reliability of software upgrade scenarios.
- Add more connection parameter support, consistent with nvme cli.
- Bond ports can join the domain and automatically establish a connection.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。