Howto stratis storage: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
install packages:
pacman -S stratis-cli stratisd
first we identify the disk:
first we identify the disk:
  lsblk
  lsblk
next we clean any partition on this disk:
next we clean any partition on this disk:
  wipefs -a /dev/nvme0n1
  wipefs -a /dev/nvme0n1
create the stratis pool:
stratis pool create workstation /dev/nvme0n1
to check the list of block devices part of stratis on your system:
stratis blockdev list
to list all pools on your system:
stratis pool list
to add a new disk or block device to the existing pool:
stratis pool add-data workstation /dev/sdd
to create a stratis file system on an existing pool:
stratis filesystem create workstation boot
stratis filesystem create workstation root
to list file systems within the pool:
stratis filesystem list
to remove a filesystem on pool:
stratis filesystem destroy workstation boot
to create snapshot of filesystem use:
stratis filesystem snapshot workstation root root-snapshot
to remove existing pool:
stratis pool destroy poolname
= stratis for root =
if you want to use stratis as your root partition do the following as normal user:
wget http://img.vidalinux.com/files/stratisd-boot-2.1.0.xz
tar xvf stratisd-boot-2.1.0.xz
cd stratisd-boot/
makepkg
sudo packman -U stratisd-boot-2.1.0-1-x86_64.pkg.tar.zst
add "stratis systemd" to HOOKS in /etc/mkinitcpio.conf
HOOKS="base systemd block keyboard autodetect stratis filesystems fsck"
update you initramfs:
mkinitcpio -p linux
fix your /etc/fstab:
UUID=e2a30d4d493f40oob02b0e32fa0c8f4d / xfs defaults 0 0
install grub your disk:
rm -rf /boot/EFI
grub-install --efi-directory=/boot --bootloader-id=ARCHLINUX
grub-mkconfig -o /boot/grub/grub.cfg

Latest revision as of 22:55, 18 September 2020

install packages:

pacman -S stratis-cli stratisd

first we identify the disk:

lsblk

next we clean any partition on this disk:

wipefs -a /dev/nvme0n1

create the stratis pool:

stratis pool create workstation /dev/nvme0n1

to check the list of block devices part of stratis on your system:

stratis blockdev list

to list all pools on your system:

stratis pool list

to add a new disk or block device to the existing pool:

stratis pool add-data workstation /dev/sdd

to create a stratis file system on an existing pool:

stratis filesystem create workstation boot
stratis filesystem create workstation root

to list file systems within the pool:

stratis filesystem list

to remove a filesystem on pool:

stratis filesystem destroy workstation boot

to create snapshot of filesystem use:

stratis filesystem snapshot workstation root root-snapshot

to remove existing pool:

stratis pool destroy poolname

stratis for root

if you want to use stratis as your root partition do the following as normal user:

wget http://img.vidalinux.com/files/stratisd-boot-2.1.0.xz
tar xvf stratisd-boot-2.1.0.xz
cd stratisd-boot/
makepkg
sudo packman -U stratisd-boot-2.1.0-1-x86_64.pkg.tar.zst

add "stratis systemd" to HOOKS in /etc/mkinitcpio.conf

HOOKS="base systemd block keyboard autodetect stratis filesystems fsck"

update you initramfs:

mkinitcpio -p linux

fix your /etc/fstab:

UUID=e2a30d4d493f40oob02b0e32fa0c8f4d / xfs defaults 0 0

install grub your disk:

rm -rf /boot/EFI
grub-install --efi-directory=/boot --bootloader-id=ARCHLINUX
grub-mkconfig -o /boot/grub/grub.cfg