Date: Tue, 6 Apr 2021 05:41:09 +0200 (CEST) From: sesquivels@keemail.me To: freebsd-questions@freebsd.org Subject: advise or best practices with ZFS snapshot Message-ID: <MX_GFO7--B-2@keemail.me>
next in thread | raw e-mail | index | archive | help
Hello team, tank you for your time. I was building ZFS pool geom disk list Geom name: nvd0 Providers: 1. Name: nvd0 =C2=A0=C2=A0 Mediasize: 512110190592 (477G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Mode: r2w2e4 =C2=A0=C2=A0 descr: ADATA SX8100NP =C2=A0=C2=A0 lunid: 00000000010000004ce00018dd8c9084 =C2=A0=C2=A0 ident: 2K26291JGN17 =C2=A0=C2=A0 rotationrate: 0 =C2=A0=C2=A0 fwsectors: 0 =C2=A0=C2=A0 fwheads: 0 Geom name: ada2 Providers: 1. Name: ada2 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e1 =C2=A0=C2=A0 descr: ST1000LM035-1RK172 =C2=A0=C2=A0 lunid: 5000c500a7f6b348 =C2=A0=C2=A0 ident: WDE31N7X =C2=A0=C2=A0 rotationrate: 5400 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada3 Providers: 1. Name: ada3 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e1 =C2=A0=C2=A0 descr: TOSHIBA MQ04ABF100 =C2=A0=C2=A0 lunid: 500003998238047c =C2=A0=C2=A0 ident: 9915PKVBT =C2=A0=C2=A0 rotationrate: 5400 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada4 Providers: 1. Name: ada4 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e2 =C2=A0=C2=A0 descr: ST1000LM049-2GH172 =C2=A0=C2=A0 lunid: 5000c500b9fa0d1f =C2=A0=C2=A0 ident: WGS1DNPB =C2=A0=C2=A0 rotationrate: 7200 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada5 Providers: 1. Name: ada5 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e2 =C2=A0=C2=A0 descr: ST1000LM035-1RK172 =C2=A0=C2=A0 lunid: 5000c500b40a20b4 =C2=A0=C2=A0 ident: ZDEEM2PD =C2=A0=C2=A0 rotationrate: 5400 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada6 Providers: 1. Name: ada6 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e2 =C2=A0=C2=A0 descr: TOSHIBA MQ04ABF100 =C2=A0=C2=A0 lunid: 50000399eb100983 =C2=A0=C2=A0 ident: 30HOP52LT =C2=A0=C2=A0 rotationrate: 5400 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada7 Providers: 1. Name: ada7 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e2 =C2=A0=C2=A0 descr: ST1000LM035-1RK172 =C2=A0=C2=A0 lunid: 5000c500b3e1e35e =C2=A0=C2=A0 ident: ZDEEF3X9 =C2=A0=C2=A0 rotationrate: 5400 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada8 Providers: 1. Name: ada8 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e1 =C2=A0=C2=A0 descr: WDC WD10SPZX-22Z10T1 =C2=A0=C2=A0 lunid: 50014ee26897b98e =C2=A0=C2=A0 ident: WD-WXB2AA00UENK =C2=A0=C2=A0 rotationrate: 5400 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada0 Providers: 1. Name: ada0 =C2=A0=C2=A0 Mediasize: 1000204886016 (932G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Stripesize: 4096 =C2=A0=C2=A0 Stripeoffset: 0 =C2=A0=C2=A0 Mode: r1w1e1 =C2=A0=C2=A0 descr: TOSHIBA MQ04ABF100 =C2=A0=C2=A0 lunid: 5000039a6b124e9a =C2=A0=C2=A0 ident: Y0PPP0UWT =C2=A0=C2=A0 rotationrate: 5400 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 Geom name: ada1 Providers: 1. Name: ada1 =C2=A0=C2=A0 Mediasize: 128035676160 (119G) =C2=A0=C2=A0 Sectorsize: 512 =C2=A0=C2=A0 Mode: r1w1e2 =C2=A0=C2=A0 descr: MTFDDAK128MAM-1J1 =C2=A0=C2=A0 lunid: 500a0751039d7440 =C2=A0=C2=A0 ident: 1405039D7440 =C2=A0=C2=A0 rotationrate: 0 =C2=A0=C2=A0 fwsectors: 63 =C2=A0=C2=A0 fwheads: 16 ------------------------------------------------ zpool status =C2=A0 pool: zroot state: ONLINE =C2=A0 scan: scrub rep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0 ONLINE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2= =A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 logs =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nvd0p2=C2=A0=C2=A0= =C2=A0 ONLINE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0= 0=C2=A0=C2=A0=C2=A0=C2=A0 0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cache =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nvd0p1=C2=A0=C2=A0= =C2=A0 ONLINE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0= 0=C2=A0=C2=A0=C2=A0=C2=A0 0 errors: No known data errors ----------------------------------------------------- I found some information at manpages for ZFS and, https://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html https://docs.oracle.com/cd/E19253-01/819-5461/gbiqe/index.html And these are my questions: About zfs administration, and snapshots, where can I found more information= ? I did this snapshot zfs list -t snapshot NAME=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 USED=C2=A0 AVAIL=C2=A0 REFER=C2=A0 MOUNTPOINT zroot/Dom@03252021=C2=A0 32.6G=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0 = 353G=C2=A0 - And interested on: Doing a zfs send to file=C2=A0 as this, may I delete snapshjot from my zpoo= l and then restore it using zfs receiver? zfs send zroot/Dom@03252021 | gzip > /mnt/bkp/march2021.gz I will be appreciate any advise, Serguei Esquivel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MX_GFO7--B-2>