Introduction
# man stratis
...
EXAMPLES
Example 1. Creating a Stratis pool
stratis pool create mypool /dev/sdb /dev/sdc
Example 2. Creating an encrypted pool
stratis key set --capture-key someKeyDescription
stratis pool create --key-desc someKeyDescription mypool /dev/sdb /dev/sdc
Example 3. Creating a filesystem from a pool
stratis filesystem create mypool data1
...
# lsblk /dev/vdc -pf
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
/dev/vdc
Configure
# dnf install -y stratis-cli stratisd
# systemctl enable --now stratisd
# stratis pool create mypool /dev/vdc
# stratis filesystem create mypool data1
# lsblk /dev/stratis/mypool/data1 --output UUID
UUID
e119c223-029f-4b45-a204-3672e37c556f
# find /usr/share/doc/ -type f | xargs grep x-systemd.requires
grep: /usr/share/doc/python3-setuptools/python: No such file or directory
grep: 2: No such file or directory
grep: sunset.rst: No such file or directory
/usr/share/doc/systemd/NEWS: * New /etc/fstab options x-systemd.requires= and
/usr/share/doc/systemd/NEWS: x-systemd.requires-mounts-for= are now supported to express
# mkdir /stratis
# vim /etc/fstab
...
UUID=e119c223-029f-4b45-a204-3672e37c556f /stratis xfs defaults,x-systemd.requires=stratisd.service 0 0
# mount -a
Test
# echo "FOO" > /stratis/foo; cat /stratis/foo
No comments:
Post a Comment