Update fs orders
This commit is contained in:
@@ -1,11 +1,24 @@
|
|||||||
|
|
||||||
# LVM
|
|
||||||
#### Extend
|
|
||||||
```bash
|
|
||||||
lvextend -L+1G /dev/vg4/homevol
|
|
||||||
```
|
|
||||||
|
|
||||||
# Btrfs
|
# Btrfs
|
||||||
|
### 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`"
|
||||||
|
```
|
||||||
|
|
||||||
#### Resize
|
#### Resize
|
||||||
```bash
|
```bash
|
||||||
btrfs filesystem resize max /mnt/dmp/
|
btrfs filesystem resize max /mnt/dmp/
|
||||||
@@ -20,23 +33,10 @@ btrfs property set -f . ro false
|
|||||||
btrfs property set -f . ro true
|
btrfs property set -f . ro true
|
||||||
```
|
```
|
||||||
|
|
||||||
### Snapshot
|
# LVM
|
||||||
|
#### Extend
|
||||||
#### Create shapshot
|
|
||||||
```bash
|
```bash
|
||||||
btrfs subvolume snapshot xyz xyz-snapshot-path-name
|
lvextend -L+1G /dev/vg4/homevol
|
||||||
|
|
||||||
# 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
|
# Ext4
|
||||||
|
Reference in New Issue
Block a user