From nobody Fri Jan 10 18:52:43 2025 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YV9l82Qp0z5kL6w for ; Fri, 10 Jan 2025 18:52:52 +0000 (UTC) (envelope-from andy@time-domain.co.uk) Received: from mail0.time-domain.net (mail0.time-domain.net [62.3.122.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YV9l73pkHz4JXw for ; Fri, 10 Jan 2025 18:52:51 +0000 (UTC) (envelope-from andy@time-domain.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of andy@time-domain.co.uk designates 62.3.122.138 as permitted sender) smtp.mailfrom=andy@time-domain.co.uk; dmarc=none Received: from mail0.time-domain.net (localhost [127.0.0.1]) by mail0.time-domain.net (8.15.2/8.15.2) with ESMTP id 50AIqhNS055955 for ; Fri, 10 Jan 2025 18:52:44 GMT (envelope-from andy@time-domain.co.uk) Received: from localhost (andy-tds@localhost) by mail0.time-domain.net (8.15.2/8.15.2/Submit) with ESMTP id 50AIqhdx055952 for ; Fri, 10 Jan 2025 18:52:43 GMT (envelope-from andy@time-domain.co.uk) X-Authentication-Warning: mail0.time-domain.net: andy-tds owned process doing -bs Date: Fri, 10 Jan 2025 18:52:43 +0000 (GMT) From: andy thomas X-X-Sender: andy-tds@mail0.time-domain.net To: freebsd-fs@freebsd.org Subject: How can I tell when ZFS has finished creating a snapshot? Message-ID: User-Agent: Alpine 2.22 (BSF 395 2020-01-19) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4YV9l73pkHz4JXw X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.16 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.86)[-0.863]; R_SPF_ALLOW(-0.20)[+ip4:62.3.122.136/29]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:13037, ipnet:62.3.64.0/18, country:GB]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; FREEFALL_USER(0.00)[andy]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; HAS_XAW(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[time-domain.co.uk]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; ARC_NA(0.00)[] Is there any way I can find out when a ZFS snapshot has completed and can be used, say, for replicating to another server? 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: NAME USED AVAIL REFER MOUNTPOINT clustor2/ma@2025-01-10_14.45.00 17.4M - 3.09T - 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. Is there a way to find out the status of a snapshot creation? Thanks in advance for any suggestions, Andy