GNU Lesser General Public License v3.0

项目介绍

optimans/cockpit-zfs-manager 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 GNU Lesser General Public License v3.0 许可证,目前获得 262 个 Star、40 次 Fork。

仓库全名
optimans/cockpit-zfs-manager
开源许可证
GNU Lesser General Public License v3.0
Star 数
262
Fork 数
40

README 摘要

Cockpit ZFS Manager An interactive ZFS on Linux admin package for Cockpit. Use of this software is at your risk! End-of-Life This software has reached its end-of-life and is no longer maintained. Requirements Cockpit: 201+ NFS (Optional) Samba: 4+ (Optional) ZFS: 0.8+ Installation Copy zfs folder to cockpit Samba Auto generated snapshot names are created in YYYY.MM.DD-HH.MM.SS format. It is recommended to add the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

cockpit-zfs-manager 用什么语言开发?

主要使用 JavaScript 编写,采用 GNU Lesser General Public License v3.0 许可证,目前有 262 个 Star。

cockpit-zfs-manager 可以免费商用吗?

仓库标注的许可证为 GNU Lesser General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 cockpit-zfs-manager 的源码?

可以直接克隆仓库:git clone https://github.com/optimans/cockpit-zfs-manager.git,默认分支为 master;安装与运行步骤见仓库 README。

cockpit-zfs-manager 最近还在维护吗?

仓库最近一次更新为 2021年7月30日,当前没有未关闭的 Issue;Star 数为 262,可作为社区活跃度的参考。

关于

Cockpit ZFS Manager is an interactive ZFS on Linux admin package for Cockpit.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
342
价值分
169
活跃状态
归档

README

Cockpit ZFS Manager

GitHub Tag

An interactive ZFS on Linux admin package for Cockpit.

Use of this software is at your risk!

End-of-Life

This software has reached its end-of-life and is no longer maintained.

Requirements

  • Cockpit: 201+
  • NFS (Optional)
  • Samba: 4+ (Optional)
  • ZFS: 0.8+

Installation

Copy zfs folder to cockpit

$ git clone https://github.com/optimans/cockpit-zfs-manager.git
$ sudo cp -r cockpit-zfs-manager/zfs /usr/share/cockpit
Samba

Auto generated snapshot names are created in YYYY.MM.DD-HH.MM.SS format.

It is recommended to add the following properties to the Samba configuration file to allow access to Previous Versions in Windows Explorer:

$ sudo nano /etc/samba/smb.conf

Append to [global] section or individual share sections

shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format = %Y.%m.%d-%H.%M.%S
shadow: localtime = yes	
vfs objects = acl_xattr shadow_copy2
SELinux

If using SELinux in enforcing mode, it is recommended to enable the boolean states for Samba:

$ sudo setsebool -P samba_export_all_ro=1 samba_export_all_rw=1

Using Cockpit ZFS Manager

Login to Cockpit as an administrative user and click ZFS from the navigation list.

A Welcome to Cockpit ZFS Manager modal will display and allow you to configure initial settings.

Caveats

Storage Pools

New storage pools are created with the following properties set (not visible in Create Storage Pool modal):

  • aclinherit=passthrough
  • acltype=posixacl
  • casesensitivity=sensitive
  • normalization=formD
  • sharenfs=off
  • sharesmb=off
  • utf8only=on
  • xattr=sa
File Systems

New file systems are created with the following properties set (not visible in Create File System modal):

  • normalization=formD
  • utf8only=on

Passphrase is currently supported for encrypted file systems.

If SELinux contexts for Samba is selected, the following properties are set:

  • context=system_u:object_r:samba_share_t:s0
  • fscontext=system_u:object_r:samba_share_t:s0
  • defcontext=system_u:object_r:samba_share_t:s0
  • rootcontext=system_u:object_r:samba_share_t:s0
Samba

ZFS always creates shares in /var/lib/samba/usershares folder when ShareSMB property is enabled. This is also the case even if Cockpit ZFS Manager is managing the shares. To avoid duplicate shares of the same file system, it is recommended to configure a different usershares folder path if required or to disable usershares in the Samba configuration file.

Note: Newer versions of Samba may require the usershares folder to be set to a new path instead of disabled in configuration:

$ sudo mkdir /var/lib/samba/usershares2
$ sudo nano /etc/samba/smb.conf

Append/Change to [global] section

usershare path = /var/lib/samba/usershares2

If enabled, Cockpit ZFS Manager manages shares for the file systems only. Samba global configuration will need to be configured externally.

Guides

评论

暂无评论