Sponsored Content
Operating Systems Solaris Understanding ZFS Snapshots - why will it utilize space ? Post 303013387 by Peasant on Tuesday 20th of February 2018 03:34:50 PM
Old 02-20-2018
After the deletion of file1 USEDSNAP is telling you that there are pointers to 100MB of data.
In that time, 2 references exist in point in time for 100M of data.
snap1 - file1
snap2 - file1, file2

USED space in zpool has not changed after the deletion of file1.

Now, tank@snap1 is destroyed.
zfs list is telling you if you destroy the renaming snapshot (snap2), you will reclaim 100M of space as free space.
Since snap2 contains both files (one being 'live' one, other being referenced to) it is using 100M of space in zpool.

During the practice on the blog USEDSNAP column will always be 100M, after first snapshot creation, deletion of file1, second snapshot creation, first snapshot destroy.
This is not displayed clearly on the blog entry.

A good tehnical read Is it magic? | Oracle Matthew Ahrens' Blog

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
 

3 More Discussions You Might Find Interesting

1. Solaris

How to utilize the 2nd hard disk space in x86 solaris 5.10

I have 2 hard disks ,one hard disk(40gb) completely for windows Os,and the other(120gb) for solaris Os. In the second hard disk.I have utilised around 10gb for the solaris installation and also partitioned with the available 10gb space for the solaris x86 OS. Now i need to utilise the... (8 Replies)
Discussion started by: jayaprakash
8 Replies

2. Solaris

Recommended Patch Cluster Using ZFS Snapshots

I have a question regarding installing recommended patch clusters via ZFS snapshots. Someone wrote a pretty good blog about it here: Initial Program Load: Live Upgrade to install the recommended patch cluster on a ZFS snapshot The person's article is similar to what I've done in the past. ... (0 Replies)
Discussion started by: christr
0 Replies

3. Solaris

Permissions to run ZFS Snapshots

Hi, I work as an Oracle Technical consultant (mainly DBA related), and I have used ZFS snapshots on previous projects which has helped me a great deal. I often take snapshots before doing some dev work, and then I can roll it back if I want to start again, or if it goes pear shaped!! I have... (4 Replies)
Discussion started by: AndyG
4 Replies
XZDIFF(1)							     XZ Utils								 XZDIFF(1)

NAME
xzcmp, xzdiff, lzcmp, lzdiff - compare compressed files SYNOPSIS
xzcmp [cmp_options] file1 [file2] xzdiff [diff_options] file1 [file2] lzcmp [cmp_options] file1 [file2] lzdiff [diff_options] file1 [file2] DESCRIPTION
xzcmp and xdiff invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), or bzip2(1). All options specified are passed directly to cmp or diff. If only one file is specified, then the files compared are file1 (which must have a suffix of a supported com- pression format) and file1 from which the compression format suffix has been stripped. If two files are specified, then they are uncom- pressed if necessary and fed to cmp(1) or diff(1). The exit status from cmp or diff is preserved. The names lzcmp and lzdiff are provided for backward compatibility with LZMA Utils. SEE ALSO
cmp(1), diff(1), xz(1), gzip(1), bzip2(1), zdiff(1) BUGS
Messages from the cmp(1) or diff(1) programs refer to temporary filenames instead of those specified. Tukaani 2009-07-05 XZDIFF(1)
All times are GMT -4. The time now is 08:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy