zfs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zfs [2015/01/22 00:22] – francesco | zfs [2022/10/26 15:02] (current) – francesco | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Creare una snapshop: | + | Vedere come vanno le cose |
- | Eliminare una snapshot: | + | < |
+ | root@FreeBSD: | ||
+ | pool: zroot | ||
+ | | ||
+ | scan: scrub repaired 0 in 0h58m with 0 errors on Sat Dec 20 20:34:38 2014 | ||
+ | config: | ||
+ | |||
+ | NAME STATE READ WRITE CKSUM | ||
+ | zroot | ||
+ | raidz1-0 | ||
+ | gptid/ | ||
+ | gptid/ | ||
+ | gptid/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Scrubbing a pool: | ||
< | < | ||
- | # zfs destroy storage/ | + | # zpool scrub zroot |
</ | </ | ||
- | Fare lo scrub: | + | Listare le snapshot: |
+ | |||
+ | < | ||
+ | root@FreeBSD: | ||
+ | NAME USED AVAIL REFER MOUNTPOINT | ||
+ | zroot | ||
+ | zroot@22_novembre_2014 | ||
+ | zroot@20_dicembre_2014 | ||
+ | zroot@18_gennaio_2015 | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | zroot/ | ||
+ | </ | ||
+ | |||
+ | Creare una nuova snapshop: | ||
+ | |||
+ | < | ||
+ | # zfs snapshot -r zroot@31_luglio_2014 | ||
+ | </ | ||
+ | |||
+ | Eliminare una snapshot: | ||
+ | |||
+ | < | ||
+ | # zfs destroy -r zroot@31_luglio_2014 | ||
+ | </ | ||
Dopo un aggiornamento, | Dopo un aggiornamento, | ||
+ | < | ||
+ | # zpool upgrade -a | ||
+ | </ | ||
+ | |||
+ | e del boot, uno per ognuno dei tre dischi nel mio caso: | ||
+ | |||
+ | < | ||
+ | root@FreeBSD: | ||
+ | bootcode written to ada0 | ||
+ | |||
+ | root@FreeBSD: | ||
+ | bootcode written to ada1 | ||
+ | |||
+ | root@FreeBSD: | ||
+ | bootcode written to ada2 | ||
+ | </ | ||
+ | |||
+ | **ATTENZIONE!** | ||
+ | |||
+ | come spiegato in questo blog: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | The suggested command to update the boot code [quello sopra], however, only applies to systems still booting with the old BIOS. If you use it on a system booting with UEFI, the UEFI partition will be overwritten and is not recognized as bootable anymore. | ||
+ | |||
+ | The proper command to use on an UEFI system is the following: | ||
+ | |||
+ | < | ||
+ | gpart bootcode -p / | ||
+ | </ | ||
+ | |||
+ | e in ogni caso, per vedere se è necessario fare un upgrade del pool ZFS, vale sempre la pena lanciare prima il comando: | ||
+ | |||
+ | < | ||
+ | zpool status zroot | ||
+ | </ | ||
+ | ---- | ||
+ | |||
+ | Link utili: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | e soprattutto, | ||
+ | https:// |
zfs.1421882534.txt.gz · Last modified: 2015/01/22 00:22 by francesco