This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:filesystems:brtfs [2020/08/17 19:15] tkilla [btrfs RAID] |
linux:filesystems:brtfs [2025/01/08 23:53] (current) tkilla [debug / recovery] |
||
---|---|---|---|
Line 134: | Line 134: | ||
1. partition the disc. use sgdisk to copy partition layout: | 1. partition the disc. use sgdisk to copy partition layout: | ||
- | sgdisk -R=/dev/sdb /dev/sda | + | sgdisk --replicate=/dev/$dest $source |
- | sgdisk --randomize-guids /dev/sdb # NEW UUIDS! | + | sgdisk --randomize-guids /dev/$dest # NEW UUIDS! |
- | partprobe /dev/sda* / | + | partprobe /dev/sda* / |
- | Fix mdadm for /boot and swap partis.. | + | Fix mdadm for /boot and swap partis: https:// |
Fix btrfs: | Fix btrfs: | ||
Line 156: | Line 156: | ||
+ | ==== Danger Zone !!:!: ==== | ||
+ | |||
+ | **These commands may destroy filesystems!1!** | ||
There may be problems, if btrfs runs on top of mdadm raid..maybe.. or maybe the reason is: | There may be problems, if btrfs runs on top of mdadm raid..maybe.. or maybe the reason is: |