btrfs
Különbségek
A kiválasztott változat és az aktuális verzió közötti különbségek a következők.
| Előző változat mindkét oldalonElőző változatKövetkező változat | Előző változat | ||
| btrfs [2023/03/24 08:42] – daevidt | btrfs [2023/10/03 11:17] (aktuális) – daevidt | ||
|---|---|---|---|
| Sor 5: | Sor 5: | ||
| btrfs subvolume snapshot valami valami-2020-01-02 | btrfs subvolume snapshot valami valami-2020-01-02 | ||
| - | === BTRFS subvolume (snapshot) törlése | + | === BTRFS subvolume-ok logikája |
| + | Alapból létezik egy 5-ös id-jú btrfs subvolume, kezdetben ez a default subvolume, ami az igazi " | ||
| + | @ | ||
| + | @cache | ||
| + | @home | ||
| + | @log | ||
| + | timeshift-btrfs | ||
| + | |-snapshots | ||
| + | |-snapshots-daily | ||
| + | | |-< | ||
| + | | .. |-@ | ||
| + | | .. |-@home | ||
| + | |-... | ||
| + | |||
| + | Mivel a timeshift épít arra, hogy ez a default subvol, nem érdemes átállítani a default subvolume-ot másra, csak ha muszáj. | ||
| + | |||
| + | === Visszaállás BTRFS snapshot subvolume-ra === | ||
| + | (Itt a / visszaállítását írom le.) | ||
| + | |||
| + | Ha az fstab-od úgy van beállítva, | ||
| + | |||
| + | ... / btrfs | ||
| + | | ||
| + | akkor a legegyszerűbb az, ha a jelenlegi @-ot átnevezed valami másra, majd a kívánt snapshotot átnevezed @-ra. | ||
| + | <code bash> | ||
| + | mount / | ||
| + | mv / | ||
| + | mv / | ||
| + | </ | ||
| + | Ezután rebootkor a snapshotot fogja felbootolni a gép, és mehet tovább minden. Ha minden oké, akkor a régi @_latest_root-ot lehet törölni, illetve minden más snapshotot, ami már nem kell. | ||
| + | |||
| + | === BTRFS subvolume (snapshot) törlése === | ||
| + | <code bash> | ||
| btrfs subvolume list | btrfs subvolume list | ||
| # feljegyezni az id-t : pl 123 | # feljegyezni az id-t : pl 123 | ||
| mount -o subvol=@valami /dev/sdb /mnt | mount -o subvol=@valami /dev/sdb /mnt | ||
| btrfs subvolume delete -c -i 123 /mnt # -c = commit, -i = identifer | btrfs subvolume delete -c -i 123 /mnt # -c = commit, -i = identifer | ||
| - | | + | </ |
| === BTRFS no space left on device === | === BTRFS no space left on device === | ||
| - | source: [https:// | + | source: |
| If the filesystem has allocated (but not used) all of the available space, and the metadata is close to full, then df can show lots of free space, but you may still get out of space errors because there isn't enough metadata available. | If the filesystem has allocated (but not used) all of the available space, and the metadata is close to full, then df can show lots of free space, but you may still get out of space errors because there isn't enough metadata available. | ||
| To see if this is the case, first look for the amount of allocated space with | To see if this is the case, first look for the amount of allocated space with | ||
| - | + | <code bash> | |
| - | | + | sudo btrfs fi show / |
| + | </ | ||
| If this shows the " | If this shows the " | ||
| Secondly, look at the amount of space you have in metadata, as reported by | Secondly, look at the amount of space you have in metadata, as reported by | ||
| - | + | <code bash> | |
| - | | + | btrfs fi df / |
| + | </ | ||
| If the " | If the " | ||
| If you have full up metadata, and more than 1 GiB of space free in data, as reported by btrfs fi df, then you should be able to free up some of the data allocation with a partial balance: | If you have full up metadata, and more than 1 GiB of space free in data, as reported by btrfs fi df, then you should be able to free up some of the data allocation with a partial balance: | ||
| + | <code bash> | ||
| + | btrfs balance start /mountpoint -dlimit=3 | ||
| + | </ | ||
| + | We know this isn't ideal, and there are plans to improve the behavior. Running close to empty is rarely the ideal case, but we can get far closer to full than we do. | ||
| - | | + | === BTRFS quota, lassulás, timeshift === |
| + | |||
| + | A BTRFS quota funkciója nem túl megbízható, | ||
| + | |||
| + | A Timeshift hajlamos automatikusan bekapcsolni a quota funkciót, mert az szükséges a snapshotok " | ||
| + | |||
| + | Szerintem megéri lemondani erről a funkcióról, | ||
| + | |||
| + | | ||
| + | # btrfs quota disable / | ||
| + | # btrfs qgroup show / | ||
| - | We know this isn't ideal, and there are plans to improve the behavior. Running close to empty is rarely the ideal case, but we can get far closer to full than we do. | ||
btrfs.1679647326.txt.gz · Utolsó módosítás: 2023/03/24 08:42 szerkesztette: daevidt
