差異處
這裏顯示兩個版本的差異處。
| 下次修改 | 前次修改 | ||
| btrfs [2016/08/25 01:03] – 建立 jz | btrfs [2023/06/11 01:10] (目前版本) – jz | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | 回復快照 | + | ====== Btrfs ====== |
| - | < | + | |
| + | ===== Snapshot ===== | ||
| + | |||
| + | < | ||
| btrfs send / | btrfs send / | ||
| btrfs subvolume snapshot / | btrfs subvolume snapshot / | ||
| 行 6: | 行 9: | ||
| </ | </ | ||
| - | scrub | + | ===== Scrub ===== |
| - | < | + | < |
| btrfs scrub start / | btrfs scrub start / | ||
| </ | </ | ||
| + | |||
| + | Find files with csum error | ||
| + | <code bash> | ||
| + | find / | ||
| + | </ | ||
| + | |||
| + | ===== Create Raid1 ===== | ||
| + | < | ||
| + | btrfs fi show | ||
| + | btrfs device add /dev/xxx / | ||
| + | btrfs balance start -dconvert=raid1 -mconvert=raid1 / | ||
| + | </ | ||
| + | |||
| + | ===== Replace ===== | ||
| + | Replace | ||
| + | < | ||
| + | echo 1 | sudo tee / | ||
| + | btrfs filesystem show /mountpoint | ||
| + | btrfs replace start -B < | ||
| + | btrfs replace status /mountpoint | ||
| + | iostat -d 1 -m < | ||
| + | </ | ||
| + | |||
| + | Balance | ||
| + | < | ||
| + | btrfs fi usage -T /mountpoint | ||
| + | btrfs device usage /mountpoint | ||
| + | btrfs filesystem balance | ||
| + | </ | ||
| + | |||
| + | Replace and Disable reading from failed disk | ||
| + | < | ||
| + | btrfs replace start -r 5 / | ||
| + | </ | ||
| + | |||
| + | http:// | ||
| + | https:// | ||