Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 32e9ff8

Browse files
Create README.md
1 parent d8be19e commit 32e9ff8

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

README.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# Cockpit ZFS Manager
2+
3+
**An interactive ZFS on Linux admin package for Cockpit.**
4+
5+
### WARNING!
6+
7+
Cockpit ZFS Manager is currently pre-release software.
8+
9+
#### Use at own risk!
10+
11+
Not recommended for use on production systems.\
12+
Ensure all critical data is adequately backed up before use.
13+
14+
## Requirements
15+
16+
* Cockpit: 201+
17+
* Samba: 4+
18+
* ZFS: 0.8+
19+
20+
#### Tested Distributions:
21+
22+
* CentOS Linux 8.0
23+
* Debian 10.0
24+
* Oracle Linux Server 8.0
25+
* Red Hat Enterprise Linux 8.0
26+
* Ubuntu 19.10
27+
28+
## Installation
29+
30+
Copy zfs folder to cockpit
31+
32+
```bash
33+
$ sudo cp -r zfs /usr/share/cockpit
34+
```
35+
36+
#### Samba
37+
38+
Auto generated snapshot names are created in YYYY.MM.DD-HH.MM.SS format.
39+
40+
It is recommended to add the following properties to the Samba configuration file to allow access to Previous Versions in Windows Explorer:
41+
42+
```bash
43+
$ sudo nano /etc/samba/smb.conf
44+
```
45+
46+
Append to [global] section or individual share sections
47+
48+
```
49+
[global]
50+
~
51+
shadow: snapdir = .zfs/snapshot
52+
shadow: sort = desc
53+
shadow: format = %Y.%m.%d-%H.%M.%S
54+
shadow: localtime = yes
55+
vfs objects = acl_xattr shadow_copy2
56+
```
57+
58+
### SELinux
59+
60+
If using SELinux in enforcing mode, it is recommended to enable the boolean states for Samba:
61+
62+
```bash
63+
$ sudo setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
64+
```
65+
66+
## Using Cockpit ZFS Manager
67+
68+
Login to Cockpit as a privileged user and click ZFS from the navigation list.
69+
70+
A Welcome to Cockpit ZFS Manager modal will display and allow you to configure initial settings.
71+
72+
Note: Inline help is currently available in modals. Documentation will be created at a later date.
73+
74+
75+
76+
## Caveats
77+
78+
#### Storage Pools
79+
80+
New storage pools are created with the following properties set (not visible in Create Storage Pool modal):
81+
82+
* aclinherit=passthrough
83+
* acltype=posixacl
84+
* casesensitivity=sensitive
85+
* sharenfs=off
86+
* sharesmb=off
87+
* xattr=sa
88+
89+
#### File Systems
90+
91+
New file systems are created with the following properties set (not visible in Create File System modal):
92+
93+
* normalization=formD
94+
* utf8only=on
95+
96+
Passphrase is currently supported for encrypted file systems.
97+
98+
If SELinux contexts for Samba is selected, the following properties are set:
99+
100+
* context=system_u:object_r:samba_share_t:s0
101+
* fscontext=system_u:object_r:samba_share_t:s0
102+
* defcontext=system_u:object_r:samba_share_t:s0
103+
* rootcontext=system_u:object_r:samba_share_t:s0
104+
105+
#### Samba
106+
107+
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.
108+
109+
If enabled, Cockpit ZFS Manager manages shares for the file systems only. Samba global configuration will need to be configured externally.
110+
## More Information
111+
112+
* [Roadmap](ROADMAP.md)
113+
* [ServeTheHome and ServeThe.Biz Forums](https://forums.servethehome.com/index.php?threads/25668/)
114+
115+
## Guides
116+
117+
* [Installation Example for CentOS 8.0 as an Active Directory Domain Services (AD DS) Member](guides/CentOS-8.0.md)

0 commit comments

Comments
 (0)