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