788 B
788 B
LVM
Extend
lvextend -L+1G /dev/vg4/homevol
Btrfs
Resize
btrfs filesystem resize max /mnt/dmp/
Defragment / compress
btrfs filesystem defragment -v -clzo /boot/*
Set RO / RW
btrfs property set -f . ro false
btrfs property set -f . ro true
Snapshot
Create shapshot
btrfs subvolume snapshot xyz xyz-snapshot-path-name
# or
btrfs subvolume snapshot main main-`date +%Y-%m-%d`
Delete shapshot
btrfs subvolume delete xyz-snapshot-path-name
# or
btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`"
Ext4
Resize
resize2fs /dev/device [size]
if superblock fail
dumpe2fs /dev/sda5 | grep -i backup
fsck -b 32768 /dev/sda5