tudasbazis:linux:zfs
Összehasonlítás
A kiválasztott és az jelenlegi változat között az alábbi különbségek fordulnak elő:
| Előző változat mindkét oldalonElőző változatKövetkező változat | Előző változat | ||
| tudasbazis:linux:zfs [2021.02.22 03:08] – tia | tudasbazis:linux:zfs [2025.07.02 20:08] (aktuális) – [TRIM-elés] tia | ||
|---|---|---|---|
| Sor 1: | Sor 1: | ||
| + | ====== ZFS ====== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ===== Quota ===== | ||
| + | * https:// | ||
| + | | ||
| + | | ||
| + | ===== Snapshotok ===== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | | ||
| + | | ||
| + | ===== Teljesítmény javítás ===== | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | ===== Cache ===== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | ===== Replikálás ===== | ||
| + | * https:// | ||
| + | |||
| + | <code bash> | ||
| + | # For example, on a system containing a ZFS dataset name src, the following command transfers the snapshot to the dataset hierarchy at dst on the target system. | ||
| + | zfs send -R src_data_pool@TOSNAP | ssh ' | ||
| + | |||
| + | # If the above command is interrupted, | ||
| + | ssh ' | ||
| + | </ | ||
| + | ===== Mirror bővítése ===== | ||
| + | * https:// | ||
| + | |||
| + | <code bash> | ||
| + | zpool add \ | ||
| + | data_pool \ | ||
| + | mirror \ | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Hibás lemez cseréje ===== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | - Jelenlegi pool állapotának lekérdezése: | ||
| + | zpool status -stv | ||
| + | </ | ||
| + | pool: backup_pool | ||
| + | | ||
| + | status: One or more devices has experienced an error resulting in data | ||
| + | corruption. | ||
| + | action: Restore the file in question if possible. | ||
| + | entire pool from backup. | ||
| + | see: http:// | ||
| + | scan: scrub repaired 212K in 0 days 03:44:08 with 34 errors on Wed Nov 10 04:55:23 2021 | ||
| + | config: | ||
| + | |||
| + | NAME STATE READ WRITE CKSUM SLOW | ||
| + | backup_pool | ||
| + | ata-WDC_WD60EZRZ-00GZ5B1_WD-WX31D96RP4EP-part1 | ||
| + | |||
| + | errors: Permanent errors have been detected in the following files: | ||
| + | |||
| + | backup_pool/ | ||
| + | backup_pool/ | ||
| + | backup_pool/ | ||
| + | backup_pool/ | ||
| + | backup_pool/ | ||
| + | backup_pool/ | ||
| + | backup_pool/ | ||
| + | </ | ||
| + | - Lemezcsere indítása: <code bash> | ||
| + | zpool replace < | ||
| + | # zpool replace backup_pool ata-WDC_WD60EZRZ-00GZ5B1_WD-WX31D96RP4EP-part1 / | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Partíció bővítés ===== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | - Automatikus pool kiterjesztés bekapcsolása: | ||
| + | zpool set autoexpand=on < | ||
| + | </ | ||
| + | - Partíció / LVM logikai kötet kiterjesztése: | ||
| + | lvextend -L 700G / | ||
| + | # vagy | ||
| + | lvextend -L +100G / | ||
| + | </ | ||
| + | - Opcionális: | ||
| + | zpool set autoexpand=off < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== TRIM-elés ===== | ||
| + | <code bash> | ||
| + | zpool trim private_pool drive1 drive2 | ||
| + | </ | ||
