edf66b1869da07200efebe607be8d4a4b81b5116
Network/CyclopsSystemSoftware.md
| ... | ... | @@ -22,9 +22,32 @@ Configure grub to use `4.9.0-12` kernel in `/etc/default/grub`: |
| 22 | 22 | |
| 23 | 23 | GRUB_DEFAULT="1>4" |
| 24 | 24 | |
| 25 | - |
|
| 26 | - |
|
| 27 | 25 | Selects \*2nd\* menu option ("Advanced settings"), then \*5th\* submenu option. |
| 28 | 26 | |
| 29 | - [2]: CyclopsSystemSoftware?action=sourceblock&num=1 |
|
| 30 | - [3]: CyclopsSystemSoftware?action=sourceblock&num=2 |
|
| ... | ... | \ No newline at end of file |
| 0 | +# Replace Failed BTRFS Disk |
|
| 1 | + |
|
| 2 | +## Identify the failed disk then yank it |
|
| 3 | +```bash |
|
| 4 | +btrfs device stats / # show which disk has errors |
|
| 5 | +mount # observe mount option 'degraded' |
|
| 6 | +btrfs filesystem show / |
|
| 7 | +``` |
|
| 8 | + |
|
| 9 | +`btrfs filesystem show` output: |
|
| 10 | +```log |
|
| 11 | + Label: none uuid: 85f1e251-bb5b-45eb-9107-b804b9087464 |
|
| 12 | + Total devices 2 FS bytes used 17.89GiB |
|
| 13 | + devid 2 size 111.79GiB used 80.02GiB path /dev/sdb1 |
|
| 14 | + *** Some devices missing |
|
| 15 | +``` |
|
| 16 | + |
|
| 17 | +Missing disk is devid 1. |
|
| 18 | + |
|
| 19 | +## Hot Swap the new disk |
|
| 20 | +```bash |
|
| 21 | +echo ';' | sfdisk /dev/sdi # partition |
|
| 22 | + |
|
| 23 | +# replace devid:1 with disk at /dev/sdi1 for mountpoint / |
|
| 24 | +btrfs replace start -r 1 /dev/sdi1 / |
|
| 25 | +``` |
|
| 26 | + |