Date: Fri, 10 Jan 2025 14:01:26 -0500 From: Karl Denninger <karl@denninger.net> To: freebsd-fs@freebsd.org Subject: Re: How can I tell when ZFS has finished creating a snapshot? Message-ID: <44c10641-8f1b-476f-ba5b-29d4a5f28c9c@denninger.net> In-Reply-To: <alpine.BSF.2.22.395.2501101830270.43509@mail0.time-domain.net> References: <alpine.BSF.2.22.395.2501101830270.43509@mail0.time-domain.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format. --------------ms070504040700060209050308 Content-Type: multipart/alternative; boundary="------------oTzI0uyimmQ3WPJKa25I3gcU" --------------oTzI0uyimmQ3WPJKa25I3gcU Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 DQpPbiAxLzEwLzIwMjUgMTo1MiBQTSwgYW5keSB0aG9tYXMgd3JvdGU6DQo+IElzIHRoZXJl IGFueSB3YXkgSSBjYW4gZmluZCBvdXQgd2hlbiBhIFpGUyBzbmFwc2hvdCBoYXMgY29tcGxl dGVkIGFuZCANCj4gY2FuIGJlIHVzZWQsIHNheSwgZm9yIHJlcGxpY2F0aW5nIHRvIGFub3Ro ZXIgc2VydmVyPw0KPg0KPiBVc2luZyB0aGUgJ3pmcyBzbmFwc2hvdCAtciAuLi4nIGNvbW1h bmQsIHRoZSBjb21tYW5kIHByb21wdCByZS1hcHBlYXJzIA0KPiBhbG1vc3QgaW1tZWRpYXRl bHkgc3VnZ2VzdGluZyB0aGUgY29tbWFuZCBoYXMgY29tcGxldGVkIGFuZCB1c2luZyB0aGUg DQo+ICd6ZnMgbGlzdCAtdCBzbmFwc2hvdCcgY29tbWFuZCB0aGUgJ1VTRUQnIGNvbHVtbiB3 aWxsIGluaXRpYWxseSByZXBvcnQgDQo+IHplcm8gYW5kIHRoZW4gaXQgd2lsbCBzbG93bHkg Z3JvdyBvdmVyIHRoZSBuZXh0IGZldyBob3Vycy4gQnV0IGl0IA0KPiBzZWVtcyB0byB0YWtl IGEgbG9uZyB0aW1lI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dXJucyAtLSB3 aXRoaW4gdGhlIA0KZmlsZXN5c3RlbSBhIHNuYXBzaG90IGlzIGFuIGF0b21pYyBvcGVyYXRp b24uDQoNCi9PbmNlIG1hZGUgYWxsIHdyaXRlcyB0byB0aGF0IGZpbGVzeXN0ZW0gYXJlIGNv cHktb24td3JpdGUgL3NvIGFzIHRpbWUgDQpnb2VzIG9uIHRoZSAiVXNlZCIgYW1vdW50IGlu Y3JlYXNlcyAoYW5kIHRoZSBmcmVlIHNwYWNlIGdvZXMgZG93biBieSBhbiANCmVxdWFsIGFt b3VudCkgYmVjYXVzZSBlYWNoIGJsb2NrIHRoYXQgaXMgbW9kaWZpZWQgKGFuZCBvbmx5IHRo YXQgYmxvY2spIA0KaXMgY29waWVkLg0KDQotLSANCkthcmwgRGVubmluZ2VyDQprYXJsQGRl bm5pbmdlci5uZXQNCi9UaGUgTWFya2V0IFRpY2tlci8NCi9bUy9NSU1FIGVuY3J5cHRlZCBl bWFpbCBwcmVmZXJyZWRdLw0K --------------oTzI0uyimmQ3WPJKa25I3gcU Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html> <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF= -8"> </head> <body> <p><br> </p> <div class=3D"moz-cite-prefix">On 1/10/2025 1:52 PM, andy thomas wrote:<br> </div> <blockquote type=3D"cite" cite=3D"mid:alpine.BSF.2.22.395.2501101830270.43509@mail0.time-domain.net= ">Is there any way I can find out when a ZFS snapshot has completed and can be used, say, for replicating to another server? <br> <br> Using the 'zfs snapshot -r ...' command, the command prompt re-appears almost immediately suggesting the command has completed and using the 'zfs list -t snapshot' command the 'USED' column will initially report zero and then it will slowly grow over the next few hours. But it seems to take a long time with no zfs-related processes being reported by 'ps ax'. For example, after 3 hours, a snapshot of a 80TB raidz1 pool with only a little over 3 TB used has reported 17.4MB used: <br> <br> =C2=A0=C2=A0=C2=A0=C2=A0NAME=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=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 A= VAIL=C2=A0 REFER=C2=A0 MOUNTPOINT <br> =C2=A0=C2=A0=C2=A0=C2=A0<a class=3D"moz-txt-link-abbreviated" href=3D= "mailto:clustor2/ma@2025-01-10_14.45.00">clustor2/ma@2025-01-10_14.45.00<= /a>=C2=A0 17.4M=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0 3.09T=C2=A0 - <br> <br> but over the next hour, this 17.4MB usage figure has not increased at all. So I don't know whether to wait another few hours before using 'zfs send' or 'zxfer' to copy the snapshot to a backup server, or whether the snapshot has in fact finished. <br> <br> Is there a way to find out the status of a snapshot creation? <br> <br> Thanks in advance for any suggestions, <br> </blockquote> <p>The snapshot is complete when the command returns -- within the filesystem a snapshot is an atomic operation.<br> </p> <p><i>Once made all writes to that filesystem are copy-on-write </i>s= o as time goes on the "Used" amount increases (and the free space goes down by an equal amount) because each block that is modified (and only that block) is copied.</p> <div class=3D"moz-signature">-- <br> Karl Denninger<br> <a href=3D"mailto:karl@denninger.net" class=3D"moz-txt-link-freetex= t">karl@denninger.net</a><br> <i>The Market Ticker</i><br> <font size=3D"-2"><i>[S/MIME encrypted email preferred]</i></font><= /div> </body> </html> --------------oTzI0uyimmQ3WPJKa25I3gcU-- --------------ms070504040700060209050308 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC C4owggWZMIIDgaADAgECAhRZU8dKdMneRI1Vq5kv0k54Q5rQuDANBgkqhkiG9w0BAQsFADB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LNoNTX9b8UlOFMl/HHiK2K/jyXZnL/BhnUkxLK7px5NkUvxvufLnlPJlm +x+2BOgZd0EnBPlqc1pZc0JCm7MREAwZCcWTEfBsB3kEcdKNQkKV9KqfZV333cbekG2QK0wP rQnjODo8EWTnvK0fSHC9bLZYKo95tleedczNtDepqkf9UmeOeEeZApMFDEJ/ie3lvXf+fx6L PBUS2HVlzcSMSmSVkN2UJwPfwYYnU0ltcAutXOwDhDCHM3uy6RTZ5stjg8eUxGz0sXpAkH2c X1R0U3Z6nZwvII2utxDaJvC6rR7d2MCbKlUDg8WQuga/TyhQlWUxLDD2Zcampp68OObmMqHr qcK34dRAbPPnQJr4Y6+Xd+wn3gkBUfYMmn2KKy/7Z/p7g6Vk2GRrdtrtGMYpm4+DsAZKdjb7 orFdGZALPFoWnMRy6fLEAAAAAAAA --------------ms070504040700060209050308--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44c10641-8f1b-476f-ba5b-29d4a5f28c9c>